#1196 Paypal

Parent Category:
DPCalendar
Category:
Payment plugins
Last Updated:
Allon Moritz, Thursday, 28 November 2019 09:15 (1 week ago.)
Created:
Wednesday, 06 August 2014 03:31 (Wednesday, 06 August 2014)
Hits:
5366

Introduction

With PayPal, your visitor can pay instantly using his credit card or checking account without giving out your credit card and checking account information. You must have an active PayPal account before configuring the plugin. There are two drivers you can use the plugin in. The older Express driver and the new Rest API driver, more information can be found in the developer docs.

Express Driver

The express driver is the older driver and uses the username, password and signature settings from your account as credentials. It is the most stable way to use but uses no OAuth technique for authorization as the username and password are transmitted. With the express driver you can also get payments by credit card, where the visitor doesn't need a PayPal account.

Please follow the steps below to get the necessary settings:

  1. Log in to your PayPal Premier or Business account.
  2. Click the Profile subtab located in the top navigation area.
  3. Click the My selling tools Link on the left navigation.
  4. Click the Update link on the API Access row.
  5. Click the View API Signature link.
  6. Click the Show link on the API Signature and copy the value to the DPCalendar Paypal plugin.
  7. Click the Show link on the API Password and copy the value to the DPCalendar Paypal plugin.
  8. Click the Show link on the Signature and copy the value to the DPCalendar Paypal plugin.

Rest Driver

The PayPal APIs are HTTP-based RESTful APIs that use OAuth 2.0 for authorization. It uses a client id and secret as credentials for authorization which can easily being revoked without exposing username or password. Please follow the steps below to get the necessary settings:

  1. Log in on developer.paypal.com.
  2. Open the dashboard.
  3. On the left sidebar click on "Dashboard -> My Apps and Credentials".
  4. Click on "Live".
  5. Click on "Create App".
  6. Define a name and hit the "Create App" button.
  7. Click on the new created app.
  8. Copy the "Client ID" value to the DPCalendar Paypal plugin.
  9. Copy the "Secret" value to the DPCalendar Paypal plugin.

Using the PayPal Sandbox

Using the PayPal Sandbox is not even half as intuitive as you might think. We have documented every single step you have to take in order to use the Sandbox on your site.

Create a seller account

  1. Log in on developer.paypal.com.
  2. On the left sidebar click on "Sandbox -> Accounts".
  3. Click on "Create Account".
  4. In the modal click on the bottom on "Create custom account".
  5. Set the account type to "Business", choose a country if you want and fill the other fields like email and password. Make sure these are different than your regular PayPal account!!
  6. Click on "Create Account".

Create a buyer account

  1. Log in on developer.paypal.com.
  2. On the left sidebar click on "Sandbox -> Accounts".
  3. Click on "Create Account".
  4. In the modal click on the bottom on "Create custom account".
  5. Set the account type to "Personal", choose a country if you want and fill the other fields like email and password. Make sure these are different than your regular PayPal account!!
  6. Click on "Create Account".

Set up the plugin for use with PayPal Sandbox for the Express driver

  1. Go to Extensions , Plug-in Manager.
  2. Find the DPCalendar Payment - Paypal plugin and edit it.
  3. Set Sandbox to Yes and driver to "Express".
  4. Log in on developer.paypal.com.
  5. On the left sidebar click on "Sandbox -> Accounts".
  6. On the previously created "Business" account click on "Edit/View Account" and then on the "API Credentials" tab.
  7. Copy the "Username" value to the DPCalendar Paypal plugin.
  8. Copy the "Password" value to the DPCalendar Paypal plugin.
  9. Copy the "Signature" value to the DPCalendar Paypal plugin.
  10. Click on Save & Close in the plugin toolbar.

Set up the plugin for use with PayPal Sandbox for the Rest driver

  1. Go to Extensions , Plug-in Manager.
  2. Find the DPCalendar Payment - Paypal plugin and edit it.
  3. Set Sandbox to Yes and driver to "Rest".
  4. Log in on developer.paypal.com.
  5. Open the dashboard.
  6. On the left sidebar click on "Dashboard -> My Apps and Credentials".
  7. Click on "Sandbox".
  8. Click on "Create App".
  9. Define a name and select the sandbox business account, then hit the "Create App" button.
  10. Click on the new created app.
  11. Copy the "Client ID" value to the DPCalendar Paypal plugin.
  12. Copy the "Secret" value to the DPCalendar Paypal plugin.
  13. Click on Save & Close in the plugin toolbar.

Testing DPCalendar with the PayPal Sandbox

  1. Make sure you have at least one event which happens in the future which has a price set and enough free seats. The user you are testing it with needs to have the attending setting set in the calendar.
  2. Click on the attending button on the event details view. You should see now a button which has the label "Pay with PayPal". Click on it and you should be redirected to the PayPal sandbox site.
  3. Make sure the URL begins with https://www.sandbox.paypal.com. If not, you are doing something wrong and you have to set up the plugin again.
  4. Make sure that in the top left corner you see the name you registered with Paypal Sandbox followed by the words "Test Store". If not, you are doing something wrong and you have to set up the plugin again.
  5. Login using the Sandbox personal account email and password and go through with the payment. Remember to click the Pay Now button!
  6. You should be redirected to the "Thank you" page of DPCalendar. In the back end you should see the attending record which has the status published.
  7. The subscription will be enabled. If it is not enabled please make sure that you are running the test from a live server which is accessible from the Internet (NOT your local machine; this will NOT work), your site is NOT set to Off-line Mode, the PayPal plugin is published and its access set to Public (any other access will NOT work) and that there is no firewall / security extension blocking incoming connections from PayPal.

Options

Sandbox [Type: Radio] [Default: JNo]
When enabled, all transactions will be performed against the PayPal Sandbox (testing). DO NOT USE ON PRODUCTION SITES! IT IS MEANT ONLY FOR TESTING PURPOSES!
The following options are available:
  1. JNo
  2. JYes
Driver [Type: Radio] [Default: Express]
Driver
The following options are available:
  1. Express
  2. Rest
Client ID [Type: Text]
The client ID of the Rest API app.
Secret [Type: Text]
The secret of the Rest API app.
API Username [Type: Text]
The e-mail you use with PayPal, or your merchant ID.
API Password [Type: Text]
The e-mail you use with PayPal, or your merchant ID.
API Signature [Type: Text]
The e-mail you use with PayPal, or your merchant ID.
PayPal Callback Text [Type: Text]
(optional) What the button on the PayPal site reads after the user has completed his transaction. Leave empty for the default 'Return to the merchant website' text.
Custom Header Image [Type: Media]
(optional) The URL to your logo so. This image will be displayed on the top of PayPal's checkout page instead of your merchant name. WARNING! It must be an HTTPS URL or your clients will receive warnings about insecure content.
Header Border Color [Type: Color]
(optional) The hex-code of your PayPal checkout page's header border, e.g. FFFFFF for white (note: place no # in front the hex value).

Comments (0)

Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.