• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / edd_register_paypal_gateway_settings() – Registers the PayPal Standard settings for the PayPal Standard subsection

You appear to be a bot. Output may be restricted

Description

Registers the PayPal Standard settings for the PayPal Standard subsection

Usage

$array = edd_register_paypal_gateway_settings( $gateway_settings );

Parameters

$gateway_settings
( array ) required – Gateway tab settings

Returns

array Gateway tab settings with the PayPal Standard settings

Source

File name: easy-digital-downloads/includes/gateways/paypal-standard.php
Lines:

1 to 100 of 113
function edd_register_paypal_gateway_settings( $gateway_settings ) {
  if ( ! \EDD\Gateways\PayPal\paypal_standard_enabled() ) {
    return $gateway_settings;
  }

  $paypal_settings = array (
    'paypal_settings' => array(
      'id'   => 'paypal_settings',
      'name' => '<strong>' . __( 'PayPal Standard Settings', 'easy-digital-downloads' ) . '</strong>',
      'type' => 'header',
    ),
    'paypal_email' => array(
      'id'   => 'paypal_email',
      'name' => __( 'PayPal Email', 'easy-digital-downloads' ),
      'desc' => __( 'Enter your PayPal account\'s email', 'easy-digital-downloads' ),
      'type' => 'text',
      'size' => 'regular',
    ),
    'paypal_image_url' => array(
      'id'   => 'paypal_image_url',
      'name' => __( 'PayPal Image URL', 'easy-digital-downloads' ),
      'desc' => __( 'Upload an image to display on the PayPal checkout page.', 'easy-digital-downloads' ),
      'type' => 'upload',
      'size' => 'regular',
    ),
  );

  $pdt_desc = sprintf(
    __( 'Enter your PayPal Identity Token in order to enable Payment Data Transfer (PDT). This allows payments to be verified without relying on the PayPal IPN. See our <a href="%s" target="_blank">documentation</a> for further information.', 'easy-digital-downloads' ),
    'https://docs.easydigitaldownloads.com/article/918-paypal-standard'
  );

  $paypal_settings['paypal_identify_token'] = array(
    'id'   => 'paypal_identity_token',
    'name' => __( 'PayPal Identity Token', 'easy-digital-downloads' ),
    'type' => 'text',
    'desc' => $pdt_desc,
    'size' => 'regular',
  );

  $disable_ipn_desc = sprintf(
    __( 'If you are unable to use Payment Data Transfer and payments are not getting marked as complete, then check this box. This forces the site to use a slightly less secure method of verifying purchases. See our <a href="%s" target="_blank">FAQ</a> for further information.', 'easy-digital-downloads' ),
    'https://docs.easydigitaldownloads.com/article/190-payments-not-marked-as-complete'
  );

  $paypal_settings['disable_paypal_verification'] = array(
    'id'   => 'disable_paypal_verification',
    'name' => __( 'Disable PayPal IPN Verification', 'easy-digital-downloads' ),
    'desc' => $disable_ipn_desc,
    'type' => 'checkbox',
  );

  $api_key_settings = array(
    'paypal_api_keys_desc' => array(
      'id'   => 'paypal_api_keys_desc',
      'name' => __( 'API Credentials', 'easy-digital-downloads' ),
      'type' => 'descriptive_text',
      'desc' => sprintf(
        __( 'API credentials are necessary to process PayPal refunds from inside WordPress. These can be obtained from <a href="%s" target="_blank">your PayPal account</a>.', 'easy-digital-downloads' ),
        'https://developer.paypal.com/docs/classic/api/apiCredentials/#creating-an-api-signature'
      )
    ),
    'paypal_live_api_username' => array(
      'id'   => 'paypal_live_api_username',
      'name' => __( 'Live API Username', 'easy-digital-downloads' ),
      'desc' => __( 'Your PayPal live API username. ', 'easy-digital-downloads' ),
      'type' => 'text',
      'size' => 'regular'
    ),
    'paypal_live_api_password' => array(
      'id'   => 'paypal_live_api_password',
      'name' => __( 'Live API Password', 'easy-digital-downloads' ),
      'desc' => __( 'Your PayPal live API password.', 'easy-digital-downloads' ),
      'type' => 'text',
      'size' => 'regular'
    ),
    'paypal_live_api_signature' => array(
      'id'   => 'paypal_live_api_signature',
      'name' => __( 'Live API Signature', 'easy-digital-downloads' ),
      'desc' => __( 'Your PayPal live API signature.', 'easy-digital-downloads' ),
      'type' => 'text',
      'size' => 'regular'
    ),
    'paypal_test_api_username' => array(
      'id'   => 'paypal_test_api_username',
      'name' => __( 'Test API Username', 'easy-digital-downloads' ),
      'desc' => __( 'Your PayPal test API username.', 'easy-digital-downloads' ),
      'type' => 'text',
      'size' => 'regular'
    ),
    'paypal_test_api_password' => array(
      'id'   => 'paypal_test_api_password',
      'name' => __( 'Test API Password', 'easy-digital-downloads' ),
      'desc' => __( 'Your PayPal test API password.', 'easy-digital-downloads' ),
      'type' => 'text',
      'size' => 'regular'
    ),
    'paypal_test_api_signature' => array(
      'id'   => 'paypal_test_api_signature',
      'name' => __( 'Test API Signature', 'easy-digital-downloads' ),
 
[1] [2] Next »

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 12th September 2021

Primary Sidebar

Information

Function name: edd_register_paypal_gateway_settings
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/gateways/paypal-standard.php
File ref: includes/gateways/paypal-standard.php
Deprecated?: No
API Letters: E,G,P,R,S

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites