How to set-up PayPal

Studiocart has the option to allow your users to pay securely with PayPal. This guide will show you how to enable PayPal and how to get your PayPal Client ID, Secret Key, PDT Token and Sandbox details.

How to set-up PayPal:

To get started, Find Studiocart in your WordPress Dashboard menu. Select Settings and toggle to the Payment Methods window.

Then, scroll down to the PayPal settings. As you can see you will need the following information from your PayPal account.

  • PayPal Email
  • Client ID
  • Secret
  • PDT Token (optional)
  • Sandbox Email
  • Sandbox Client ID
  • Sandbox Secret
  • Sandbox PDT Token (optional)

If you don’t have this information, keep reading to learn how to get your PayPal Client ID, Secret Key, PDT Token, and Sandbox details.

Note: The PDT Token and Sandbox PDT Token are only required if you need to set up an integration that uses autologin.

If you do have this information, skip to the final step by clicking here

How to get PayPal Client ID, Secret Key, PDT Token and Sandbox details:

To get started, visit the following website https://developer.paypal.com and log into your PayPal Dashboard.  

Then, in the Dashboard menu under Sandbox select, Accounts and create a Sandbox Business Account. This will give you the ability to make test payments. 

Next, create a PayPal app. To do this, select My Apps and Credentials in the Dashboard menu.

Then, select Create App and give your app a name. Choose the sandbox account you created in the step before and select, Create App once more. 

You should now see the My First App window and your Client ID. Below this, you will see Secret and an option to select show. Copy and paste both your Client ID and Secret into your Studiocart Settings.


Note: If you require the PDT Token, instructions for this are after the Sandbox details.

Now you need to find your Sandbox details. Select My Apps & Credentials in the Dashboard menu, once more. Then, select Sandbox and click on the app name you created earlier. Copy and paste the Sandbox Email, Sandbox Client ID and Sandbox Secret into the Studiocart Settings. 

Now it’s time to add the PDT Token and Sandbox PDT Token.

Note: The PDT Token and Sandbox PDT Token are only required if you need to set up an integration that uses autologin. If you don’t require a PDT Token skip to the final step by clicking here

To access the PDT token go to https://paypal.com/busisnessmanage/account/website and select Account Settings. Then select Website Payments from the Account Settings menu. Find Website Preferences in the Website Payments window and select update.

Account Settings > Website Payments > Website Preferences > Update

In the Website Preferences window scroll down to Payment Data Transfer to locate your Identity Token. Copy and paste the PDT Token into Studiocart Settings.

Note: You can enter in any return URL you like in that field. The system will send a unique return URL to PayPal for each order at the time it’s placed. So PayPal will use that instead of the default URL you’ve chosen.

To get the Sandbox PDT Token visit https://www.sandbox.paypal.com/businessmanage/preferences/website and log in using your Sandbox Seller Account. Scroll down to Payment Data Transfer to locate your Identity Token. Copy and paste the Sandbox PDT Token into Studiocart Settings.

After copying over all of the details into the Studiocart Settings, make sure the Enable setting is toggled on and select, Save Settings.

How To Get Paypal Live Client ID and Secret Key:

When you’re ready to go live login to your Paypal Dashboard at https://developer.paypal.com. Select My Apps & Credentials in the Dashboard menu. Then, select Live and click on the app name you previously created. Copy and paste the Client ID and Secret Key into the Studiocart Settings replacing the Client ID and Secret Key previously entered.  

How to Enable IPN on your Paypal Account

IPN (Instant Payment Notification) is a POST message sent by Paypal (for regular merchant accounts) whenever a transaction is completed on their side. This message contains all the data regarding the payment transaction completed by a form user. 

How to set up PayPal IPN settings? 

1. Log in to your Paypal account 

2. Navigate to your Account Settings page:

3. In the Account Settings page, click the Website Payments under Products and Services.

4. Click Update link under the Instant payment notifications option.

5. Click Choose IPN Settings button to specify your listener’s URL and activate the listener.

6. Specify the Default URL for your listener in the Notification URL field. If you’re not using IPN outside of Studiocart, you may use the URL of your website

Note: The default notification URL does not matter. Studiocart just needs IPN to be enabled

7. Choose Receive IPN messages (Enabled) to enable your listener.

8. Click Save. The following screen appears as a confirmation that your IPN has now been enabled. 

9. Click Back to Profile Summary to return to the Profile after activating your listener. You also can click Edit settings to modify your notification URL or disable your listener. You can click Turn Off IPN to reset your IPN preferences.