Skip to main content

PayPal

PayPal is a widely recognized online payment platform that enables users to make secure transactions using their PayPal accounts. It supports various funding sources, including bank accounts and credit/debit cards, providing flexibility and convenience for customers. PayPal is available in numerous countries and supports multiple currencies, facilitating international transactions.

Workflows and Transaction Types

SmartPay Integration Flow for Merchants

To integrate PayPal with SmartPay, merchants should follow these steps:

  1. Create Checkout API: Initiate the checkout process by creating a checkout session that includes PayPal as a payment option. This involves sending a request to the SmartPay server with the necessary transaction details.

  2. Checkout Web SDK: Implement the SmartPay Checkout Web SDK in your frontend to render the payment options, including PayPal. The SDK handles the display and interaction of the payment methods, ensuring a seamless user experience.

  3. Subscription Module: For recurring payments, utilize the SmartPay Subscription Module, which manages recurrent Merchant-Initiated Transactions (MIT) based on specific subscriptions and plans. This module supports the registration and storage of PayPal accounts for future transactions.

Customer Initiated Transactions (CIT)

  • Guest Payments: Customers can make one-time payments using their PayPal accounts without storing their payment information.
  • Registered Users: Customers can link their PayPal accounts to their profiles for quicker future transactions.

Merchant Initiated Transactions (CIT)

  • Subscriptions: Merchants can set up recurring billing agreements with customers, allowing automatic payments at specified intervals.
  • Stored Payment Options (SPO): PayPal accounts can be securely stored for future use, streamlining the checkout process.

Transaction Status Flow

Merchants should implement SmartPay notifications to receive transaction status updates. Upon receiving a notification, merchants must call the Get Payment Status API to verify the transaction status.

PayPal Test Data

In order to test PayPal you need to create PayPal Sandbox Account following the PayPal Sandbox Testing Guide.