• 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 / register_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 = register_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/admin/settings.php
Lines:

1 to 65 of 65
function register_gateway_settings( $gateway_settings ) {

  $paypal_settings = array(
    'paypal_settings'              => array(
      'id'   => 'paypal_settings',
      'name' => '<h3>' . __( 'PayPal Settings', 'easy-digital-downloads' ) . '</h3>',
      'type' => 'header',
    ),
    'paypal_documentation'         => array(
      'id'   => 'paypal_documentation',
      'name' => __( 'Documentation', 'easy-digital-downloads' ),
      'desc' => documentation_settings_field(),
      'type' => 'descriptive_text'
    ),
    'paypal_connect_button'        => array(
      'id'    => 'paypal_connect_button',
      'name'  => __( 'Connection Status', 'easy-digital-downloads' ),
      'desc'  => connect_settings_field(),
      'type'  => 'descriptive_text',
      'class' => 'edd-paypal-connect-row'
    ),
    'paypal_sandbox_client_id'     => array(
      'id'    => 'paypal_sandbox_client_id',
      'name'  => __( 'Test Client ID', 'easy-digital-downloads' ),
      'desc' => __( 'Enter your test client ID.', 'easy-digital-downloads' ),
      'type' => 'text',
      'size' => 'regular',
      'class' => 'edd-hidden'
    ),
    'paypal_sandbox_client_secret' => array(
      'id'   => 'paypal_sandbox_client_secret',
      'name' => __( 'Test Client Secret', 'easy-digital-downloads' ),
      'desc' => __( 'Enter your test client secret.', 'easy-digital-downloads' ),
      'type' => 'password',
      'size' => 'regular',
      'class' => 'edd-hidden'
    ),
    'paypal_live_client_id'        => array(
      'id'   => 'paypal_live_client_id',
      'name' => __( 'Live Client ID', 'easy-digital-downloads' ),
      'desc' => __( 'Enter your live client ID.', 'easy-digital-downloads' ),
      'type' => 'text',
      'size' => 'regular',
      'class' => 'edd-hidden'
    ),
    'paypal_live_client_secret'    => array(
      'id'   => 'paypal_live_client_secret',
      'name' => __( 'Live Client Secret', 'easy-digital-downloads' ),
      'desc' => __( 'Enter your live client secret.', 'easy-digital-downloads' ),
      'type' => 'password',
      'size' => 'regular',
      'class' => 'edd-hidden'
    ),
  );

  
/**
 * Filters the PayPal Settings.
 *
 * @param array $paypal_settings
 */
  $paypal_settings                     = apply_filters( 'edd_paypal_settings', $paypal_settings );
  $gateway_settings['paypal_commerce'] = $paypal_settings;

  return $gateway_settings;
}
 

 View on GitHub View on Trac

Published: 12th September 2021 | Last updated: 12th September 2021

Primary Sidebar

Information

Function name: register_gateway_settings
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/gateways/paypal/admin/settings.php
File ref: includes/gateways/paypal/admin/settings.php
Deprecated?: No
API Letters: G,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