Lines:
1 to 27 of 27
<?php /** * PayPal Commerce "Buy Now" Buttons * * @package easy-digital-downloads * @subpackage Gateways\PayPal * @copyright Copyright (c) 2021, Sandhills Development, LLC * @license GPL2+ */ namespace EDD\Gateways\PayPal; /* function is_buy_now_enabled() – Determines whether or not Buy Now is enabled for PayPal. */ /* function straight_to_gateway_data() – Sets the gateway to `paypal_commerce` when building straight to gateway data. */ add_filter( 'edd_straight_to_gateway_purchase_data', __NAMESPACE__ . '\straight_to_gateway_data' ); /* function maybe_add_purchase_link_class() – Adds the `edd-paypal-checkout-buy-now` class to qualified shortcodes. */ add_filter( 'edd_purchase_link_args', __NAMESPACE__ . '\maybe_add_purchase_link_class' ); /* function maybe_enable_buy_now_js() – Registers PayPal Commerce JavaScript if using "direct" buy now links. */ add_action( 'edd_purchase_link_end', __NAMESPACE__ . '\maybe_enable_buy_now_js', 10, 2 );