Checkout for PayPal Plugin Settings

Checkout for PayPal plugin uses PayPal REST API to add smart payment buttons to your website.

To Generate REST API credentials for the sandbox and live environments:

  1. Log in to the Developer Dashboard with your PayPal account credentials.
  2. On My Apps & Credentials, use the toggle to switch between live and sandbox testing apps (If you are creating a Sandbox app, you will also need to select a test business account that will act as the API caller).
  3. Navigate to the REST API apps section and click Create App.
  4. Type a name for your app and click Create App. The app details page opens and displays your credentials.
  5. Copy and save the client ID and secret for your app.
  6. Review your app details and save your app.

Log in to your WordPress admin dashboard and navigate to Checkout for PayPal > Settings.

general settings of the checkout for PayPal WordPress plugin
  1. Enter the Client ID for your REST API app.
  2. Enter the Secret Key for your REST API app.
  3. Enter the default Currency Code.
  4. Enter a return page URL to which the customer will be redirected after a payment.
  5. Enter a cancel page URL to which the customer will be redirected when a payment is cancelled.
  6. Enter a checkout page URL where checkout options will appear (The page must contain the [coforpaypal_checkout] shortcode in it).
  7. Click Save Changes.

General Settings

There are some optional settings in the General tab that you can configure to customize the Checkout experience.

Locale

The locale used to localize PayPal Checkout components. For example, fr_FR. The default is empty where PayPal detects the correct locale for the buyer based on their geolocation and browser preferences.

If you wish to customize this parameter you can find the full list here.

Load Scripts Globally

By default, checkout scripts are loaded only when a shortcode is present on a page. Enabling this option will load the scripts on every page.

Enabled Funding Sources

Funding sources that should be displayed as buttons at checkout (comma-separated format). Example:

  • venmo
  • venmo,credit
  • venmo,credit,paylater

It is not necessary to manually specify a funding source as the eligibility is determined by PayPal automatically. However, this field can be used to ensure a funding source is always rendered, if eligible. You can find the full list of funding sources here.

Disabled Funding Sources

Funding sources that should not be displayed as buttons at checkout (comma-separated format). Example:

  • card
  • card,credit
  • card,credit,paylater

You can find the full list of funding sources here.

Buyer Country

The country to determine which funding sources are eligible for a given buyer. For example, US. This test-mode-only feature lets you test checkout as a buyer from a particular country.

Email Settings

In the email settings area, you can choose to configure some email related settings.

Email Sender Options

In this section, you can specify a From Name and From Email Address that will be used by the Checkout for PayPal plugin when sending an email. You can leave them empty to use the default.

email sender options in the checkout for paypal plugin

Purchase Receipt Email

Checkout for PayPal plugin allows you to send a purchase receipt email to the customer after completion of a successful purchase. By default, this feature is disabled. In order to use this feature, you need to enable it in the settings.

purchase receipt email related options in the checkout for paypal plugin

You can customize the following options in the purchase receipt email,

  • Purchase Receipt Email Subject: The subject line for the purchase receipt email.
  • Purchase Receipt Email Type: The content type of the purchase receipt email (Plain Text/HTML).
  • Purchase Receipt Email Body: The main content of the purchase receipt email. You can use various tags in the email body to dynamically change its content when it is sent.

Sale Notification Email

Checkout for PayPal plugin can send a sale notification email to your chosen recipient after completion of a successful purchase. By default, this feature is disabled. In order to use this feature, you need to enable it in the settings.

sale notification email related options in the checkout for paypal plugin

You can customize the following options in the sale notification email,

  • Sale Notification Email Recipient: The email address that should receive a notification anytime a sale is made.
  • Sale Notification Email Subject: The subject line for the sale notification email.
  • Sale Notification Email Type: The content type of the sale notification email (Plain Text/HTML).
  • Sale Notification Email Body: The main content of the sale notification email. You can use various tags in the email body to dynamically change its content when it is sent.

Email Tags

The following email tags can be used in the email body to dynamically change its content when an email is sent,

{given_name} – The customer’s given name.

{surname} – The customer’s surname.

{txn_id} – The unique transaction ID for this purchase.

{description} – The purchase description.

{currency_code} – The currency code used to make the payment.

{amount} – The total order amount.

{item_total} – The total item amount.

{payer_email} – The customer’s email address.

{shipping_name} – The customer’s shipping name.

{shipping_address} – The customer’s shipping address.

{shipping} – The shipping fee.

{phone_number} – The customer’s phone number (available only when the “Contact Telephone Number” option is enabled in your PayPal merchant account under “Account Settings > Website payments > Website preferences”). PayPal only supports national numbers at the moment.

Leave a Comment