Lines:
1 to 71 of 71
<?php /** * PayPal Standard Gateway * * @package EDD * @subpackage Gateways * @copyright Copyright (c) 2015, Pippin Williamson * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 1.0 */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; /** * PayPal Remove CC Form * * PayPal Standard does not need a CC form, so remove it. * * @access private * @since 1.0 */ add_action( 'edd_paypal_cc_form', '__return_false' ) <; /* function edd_register_paypal_gateway_section() – Register the PayPal Standard gateway subsection */ add_filter( 'edd_settings_sections_gateways', 'edd_register_paypal_gateway_section', 1, 1 ); /* function edd_register_paypal_gateway_settings() – Registers the PayPal Standard settings for the PayPal Standard subsection */ add_filter( 'edd_settings_gateways', 'edd_register_paypal_gateway_settings', 1, 1 ); /* function edd_process_paypal_purchase() – Process PayPal Purchase */ add_action( 'edd_gateway_paypal', 'edd_process_paypal_purchase' ); /* function edd_listen_for_paypal_ipn() – Listens for a PayPal IPN requests and then sends to the processing function */ add_action( 'init', 'edd_listen_for_paypal_ipn' ); /* function edd_process_paypal_ipn() – Process PayPal IPN */ add_action( 'edd_verify_paypal_ipn', 'edd_process_paypal_ipn' ); /* function edd_process_paypal_web_accept_and_cart() – Process web accept (one time) payment IPNs */ add_action( 'edd_paypal_web_accept', 'edd_process_paypal_web_accept_and_cart', 10, 2 ); /* function edd_process_paypal_refund() – Process PayPal IPN Refunds */ /* function edd_get_paypal_redirect() – Get PayPal Redirect */ /* function edd_get_paypal_image_url() – Get the image for the PayPal purchase page. */ /* function edd_paypal_success_page_content() – Shows "Purchase Processing" message for PayPal payments are still pending on site return. */ add_filter( 'edd_payment_confirm_paypal', 'edd_paypal_success_page_content' ); /* function edd_paypal_process_pdt_on_return() – Mark payment as complete on return from PayPal if a PayPal Identity Token is present. */ add_action( 'template_redirect', 'edd_paypal_process_pdt_on_return' ); /* function edd_paypal_get_payment_transaction_id() – Given a Payment ID, extract the transaction ID */ add_filter( 'edd_get_payment_transaction_id-paypal', 'edd_paypal_get_payment_transaction_id', 10, 1 ); /* function edd_paypal_link_transaction_id() – Given a transaction ID, generate a link to the PayPal transaction ID details */ add_filter( 'edd_payment_details_transaction_id-paypal', 'edd_paypal_link_transaction_id', 10, 2 ); /* function edd_paypal_refund_admin_js() – Shows checkbox to automatically refund payments made in PayPal. */ add_action( 'edd_view_order_details_before', 'edd_paypal_refund_admin_js', 100 ); /* function edd_maybe_refund_paypal_purchase() – Possibly refunds a payment made with PayPal Standard or PayPal Express. */ add_action( 'edd_pre_refund_payment', 'edd_maybe_refund_paypal_purchase', 999 ); /* function edd_refund_paypal_purchase() – Refunds a purchase made via PayPal. */