| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
/** |
| 7 |
* This file exists for backward compatibility with the Payments Submodule. |
| 8 |
* Without these functions the Authorize.Net add on will trigger fatal errors. |
| 9 |
*/ |
| 10 |
class FrmPayPalLiteApiHelper { |
| 11 |
|
| 12 |
/** |
| 13 |
* The payments submodule calls this function. |
| 14 |
* This function exists so payments can be refunded when Authorize.Net is active. |
| 15 |
* |
| 16 |
* @param int $payment_id |
| 17 |
* |
| 18 |
* @return bool |
| 19 |
*/ |
| 20 |
public static function refund_payment( $payment_id ) { |
| 21 |
return FrmPayPalLiteConnectHelper::refund_payment( $payment_id ); |
| 22 |
} |
| 23 |
|
| 24 |
/** |
| 25 |
* The payments submodule calls this function. |
| 26 |
* This function exists so subscriptions can be cancelled when Authorize.Net is active. |
| 27 |
* |
| 28 |
* @param string $sub_id |
| 29 |
* |
| 30 |
* @return bool |
| 31 |
*/ |
| 32 |
public static function cancel_subscription( $sub_id ) { |
| 33 |
return FrmPayPalLiteConnectHelper::cancel_subscription( $sub_id ); |
| 34 |
} |
| 35 |
} |
| 36 |
|