Initiate a payment with input details you collected from the shopper.
/payments endpoint to start a payment transaction. Here, you send in the payment request parameters (such as currency and transaction value), together with the input details as collected from the shopper.
Adyen will then process the payment and return a result in the response. This result indicates whether the payment has reached a final state (authorised/refused), or you should perform additional steps to complete the payment such as 3D Secure and iDEAL.
For initiating a card payment, you can submit raw card data, if you are PCI-compliant at Level 1 or 2.
Alternatively, you can make use of Secured Fields, as shown in the example below:
Card with 3D Secure
If 3D Secure is required to a card payment, you will get a response with redirect information, as shown in the example below.
Certain payment methods, such as iDEAL, require the shopper to complete a payment in an external app or website. In this case, the response will contain a
redirect object with the information required to perform the redirect. Use this to redirect the shopper to the given URL using either the POST or GET method.
After the shopper has completed the payment, they will be redirected to the
returnUrl that you passed in the request to
/payments. This return URL is appended with a URL query, which you will need to submit to the
- /payments – API Explorer