How can I verify a card's information is correct?
To verify card details, follow the instructions below:
- Create a payment intent using
capture method = manual
.- In the Response Body of this request, if the value of the
charges.status
property is"succeeded"
, the card’s information is correct.- If the value of the
charges.status
property is"failed"
and the value of thecharges.failure_code
property indicates any incorrect or expired details, it means the card’s information is incorrect. You can learn more common failure codes and what they mean here.
- If the value of the
- In the Response Body of this request, if the value of the
- Once the card details have been verified, it is recommended to cancel the payment intent as soon as possible to ensure the charge is removed from the cardholder’s statement.