2.4.3 Configuring & Troubleshooting with PayPal Standard

Created by Danny Wong, Modified on Sun, 09 Aug 2020 at 01:06 PM by Danny Wong

Video Instructions

What This Video Covers

  • 0:00 - 1:00 - Introduction, adding the new gateway option, and entering your Primary PayPal Email
  • 1:00 - 3:23 - Setting up Advanced Mode
  • 3:23 - 4:55 - Setting up your unique PayPal IPN
  • 4:55 - 6:22 - Entering your PayPal Return URL and other Website Preferences Settings
  • 6:22 - End - Saving the Gateway in MemberPress and Conclusion

Detailed List of Gateway Settings

Below you will find explanations for every setting that you can find for your PayPal Standard Gateway as a reference for both during and after you have setup your gateway:

  • Name - The name users will see when choosing this gateway option during registration.
  • Gateway - This should be set to "PayPal Standard" and will not show up on the frontend.
  • ID - ID of your gateway used in database and to be entered if importing subscriptions for this gateway as outlined here.
  • Show Payment Label - When checked or unchecked, this will show or hide the Name you entered for this gateway option.
  • Show Payment Icon - When checked or unchecked, this will show or hide the PayPal symbol for this gateway option.
  • Show Payment Description - When checked or unchecked, this will show or hide the description for this gateway option.
  • Primary PayPal Email - This is where you should enter the email associated with your PayPal Account and can be found by going to PayPal.com > clicking Profile near the top right corner of the page > Profile and Settings > Business Information.
  • Advanced Mode (Only works for PayPal accounts created after 2009) - Check this box to reveal the option to enter your Paypal API credentials. Click here for PayPal docs on how to set this up or see the above video between minutes 1:00 and 3:23.
  • Use PayPal Sandbox - Check this box if you would like to use PayPal Sandbox for Testing. IMPORTANT NOTE: because of how PayPal Sandbox works, you will NOT be able to simply check this option and start testing! You will have to follow our instructions given here to setup a Sandbox account and testing gateway.
  • Send PayPal Debug EmailsOnly enable this option if you are having issues with your PayPal gateway and know how interpret debug emails or have been told to enable them by our support team. Enabling this option will send out about 5 separate debug emails to your email found in your General WordPress Settings.
  • PayPal IPN URL - Click the clipboard icon next to this URL to copy the IPN that needs to be entered into PayPal for your gateway to work properly. The IPN is entered by going to PayPal.com > clicking Profile near the top right corner of the page > Profile and Settings > My selling tools > Getting paid and managing my risk section > and clicking the update option to the right of Instant payment notifications. Or you can see how this is done between minute 3:23 and 4:55 in the above video.
  • Return URL - the Return URL is entered by going to PayPal.com > clicking Profile near the top right corner of the page > Profile and Settings > My selling tools > Selling online > and clicking the update option to the right of Website preferences. For the other settings on this page you’ll wan to set "Payment Data Transfer" to ON, and you want to have the Encrypted Website Payments option set to OFF. You can see how this is done between minute 4:55 and 6:22 in the above video.

Important Note about Pausing/Resuming with PayPal: When using PayPal as a gateway, we recommend that you disable the ability to Pause/Resume subscriptions. This can be disabled in your MemberPress > Settings > Account tab > Permissions section > checking the option entitled "Allow Members to Pause & Resume their own subscriptions". This is because the PayPal gateway currently only resumes subscriptions on the subscriptions renewal date, NOT the day they click resume. For example: if the subscription is monthly, and the user purchased on the 1st, pauses on the 15th of the month, and later resumes on the 2nd, then their subscription wouldn't renew until the 1st of the next month. The result will be longer if the billing term is longer, like in the case of a yearly subscription. For this reason, we highly encourage our users to disable the ability to pause and resume recurring subscriptions.

Note about Pausing/Resuming Subscriptions with PayPal: PayPal does not send out an IPN when a Subscription is resumed. Because of this, we strongly recommend that you do not resume a subscription from within PayPal itself -- rather always resume your Subscriptions from within the MemberPress admin interface. If a member resumes a Subscription within their own PayPal account, MemberPress will NOT be notified and the Subscription will still show as "paused" in your dashboard - so be aware that there may be cases where you would need to manually change a Subscription's status back to "enabled".

