Skip to Content
Testing on PlaygroundTest Data and Flow

Playground Test Data and Flow

This page contains various test data and everything you need to know to test your integration with Beam. Note that this data is for testing purposes with Beam Playground only and cannot be used in our production environment.

Note

To fully understand the testing process, we highly recommend reading our other API guides such as Charges, Payment Links first before proceeding with the testing.

Testing Credit Card Payment

You can use the following test card numbers to simulate various payment scenarios in the Beam Playground. These cards are designed to cover different brand and outcomes, including successful payments, failed payments, and refunds.

For all cards, the expiry date must not be later than the day you call the API. (ex. On September 9th 2024, a card with expiry date of 09/24 will still work, but a card with 08/24,09/23 will not.)

Card (CARD)

ScenarioCard NumberCVVCard BrandResultFailure reasonNote
Credit Card Success: Mastercard Card5372074248113841123MastercardSUCCEEDED--
Credit Card Success: Visa Card4111111111111111123VISASUCCEEDED--
Credit Card Success: Amex Card3782822463100051234AMEXSUCCEEDED--
Credit Card Pending: Force Charge Page4389783280144506123-PENDING-Redirect payer to Force Charge page
Credit Card Pending: OTP Page4953261730509988123-PENDING-Redirect payer to OTP page
Credit Card Failure: Insufficient Funds4943129900084541123VISAFAILEDINSUFFICIENT_FUNDS-
Credit Card Refund Failure: Refund Not Allowed4000007640000003123VISASUCCEEDED-Refund is not allowed
Credit Card Refund Failure: Refund Failed4000000000005126123VISASUCCEEDED-Refund will fail
Credit Card Failure: Payment Rejectedothers123-FAILEDREJECTED-

Card Installments (CARD_INSTALLMENTS)

ScenarioCard NumberCVVCard BrandResultFailure reasonNote
Credit Card Installments Success: KBANK Card4417704002802961123-SUCCEEDED--
Credit Card Installments Success: KTC Card4391370000000006123-PENDING--

Other payment methods

Creating charge with other payment methods would result in a charge whose actionRequired is ENCODED_IMAGE that redirects payer to force charge page.

Here are other payment methods:

  • QR_PROMPT_PAY
  • ALIPAY
  • LINE_PAY
  • MAKE
  • SHOPEE_PAY
  • TRUE_MONEY
  • WECHAT_PAY
  • SCB_EASY
  • KRUNGTHAI_NEXT
  • KRUNGSRI_APP
  • BANGKOK_BANK_APP
  • KPLUS

Force Charge Page

The Force Charge page is a simulated page that allows you to act as a gateway to mark payment as succeeded whenever you want. This page is used to mimic real-world scenarios where payment is not instant.

Initial state of the Force Charge page with Mark as Succeeded button: force-charge-page

After pressing the Mark as Succeeded button, the page will show that the payment is completed with the Return to merchant button.: force-charge-page-return

Upon pressing the Return to merchant button, you will be redirected back to the returnUrl you specified in the charge creation request.

OTP Page

The OTP page is a simulated page that allows you to act as your payer to enter a one-time password (OTP) to complete the payment. This page is used to mimic real-world scenarios where OTP is required for authentication.

Initial state of the OTP page with OTP input field and Submit button:

  • Enter 123456 for SUCCEEDED case
  • Enter anything else for FAILED case otp-page

After entering the OTP and pressing the Submit button, the page will show that the payment is completed with the Return to merchant button.: otp-page-return

Upon pressing the Return to merchant button, you will be redirected back to the returnUrl you specified in the charge creation request.

Last updated on