Skip to main content

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 ❌ Error scenarios
Regardless of the expiry details you send, payment_method_details.card.expiry always returns the fixed value 12/35 in every response and webhook payload while in test mode.

Testing first-in-series and next-in-series payments

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.
In order to do an end-to-end first-in-series and next-in-series integration you can follow the below steps. Now you can use the same card number with different amount combinations to test different next-in-series scenarios.

First-in-series Test:

  1. Make a first-in-series API request using the PS API.
  2. Render the session_url on your client side and select cards.
  3. Use the below card numbers and amount configurations to simulate the different scenarios.

Next-in-series Test:

  1. Make a next-in-series API request using the PS API
  2. Use the below amount configurations in the API to simulate the different scenarios, while passing the customer_id and payment_method_id in the API request.

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 ❌ Error scenarios

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.