Important Note About Trial Periods with PayPal Standard: If the trial period with PayPal Standard and MemberPress is a number of days greater than 90 and NOT divisible by 7, 30, or 365then we round your trial period to the nearest 7 to be compliant with PayPal's rules for trial periods. For example 92 days would be rounded to 91 days, which would translate to a 13 week trial period. This applies for coupon trial periods or any other trial period as well. Also, when a user upgrades or downgrades and an artificial trial is used for their pro-ration, MemberPress will round their trial days to the nearest divisible increment as stated above.

Back to the top

Capabilities of the PayPal Standard Gateway

  • Process One-Time Payments
  • Process Recurring Payments
  • Process Refunds (Advanced Mode Only)
  • Cancel Recurring Payments (Advanced Mode Only)
  • Pause Recurring Payments (Advanced Mode Only)
  • Resume Recurring Payments (Advanced Mode Only)
  • Process Free/Paid Trial Periods

Back to the top

How to Test with PayPal

To test with PayPal, you are required to set up a Sandbox Account. For detailed instructions on how to do this, please visit this page.

Back to the top

How to Process a Refund

To learn how to process a refund within PayPal please click here. If you have Advanced Mode enabled you as admin will be able to process a full refund for any transaction by going to MemberPress > Transactions > Searching for the transaction by Username or other > Hovering over the unique Transaction ID (should be a random string of numbers and letters) > and clicking the refund link. You'll know that you've done this right if you are shown a pop-up to confirm the refund.

Back to the top

How to Add a Missing Payment

These instructions are to be followed when in your PayPal account you see a completed payment, but that payment is not reflected on the MemberPress > Transactions page and/or is not connected to it's subscription on the MemberPress > Subscriptions page *

Please note that a missing payment is a sign that your PayPal IPN has not been properly setup, or (though less likely) it is being blocked by a server/host security feature or impacted by aggressive caching. Please double and triple check that your PayPal IPN has been setup correctly using our instructions above. 

*If you are seeing a Subscription ID on the MemberPress > Subscriptions page for the user that looks like mp-sub-xxxxxxxxxxx then that needs to be fixed before proceeding. Please follow these instructions to fix. 

Step 1 - Find the Transaction ID for the Payment in PayPal

To begin with, you will need some information in order to find the payment if you are not already aware of it. Things you can use to search for it include:

  • The subscription ID (if a recurring subscription) as it appears on the MemberPress > Subscriptions page (looks like I-xxxxxxxxxxxx).
  • The user's email, which can be found on the WordPress > Users page OR the MemberPress > Members page. NOTE: the user's email on your site may not always be the same as their PayPal email. So, searching by other parameters may be the only option.
  • The date the billing happened.
