Payment Helper Functions
The helper you can use for payment transactions. And get, delete, update payment details.
function add_payment($payment) {.....}
Supported hooks
// The filter callback function is based on the filter.
add_filter( ‘before_add_payment’, ‘before_add_payment_callback_fun’, 10, 1 );
function before_add_payment_callback_fun($payment) {
// code
}// The filter callback function is based on the filter.
add_filter( ‘should_add_payment’, ‘should_add_payment_callback_fun’, 10, 1 );
function should_add_payment_callback_fun($payment) {
// code
}Param
Type
Required
Default
Description
function get_payment($payment_id) {....}
Supported hooks
Param
Type
Required
Default
Description
function update_payment($payment, $payment_id) {....}
Param
Type
Required
Default
Description
function get_payments($filter) {.....}
Param
Type
Required
Default
Description
function delete_payment($payment_id) {.....}
Param
Type
Required
Default
Description
Last updated