/** * Override the default PayPal standard args in WooCommerce for subscription purchases when * automatic payments are enabled and when the recurring order totals is over $0.00 (because * PayPal doesn't support subscriptions with a $0 recurring total, we need to circumvent it and * manage it entirely ourselves.) * * @since 2.0 */ public static function get_paypal_args($paypal_args, $order) { if (wcs_order_contains_subscription($order, array('parent', 'renewal', 'resubscribe', 'switch')) || wcs_is_subscription($order)) { if (self::are_reference_transactions_enabled()) { $paypal_args = self::get_api()->get_paypal_args($paypal_args, $order); } else { $paypal_args = WCS_PayPal_Standard_Request::get_paypal_args($paypal_args, $order); } } return $paypal_args; }
/** * Override the default PayPal standard args in WooCommerce for subscription purchases when * automatic payments are enabled and when the recurring order totals is over $0.00 (because * PayPal doesn't support subscriptions with a $0 recurring total, we need to circumvent it and * manage it entirely ourselves.) * * @since 1.0 */ public static function paypal_standard_subscription_args($paypal_args, $order = '') { _deprecated_function(__METHOD__, '2.0', 'WCS_PayPal_Standard_Request::get_paypal_args( $paypal_args, $order )'); return WCS_PayPal_Standard_Request::get_paypal_args($paypal_args, $order); }