Recurring Payments for PayPal Standard

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - Thumbnail

 

Recurring Payments for PayPal Standard Add-on allows you to accept Recurring Payments from your members through PayPal Standard Payment Gateway.

 

Install the Recurring Payments for PayPal Standard Add-on

Recurring Payments for PayPal Standard is a Pro add-on, available with a Paid Member Subscriptions Pro license only.

After purchasing the add-on, the .zip file will be available for download under your account page by clicking the “Add-ons Download” button.

Paid Member Subscriptions Pro - Account Page - Download Add-ons

Once downloaded, you can install the add-on as a normal WordPress plugin, by uploading the .zip file in your WordPress Admin -> Plugins -> Add New -> Upload Plugin.

Alternatively, you can install the Recurring Payments for PayPal Standard add-on by extracting the folder found inside the archive and uploading the entire folder via FTP to your /wp-content/plugins folder found inside your WordPress install.

Notes – For Recurring Payments for PayPal Standard add-on to work as expected, you’ll also need to have the following plugins and features to be installed and activated on your site:

  • Paid Member Subscriptions – version 1.5.0 or higher
  • PayPal Business Account – Business accounts allow you to accept all payment types for low fees and to accept payment from customers without PayPal accounts. Business Accounts include all of the benefits of Standard or Premier accounts as well as other special features
  • PayPal SSL Certificate Requirements – If you’re using Recurring Payments for PayPal Standard, you must have an SSL certificate installed on your site. To avoid any disruption of service, you must verify that your systems are ready for this change by June 30th, 2017read more

Recurring Payments for PayPal Standard Settings

Once the add-on is activated, navigate to Paid Member Subscriptions -> Settings -> Payments where you’ll find PayPal Standard as the Active Payment Gateway.

Make sure to check the payment gateways you want to use on your site. You can also setup a default payment gateway for accepting member payments.

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - Settings

Paid Member Subscriptions Payments Settings that we can setup:

  • Currency – Select your currency. Please note that some payment gateways can have currency restrictions
  • Currency Position – Select whether the currency symbol should appear before the price or after the price
  • Test Mode – By checking this option you will be able to use Paid Member Subscriptions with Test Accounts from your payment processors
  • Active Payment Gateways – Select which Payment Gateways are active on your domain
  • Default Payment Gateway – Select which Payment Gateway is selected by default inside the Registration form
  • Renewal – Select renewal type from “Customer opts in for automatic renewal”, “Always renew automatically” or “Never renew automatically”.

This is how the Paid Member Subscriptions Registration Form looks like after we active the PayPal Standard Payment Gateway and the Renewal feature is set to “Customer opts in for automatic renewal”:

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - Registration Form

Renewal (Recurring Payments)

You can setup the PayPal Standard Payment Gateway to process recurring payments on your domain if you use the Recurring Payments for PayPal Standard add-on. To use the Renewal feature go to Paid Member Subscriptions -> Settings -> Payments -> Renewal.

The Renewal option settings:

  • Customer opts in for automatic renewal – If this option is selected the user will be able to decide if he wants to make a One Time Payment or a Recurring Payment. To make a recurring payment he will need to check inside the Registration form the “Automatically renew subscription” checkbox
  • Always renew automatically – If this option is selected all payments will be Recurring
  • Never renew automatically – If this option is selected all payments will be One Time Payments

Paid Member Subscriptions Pro - Stripe - Renewal

Entering your PayPal API Credentials

Go to Paid Member Subscriptions -> Settings -> Payment Gateways -> PayPal Standard to enter the Email Address that is connected to your PayPal Business account.

Below you’ll need to enter your PayPal API credentials for PayPal Standard Recurring Payments. These are required in order to use any of PayPal Standard Recurring Payments features.

Note – When using Paid Member Subscriptions in Live Mode use your Live PayPal Email Address inside “PayPal E-mail Address” and your PayPal Merchant Sandbox Account when using Paid Member Subscriptions in Test Mode

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - API Credentials

PayPal Live API Credentials

For more information on how to obtain your PayPal Live API Credentials see this guide.

Paid Member Subscriptions Pro - PayPal Pro and PayPal Express Checkout - PayPal API Credentials - Live Mode

PayPal Test Mode API Credentials

For more information on how to obtain your PayPal Test API Credentials see this guide.

Paid Member Subscriptions Pro - PayPal Pro and PayPal Express Checkout - PayPal API Credentials - Test Mode

Setting up Instant Payment Notifications (IPN)

PayPal Standard including the Recurring Payments require that you enable IPN Notifications inside your PayPal Business Account. If you are using a Merchant Sandbox Account you will need to login inside the PayPal Sandbox Account to setup the IPN.

For this log into your PayPal Business Account -> Click Profile -> Go to Profile and settings -> My selling tools -> Click “Update” in the Instant Payment Notifications section.

Paid Member Subscriptions Pro - PayPal Pro and PayPal Express Checkout - Instant Payment Notification

Inside Instant Payment Notification (IPN) -> Turn On IPN and set your listener’s URL.

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - PayPal IPN

The Notification URL should be set to:

https://www.yourdomain.com/?pay_gate_listener=paypal_ipn

Note – Replace “www.yourdomain.com” with your actual domain name

Generate PayPal Standard IPN

Add your domain in the field below, example: yourdomain.com, and click on the “Generate IPN” button. As you can see we need to use https for our domain. Use the generated IPN inside your PayPal Account.



