Skip to main content
You can make an API request to initiate a MOTO payment and use Web Drop-in to enter the shopper’s payment details in your UI. For example: when a shopper calls your call center, your user (for example, an agent in your call center) enters the shopper’s card details in the Drop-in payment form and submits the payment.

Requirements

How it works

Use the Checkout API to initiate a payment session and enter the shopper’s payment details in the Drop-in payment form.
  1. Your shopper contacts you to initiate a MOTO payment.
  2. Your user (for example, an agent in your call center) goes to your UI for MOTO payments.
  3. Your user enters the payment amount and other required information in your UI.
  4. Your UI application passes the payment amount and other required information to your server.
  5. Your server makes an API request to create a payment session.
  6. Your UI application creates an instance of Drop-in using the session data from the server.
  7. Drop-in shows the payment form.
  8. Your user enters the shopper’s payment details in the payment form and submits the payment.
  9. Your webhook server receives the webhook containing the payment outcome.

Create a session

Create the payment session resource that includes payment amount information. To create a payment session, make a /sessions request, including: The following example shows how to create a session for a payment of 10 EUR. Example /sessions request for a MOTO payment
The response contains:
  • sessionData: the payment session data you need to pass to your front end.
  • id: a unique identifier for the session data.
  • The request body.
Example HTTP 201 /sessions response
If you do not get an HTTP 201 response, use the errorCode field and the list of API error codes to troubleshoot.

Prepare your front end

Use Drop-in to show the payment form in your UI, where you enter the shopper’s payment details.

Install Adyen Web

Use the Adyen Web npm package, or embed the Adyen Web script and stylesheet into your HTML file: