Search Overlay

PayPal

The Paysafe Payments API supports Paypal as a Payment Instrument. You can process Paypal payments using the Payments API.

Typical Scenarios

Paypal Payment

When you want to process a Paypal payment request, you would do the following:

  1. Create a Payment Handle with the transactionType parameter set to PAYMENT and the paymentType parameter set to PAYPAL.
  2. Since the customer has to complete payment authentication by providing Paypal details, Paysafe returns a response with the following:
    • The action parameter is set to REDIRECT
    • A payment_redirect link points to the Paypal redirect URL
  3. Redirect the customer to the Paypal redirect URL so they can provide the email address and password details to complete the money transfer.
  4. Upon successful customer authentication, the merchant gets notified at the URL specified in the on_completed parameter included with their request.
  5. At this point, the status of the Payment Handle becomes PAYABLE.
  6. Use the paymentHandleToken returned in the response to process the Payment request.

Once the Payment request is successfully completed, the funds are immediately transferred to the merchant's account.

Paypal Withdrawal

When you want to process a Paypal withdrawal request, you would do the following:

  1. Create a Payment Handle with the transactionType parameter set to STANDALONE_CREDIT and the paymentType parameter set to PAYPAL.
  2. This Payment Handle should immediately have the status of PAYABLE
  3. Use the paymentHandleToken returned in the response to process the Withdrawal request.

Once the Payment request is successfully completed, the funds are immediately transferred to the customer's account.