With that information obtained, you can find the transaction ID in PayPal by following these steps:
  1. Log into your PayPal account.
  2. Click Activity near the top of the page to see your most recent account activities.
  3. Search for a required transaction.
  4. Click the transaction to bring up payment details including your transaction ID (t's a 17-character string made up of both letters and numbers). Here is what it will look like:

Copy the Transaction ID you see there. This will be used in Step 2 below.

Step 2 - Manually add the Transaction

To manually add the missing payment, you can follow these steps based on the type of payment you received:

A Single One-Time Payment (NOT associated with an existing recurring subscription):
  1. Go to MemberPress -> Transactions.
  2. Select Add new at the top of the page.
  3. Paste in Transaction ID you identified above in Step 1 into Transaction number.
  4. Select the user you would like the transaction to be associated with. You can start typing in the username and available options will pop up.
  5. Select which Membership the transaction should be associated with.
  6. Add the transaction Sub-Total amount. This should be what the user paid you.
  7. Add in any data related to taxes as applicable.
  8. Set the Status of the transaction to Complete.
  9. Set the Gateway to PayPal Standard.
  10. Leave the Subscription field blank.
  11. Add the Created Date. The date you set here will be the date at which the user paid you.
  12. Add the Expiration Date. The date you set here will be the date at which the user's payment is set to expire.
  13. Select Create.
If you want to add a transaction to an existing recurring subscription:
  1. Go to MemberPress -> Subscriptions.
  2. Search for the users subscription you would like to add the missing payment to.
  3. Hover over the subscription's unique ID and click on the, "Add Txn," link.
  4. Paste in Transaction ID you identified above in Step 1 into Transaction number.
  5. Select the user you would like the transaction to be associated with. You can start typing in the username and available options will pop up.
  6. Select which Membership the transaction should be associated with.
  7. Add the transaction Sub-Total amount. This should be what the user paid you.
  8. Add in any data related to taxes as applicable.
  9. Set the Status of the transaction to Complete.
  10. Set the Gateway to PayPal Standard.
  11. Leave the Subscription field as is (it should have been auto-populated with the correct ID).
  12. Add the Created Date. The date you set here will be the date at which the user paid you.
  13. Add the Expiration Date. The date you set here will be the date at which the user's payment is set to expire.
  14. Select Create.

Step 3 - Verify

After completing these steps, the payment should be correctly added and the user's subscription should be marked as active as highlighted here ( Note: on the MemberPress > Subscription page, the Active column should be set to a green Yes and the Expires on column should reflect the missing payment's expiration date.): 

Back to the top

Gateway Issues

If you have followed exactly the instructions on this page for setting up your gateway, then it should work properly. So, if you are noticing issues with your gateway, it is likely going to be related to one of the items listed below. We have also included what to do if you are seeing these issues.

  1. Subscriptions and/or Transactions aren't updating correctly - If you are seeing subscriptions connecting to MemberPress with an ID that looks like mp-sub-xxxxxxxxxx and transactions that have ID's that look like mp-txn-xxxxxxxxxx then the issue is related to your IPN configuration. Please be certain that you have correctly entered your IPN. You can review how to do this between minute 3:23 and 4:55 in the above video.
  2. Users aren't being taken to your Thank You page - This means that you haven't correctly entered your return URL and/or configured it's settings. Please review this between minute 4:55 and 6:22 in the video on this page.
  3. Users are getting this system error: There was a problem with our system: The connection to PayPal failed. - This means that your gateway hasn't been saved correctly or that you haven't correctly connected your PayPal account with MemberPress. Please make sure that you have saved your gateway and if you still have issues after that, review the entire video above.
  4. Users are getting this system error: "Things don't appear to be working at the moment. Please try again later." This error occurs by not correctly following our instructions above when setting up the Return URL and other Website Preferences Settings (see minute 4:55 - 6:22 in the video above). Specifically, this occurs when "Block Non-encrypted Website Payment" is turned ON, when it needs to be OFF. 
  5. Users are getting this system error: "Unfortunately a system error has occurred. Please try again later."  - This error might occur if your PayPal account is not completely set up, For instance, the verification process is not finished. Please contact PayPal support in order to resolve it.
  6. You or the user aren't receiving the MemberPress Welcome email, New user sign up email, or other MemberPress emails - These new user MemberPress emails are triggered during the registration process by a completed transaction. If the transaction isn't completing in MemberPress but is marked as such in PayPal, then this is related to the IPN not being set up correctly. You can review how to do setup your IPN between minute 3:23 and 4:55 in the above video.
  7. Your users are seeing this error before getting to the payment screen: ERROR Invalid Payment Method.This likely means that you have enabled the Customize Payment Methods and left this gateway option unchecked. To fix this, simply uncheck the Customize Payment Methods option altogether, or if you need it to disable other gateway options for your membership, be sure to check this gateway option. 
  8. Your users are being taken to a page that says "The link you have used to enter the PayPal system is invalid. Please review the link and try again." - This likely means that you have incorrectly entered the email for this gateway in your MemberPress > Settings > Payments tab. To resolve this issue, please make sure that you are using the main (primary) verified email address for your PayPal account, and that it is formatted correctly. If you are 100% sure that you have correctly entered the email, check for plugin or theme conflicts by deactivating possible suspects and testing again. Plugins that encrypt emails or other security plugins are usually the cause.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article