Overview

To ensure your integration with Moment APIs functions correctly, you can simulate payment flows during development. This allows you to test various scenarios without any real money movement.

Testing Cards

When testing card payments, always use test API keys. Only use the specified test cards listed below. Do not use real card information under any circumstances.
Note: The 3DS challenge page will not be displayed during testing, as the flow is being simulated to mimic a frictionless authentication experience.

Supported card test scenarios

Success scenarios
Test Card NumberCVCDateDescription
4242 4242 4242 4242Any 3 digitAny future dateValid Test Visa card
5555 5555 5555 4444Any 3 digitAny future dateValid Test Master card
Error scenarios
Test Card NumberError CodeDecline CodeDescription
5555 5568 7936 0005card_declineddo_not_honorThe card was declined by the issuer for unknown reason.
5555 5515 3049 0051card_declinedinsufficient_fundsThe card does not have sufficient funds to complete the transaction.
5555 5553 1674 0043card_declinedstolen_cardThe card was reported stolen.
xxxx xxxx xxxx xxxxinvalid_test_cardN/AThe card used is not a test card.

Testing APM payment methods

Success and failure scenarios for APM (Alternative Payment Methods) payments can be simulated by initiating a payment with a specific amount. The amount should be specified in minor units.

Supported APM test scenarios

Success scenarios
Test AmountWebhook Fired
100001Yes
Error scenarios
Test AmountWebhook FiredError Code
100002Yesinsufficient_funds
xxxxxxNoinvalid_test_amount

Webhook Responses

  1. Payment Session Update - When testing through the Payment Session API, an update will be triggered and delivered to your configured webhook endpoint via the payment_session_updated event.