Preparation

You will need to register an account with Paypal here.

Sandbox Integration

First, you will need to create API Credentials following these steps:

  1. Access: https://developer.paypal.com/home
  2. Click on the "Get API Credentials" button, then you will be directed to the page https://developer.paypal.com/dashboard/
Screenshot 2024-03-14 at 11.23.36.png
  1. Select the sandbox mode at the top right corner.
Screenshot 2024-03-14 at 11.23.59.png
  1. Scroll down a bit, you will see a menu named API credentials, click on it.
Screenshot 2024-03-14 at 11.25.54.png
  1. Now you will be directed to the screen https://developer.paypal.com/dashboard/applications/sandbox
  2. Here you will find information about Client ID and Secret, copy these two pieces of information to a safe place.

Next, return to ezyplatform. In the admin interface, navigate to the menu E-Commerce > Payment Services, select to change Sepay, and fill in the information as follows:

  1. Name: PAYPAL.
  2. Version: You can leave it blank.
  3. Bank: You can choose any bank.
  4. Currency: Select USD.
  5. Service URL: Fill in: https://sandbox.paypal.com
  6. Service API URL: Fill in https://api-m.sandbox.paypal.com
  7. Callback URL: Leave it as default.
  8. Client key: It's the Client ID you just copied.
  9. Secret key: It's the Secret you just copied.
  10. Status: Choose Activated.

After setting up, from the web interface, create an order and select Paypal as the payment method, then a screen for selecting payment methods will appear like this:

Screenshot 2024-03-14 at 11.38.36.png

Select PayPal. You can get a list of sandbox accounts here for logging in and making payments.

Also, you can get information about test card accounts here to test successful or failed payment cases.

Real Environment Integration

First, you will need to create API Credentials for the live environment following these steps:

  1. Go back to https://developer.paypal.com/dashboard/applications/sandbox
  2. Select the live mode at the top right corner.
  3. Copy Client ID and Secret to a safe place.

Next, return to ezyplatform. In the admin interface, navigate to the menu E-Commerce > Payment Services, select to change Sepay, and fill in the information as follows:

  1. Name: PAYPAL.
  2. Version: You can leave it blank.
  3. Bank: You can choose any bank.
  4. Currency: Select USD.
  5. Service URL: Fill in: https://paypal.com
  6. Service API URL: Fill in https://api-m.paypal.com
  7. Callback URL: Leave it as default.
  8. Client key: It's the Client ID you just copied.
  9. Secret key: It's the Secret you just copied.
  10. Status: Choose Activated.

Try making a payment for a low-value order to ensure that you have successfully integrated it.

Congratulations! You have completed the payment integration with Paypal!