You appear to be a bot. Output may be restricted
Description
Detect a refund action from EDD
Usage
$void = EDD_Amazon_Payments::process_refund( $payment_id, $new_status, $old_status );
Parameters
- $payment_id
- ( mixed ) required –
- $new_status
- ( mixed ) required –
- $old_status
- ( mixed ) required –
Returns
void
Source
File name: easy-digital-downloads/includes/gateways/amazon-payments.php
Lines:
1 to 21 of 21
public function process_refund( $payment_id, $new_status, $old_status ) { if( 'publish' != $old_status && 'revoked' != $old_status ) { return; } if( 'refunded' != $new_status ) { return; } if( $this->doing_ipn ) { return; } if( 'amazon' !== edd_get_payment_gateway( $payment_id ) ) { return; } $this->refund( $payment_id ); }