Lines:
1 to 61 of 61
<?php /** * Checkout Functions * * @package EDD * @subpackage Checkout * @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; /* function edd_is_checkout() – Determines if we’re currently on the Checkout page */ /* function edd_can_checkout() – Determines if a user can checkout or not */ /* function edd_get_success_page_uri() – Retrieve the Success page URI */ /* function edd_is_success_page() – Determines if we’re currently on the Success page. */ /* function edd_send_to_success_page() – Send To Success Page */ /* function edd_get_checkout_uri() – Get the URL of the Checkout page */ /* function edd_send_back_to_checkout() – Send back to checkout. */ /* function edd_get_failed_transaction_uri() – Get the URL of the Transaction Failed page */ /* function edd_is_failed_transaction_page() – Determines if we’re currently on the Failed Transaction page. */ /* function edd_listen_for_failed_payments() – Mark payments as Failed when returning to the Failed Transaction page */ add_action( 'template_redirect', 'edd_listen_for_failed_payments' ); /* function edd_field_is_required() – Check if a field is required */ /* function edd_get_banned_emails() – Retrieve an array of banned_emails */ /* function edd_is_email_banned() – Determines if an email is banned */ /* function edd_is_ssl_enforced() – Determines if secure checkout pages are enforced */ /* function edd_enforced_ssl_redirect_handler() – Handle redirections for SSL enforced checkouts */ add_action( 'template_redirect', 'edd_enforced_ssl_redirect_handler' ); /* function edd_enforced_ssl_asset_handler() – Handle rewriting asset URLs for SSL enforced checkouts */ add_action( 'template_redirect', 'edd_enforced_ssl_asset_handler' ); /* function edd_enforced_ssl_asset_filter() – Filter filters and convert http to https */ /* function edd_validate_card_number_format() – Given a number and algorithem, determine if we have a valid credit card format */ /* function edd_validate_card_number_format_luhn() – Validate credit card number based on the luhn algorithm */ /* function edd_detect_cc_type() – Detect credit card type based on the number and return an array of data to validate the credit card number */ /* function edd_purchase_form_validate_cc_exp_date() – Validate credit card expiration date */