MOTO による支払いを処理する
通信販売/電話販売 (MOTO) の決済を処理します。
To process MOTO payments with a server-driven integration, you must:
注
If you’re displaying cart details using the setReaderDisplay method, you must reset the reader’s display from a line item interface to the splash screen before collecting a MOTO payment.
MOTO payment collection flow
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_
.