Adding an SSL certificate

An SSL certificate is used to establish a secure encrypted connection. PayPal IPN has been/will be updated to https for added security in accordance with PayPal’s announcement.

To avoid any disruption of service, you must verify that your systems are ready for this change by June 30th, 2017.

Online SSL Certificate Checkerhttps://www.ssllabs.com/ssltest/

If you’re using PayPal Standard including Recurring Payments, you must have an SSL certificate installed on your site.

You can obtain security certificates for free instead of paying for traditional SSL certificates (which cost ~ 80$+/year) and install them much easier using Let’s Encrypt. It is a free, automated and open certificate authority that issues domain-validated certificates.

Up until now, the only hosting company that offers the ability to install let’s encrypt certificates in just a couple of clicks directly from the cPanel of your hosting account is Site Ground. Here’s a quick tutorial on how to achieve that.

This is the by far the quickest and most cost efficient way of adding HTTPS to your membership site we found. If you’re not hosted with Site Ground they even offer you a free transfer of one website per account, removing all the friction normally related to the change of hosting.

TLS v1.2

The most secure protocol for sharing information on the web today is Transport Layer Security (TLS) version 1.2. PayPal is enabling support for TLS 1.2 for all secure connections and in 2016 will start requiring its use.

You will need to verify that your environment supports TLS 1.2 and if necessary make appropriate updates. PayPal is updating its services to require TLS v1.2 for all HTTPS connections in June 30th, 2017. After that time, all TLS v1.0 and TLS v1.1 API connections will be refused.

As the Security Notice from PayPal says, please contact your hosting and tell them to update the TLS of your SSL Certificate to v1.2. Also tell them that there is an issue with SSLv3 that is preventing PayPal to work correctly. A suggestion would be to disable SSLv3 in order to see if the payments are processed correctly.

Add https in WordPress

After you install your SSL Certificate on your domain please go to your website -> Login as Admin -> Access the dashboard -> Settings -> General and make sure you add https inside WordPress Address (URL) / Site Address (URL).

Also we recommend to use a free plugin like Really Simple SSL – It automatically detects your settings and configures your website to run over https.

Paid Member Subscriptions Pro - PayPal Pro and PayPal Express Checkout - Add https

Processing a payment with PayPal Standard

If everything is setup correctly, including the PayPal API Credentials and the IPN, we can process our first PayPal Standard payment on our website.

We will test the payments by using Paid Member Subscriptions in Test Mode. Go to Paid Member Subscriptions -> Settings -> Payments -> Check “Test Mode”. By checking this option you will be able to use Paid Member Subscriptions with test accounts from your payment processors.

One time payment

Inside our Registration form we display 3 Subscription Plans: Free, Silver and Gold and the Renewal option is set to “Customer opts in for automatic renewal”.

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - One Time Payment

After registration the user will need to login inside his PayPal Account.

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - PayPal Login

After login the user will need to confirm the payment by clicking on the “Pay Now” button.

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - PayPal Confirm Payment

By clicking on the “Pay Now” button we complete the purchase.

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - PayPal Completed PaymentPaid Member Subscriptions Pro - Recurring Payments for PayPal Standard - PayPal Completed Payment

This is how the payment looks like in Paid Member Subscriptions -> Payments.

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - Completed One Time Payment

Recurring payment

To make a recurring payment when the Renewal option is set to “Customer opts in for automatic renewal” the user will need to check the “Automatically renew subscription” checkbox.

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - Recurring Registration Form

After registration the user will need to login inside his PayPal Account.

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - Recurring Login

After login the user will need to confirm the payment by clicking on the “Agree & Pay” button.

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - Recurring Confirm

By clicking on the “Agree & Pay” button we complete the purchase.

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - Recurring Completed

This is how the payment looks like in Paid Member Subscriptions -> Payments.

Paid Member Subscriptions Pro - Recurring Payments for PayPal Standard - Recurring Completed Payment

PayPal Errors

A PayPal API operation can return multiple error and warning codes. You can view the full list here.

Error 10002 – Authentication/Authorization Failed

If you receive an 10002 PayPal Error when trying to process a payment with PayPal Pro or PayPal Express Checkout it means that your API Credentials are not setup correctly.

Check that the account that will receive payments was used to generate the API credentials. If you’re using PayPal’s Sandbox environment, you must generate API credentials from within the Sandbox business account rather than a Live account. You can read more about this here.

Error 11586 – DPRP is disabled for this merchant

If you receive an 11586 PayPal Error you will need to get in touch with PayPal Business Support to request this feature to be enabled for you. Mention that you’re looking to get “Direct Payment – Recurring Payments” enabled. Read more here.

PayPal Support Email Address: payflow-support@paypal.com

Also make sure to tell PayPal to update PayPal Pro to the latest version on your account. Enabling Direct Payment – Recurring Payments may include additional PayPal fees – $30/Month.

PayPal Currency Error

Lets say that you setup Paid Member Subscriptions to process payments using the £ (Sterling Pound) currency. You will need to make sure that your PayPal Account uses this currency otherwise all your payments will be considered pending. This is required also for Test Merchant Accounts.

To add a currency login inside your PayPal Account -> Currencies -> Select new currency -> Select British Pound -> Add Currency.

Paid Member Subscriptions Pro - PayPal Pro and PayPal Express Checkout - Add Currency