Process MOTO paymentsBeta
As when collecting payments with the server-driven integration, the first step is to create a PaymentIntent
.
Create a PaymentIntent
To begin collecting a MOTO payment, you must create a PaymentIntent with payment_method_types that includes card
.
Process the payment
After you create a PaymentIntent
, use process_payment_intent to process the payment, setting process_config[moto] to true
.
The process_payment_intent request is asynchronous. After the request, the reader prompts you to enter the cardholder’s card number, CVC, expiration date, and postal code. You can then confirm the cardholder’s details to submit the payment for authorization.
Verify the reader state
Your application must follow the instructions for verifying the reader state to confirm a successful (approved) payment.
Capture the Payment
You must call capture to complete the payment if the PaymentIntent
has a status of requires_capture
.