Lines:
1 to 27 of 27
<?php /** * PayPal Commerce Refunds * * @package easy-digital-downloads * @subpackage Gateways\PayPal * @copyright Copyright (c) 2021, Sandhills Development, LLC * @license GPL2+ * @since 2.11 */ namespace EDD\Gateways\PayPal; use EDD\Gateways\PayPal\Exceptions\API_Exception; use EDD\Gateways\PayPal\Exceptions\Authentication_Exception; /* function add_refund_javascript() – Adds a "Refund in PayPal" checkbox when switching the payment’s status to "Refunded". */ add_action( 'edd_view_order_details_before', __NAMESPACE__ . '\add_refund_javascript', 100 ); /* function maybe_refund_transaction() – Refunds the transaction in PayPal, if the option was selected. */ add_action( 'edd_pre_refund_payment', __NAMESPACE__ . '\maybe_refund_transaction', 999 ); /* function refund_transaction() – Refunds a transaction in PayPal. */