PayPal
PayPal is an online payment method. It offers a safe way to pay for shoppers without sharing their payment details with the merchant.
PayPal works by letting users link their bank account or card to a PayPal account, so they can securely pay online without sharing financial details with the seller. During checkout they can choose which card or account they want to use.
When making a purchase online, users can choose PayPal at checkout, log in to their account, and confirm the payment. PayPal then securely transfers the funds to the seller without sharing the buyer’s financial details, completing the transaction quickly and safely.
CM supports the creation of a PayPal payment and refunding a PayPal transaction.
Initiate a payment
First you need to create a payment. Send in a return URL to which we will redirect the consumer after they finished the payment in the PayPal checkout. You will receive a response in which the payment has the status OPEN. Redirect the consumer to the URL given in the action.redirect.url. Make sure you store the ID for future calls (like for instance refunds).
The consumer needs to finish the payment in the PayPal checkout. If the consumer decides to finish the payment, the status will change to SUCCESS which can be either fetched by invoking the GET transaction endpoint or you will be notified through a webhook call.
Refund
Refunds for PayPal work the same way as most of the other payment methods. You need to send us the original transaction ID in the URL and the amount and reason for the refund.
Updated 8 months ago