How to Use PayPal with Authorize.net?
Once enabled, you will need to integrate to the API for PayPal with Authorize.net. For more information on enablement, see:
What is and how to enable PayPal with Authorize.net? - Classic Experience (1.0)
Integrated to the Authorize.net API for PayPal
Use the createTransactionRequest calls with PayPal-specific fields. For more information about our implementation of PayPal Checkout Express, see the PayPal developer guides
Developer Center - API Guide - PayPal Express Checkout
Developer Center - API Reference Guide - PayPal Express Checkout
PayPal Express Transactions Flow
Here is the flow for successful and canceled PayPal transactions:
Successful Auth_Capture Transaction
- You submit an Auth_Capture, specifying PayPal as the method along with a SuccessURL for successful transaction responses and a CancelURL for rejected transactions.
- A transaction is created.
- Authorize.Net submits a request to PayPal.
- PayPal responds with PayerID and SecureAcceptanceURL, and echoes the transaction ID that Authorize.Net created in the refTransID field.
- You display the SecureAcceptanceURL to the customer.
- The customer logs into their PayPal account and approves or rejects the transaction.
- On success, the response is returned to the SuccessURL with the PayerID.
- You submit an Auth_Capture_Continue to Authorize.Net.
- The transaction is authorized and funded at PayPal.
- The transaction is marked as Captured/Pending Settlement.
- The transaction settles after your cut-off time.
Successful Auth_Only Transaction
- You submit an Auth_Only, specifying PayPal as the method along with a SuccessURL for successful transaction responses and a CancelURL for rejected transactions.
- A transaction is created.
- Authorize.Net submits a request to PayPal.
- PayPal responds with PayerID and SecureAcceptanceURL, and echoes the transaction ID that Authorize.Net created in the refTransID field.
- You display the SecureAcceptanceURL to the customer.
- The customer logs into their PayPal account and approves or rejects the transaction.
- On success, the response is returned to the SuccessURL with the PayerID.
- You submit an Auth_Only_Continue to Authorize.Net, which initiates authorization at PayPal.
- The transaction is authorized at PayPal.
- You submit a Prior_Auth_Capture to Authorize.Net.
- The transaction is funded at PayPal.
- The transaction is marked as Captured/Pending Settlement.
- The transaction settles after your cut-off time.
Cancel
On cancel, the response is sent to the CancelURL. The transaction remains in unsettled transaction in "Need Payer Consent" status for 48 hours. The transaction is marked as expired afterwards and settles at your cut-off time.
Voiding
Submitting a void request prior to capture submits an auth reversal to PayPal. A void can only be done on Auth_Only transactions. The transaction is marked as voided in the gateway account.
Get Transaction Details
The PayerID can be retrieved using the Get Details API.
Identifying PayPal Transactions in the Merchant Interface
PayPal transactions can be identified in the Merchant Interface by their unique transaction IDs and the method specified as PayPal.
Developer and Integration Resources
For more detailed instructions and resources, see:
