Skip to content

Aquiring Transaction Test

  • In the test environment, to facilitate merchants in debugging the processing flows for different payment results during the integration process, PayerMax provides a comprehensive simulation strategy.

  • During the joint debugging phase, merchants can select a payment method, enter payment information that meets the format requirements, and then proceed to the simulation interface to complete the simulated payment.

  • The test environment does not perform actual deductions. User account information is only verified for format compliance, not for authenticity.

1. Simulation Rules for Integration Modes

Please note that the test amount you set must fall within the current payment method's limit range.

1.1 General Rules for Direct Card Payments

  • Payment methods: CARD, APPLEPAY, GOOGLEPAY.

The payment result can be mocked by specifying the following values for the subject parameter when placing an order:

  • Success: subject = SUCCESS or any other value
  • Failure: subject = FAILED
  • Pending: subject = PENDING
  • 3DS Mock: subject = 3DS

    • Supported integration modes: Pure API Payment, Frontend Components
    • Payment method: CARD
    • On the 3DS page, selecting successful authentication results in a successful payment, while selecting failed authentication results in a failed payment.


1.2.1 APM
  • Redirect URL Interaction: In the production environment, users are redirected to the external payment page. In the test environment, it will jump to the result selection page.

    • List of payment methods:
CountryPayment Method TypeTarget Institution
CNWALLETALIPAY
......
  • Mocking scheme:

Jump Link:

  • Select "Successful": Redirects to the success page, triggers a callback notification, and the order status is set to SUCCESS.
  • Select "Failed": Redirects to the failure page. Users can close the order by clicking the "Close" button on the result page, or wait for the order to expire, after which a callback notification will be triggered, and the order status will be set to FAILED.
  • Select "Pending": Redirects to the pending page. A callback notification will be triggered after the order expires.
  • OTP Interaction: Enter the SMS verification code to directly obtain the payment result.

    • List of payment methods:
CountryPayment Method TypeTarget Institution
SAWALLETSTCPAY
  • Mocking scheme: By default, the payment result is returned as successful. If the subject field is specified, the result will be returned accordingly.

The payment result can be mocked by specifying the following values for the subject parameter when placing an order:

  • Success: subject = SUCCESS or any other value
  • Failure: subject = FAILED
  • Pending: subject = PENDING

1.3 Direct API Payment


1.3.1 APM
  • Most payment methods return a redirectUrl when placing an order, redirecting users to the payment page: In the production environment, users are redirected to the external payment page. In the test environment, users are redirected to the payment result selection page.

    • List of payment methods:
CountryPayment Method TypeTarget Institution
IDWALLETLINKAJA
......
  • Returns a qrCode when placing an order:

    • List of payment methods:
CountryPayment Method TypeTarget Institution
IDBANK_TRANSFERBCA/BRI/BTPN...
BRREALTIME_PAYMENTPIX
SGREALTIME_PAYMENTPAYNOW
PHREALTIME_PAYMENTQRPH
  • Mocking scheme: Returns a QR code when placing an order. The payment result depends on the subject parameter (subject = SUCCESS or subject = FAILED).

  • Returns a vaCode when placing an order:

    • List of payment methods:
CountryPayment Method TypeTarget Institution
TWBANK_TRANSFERYUSHANBANK/...
TWOTC7-ELEVEN/......
  • Mocking scheme: Returns a VA code normally. The payment result depends on the subject parameter (subject = SUCCESS or subject = FAILED).

1.4 Front-end Components

Please refer to "1.1 General Rules for Direct Card Payments".

1.5 Tokenization Payments

2. User Account Information Simulation


2.1 APM

The account information must meet the format requirements. Some examples are provided below, and others can be found online.

EmailBrazilEgyptChile
Any valid email: Example@gmail.comCPF (11 digits): 12345678909
CNPJ (14 digits): 12345678000195
Mobile Number (11 digits starting with 01): 01234567899CI: 123456785

2.2 Card

For card payments, the following test card numbers can be used in the test environment:

VisaMasterJCB
Card Number: 4444333322221111Card Number: 5555555555554444Card Number: 2131 4324 2974 3027
Name: James SmithName: Allen BlackName: James Smith
Expiry Year: 30Expiry Year: 26Expiry Year: 30
Expiry Month: 03Expiry Month: 11Expiry Month: 03
CVV: 123CVV: 357CVV: 123
Saudi MadaKuwait KnetQatar NapsBahrain BenefitPakistan
Card Number: 5297412542005689Card Number: 4507785555554449Card Number: 4215375500883243Card Number: 5326774027281753Card Number: 4919713330643198
Name: William HarrisName: Jacob ThomasName: Olivia TaylorName: Brown JennyName: Patric berg
Expiry Year: 30Expiry Year: 26Expiry Year: 26Expiry Year: 30Expiry Year: 2027
Expiry Month: 05Expiry Month: 11Expiry Month: 06Expiry Month: 08Expiry Month: 06
CVV: 350CVV: 357CVV: 123CVV: 927CVV/CVC: 135

2.3 ApplePay

  • Merchants should create a sandbox Apple account for development. Refer to the official documentation.

  • Select Apple Pay at the checkout to launch the payment form.

  • After authorizing and completing the payment via Apple Pay, the payment result is returned based on the subject field. For details, refer to "ApplePay Sandbox Testing Process".

Note: Apple Pay is supported under the following conditions (subject to the official ApplePay documentation):

  • On Safari browsers of Apple devices (MacBook, iPad, iPhone, etc.).
  • Within Apple's own webview kernel.

2.4 GooglePay

Note:

Google Pay cannot be launched within a WebView. Please use the default browser.

3. API Refund Request Simulation

  • Success: Any amount except for the fixed amounts listed below.

  • Failure - Fixed Amounts (Local Currency): 10000 or 102 (refund failure callback will be triggered after approximately 1 minute).

  • Pending - Fixed Amounts (Local Currency): 20000 or 202.

Released under the MIT License.