Use sandbox amount codes and method-specific fields to trigger checkout outcomes. Each method lists the values that apply to init payment.

Bizum

Bizum sandbox uses amount-based outcomes to simulate payment scenarios. Use the init payment API v1 required fields with specific:

  • amount to match the success or error flow
  • customer_phone +34700000000
Success AMOUNT 400 SUCCESS success Amount should be less than 500. Error AMOUNT 700 ERROR 1.01 declined : {code: 1.01 , message: "Authentication failed"} Amount should be between 500 and 1000. AMOUNT 1200 ERROR 5.03 declined : {code: 5.03 , message: "Application error"} Amount should be between 1000 and 1500. AMOUNT 1600 ERROR 3.05 declined : {code: 3.05 , message: "Call your bank"} Amount should be greater than 1500.

Blik One-time

Blik One-time uses a 6-digit code to trigger specific outcomes. Use the init payment API v1 required fields with specific:

  • amount to match the error flow
  • payment_type_data.blik_code
Success BLIK CODE 777987 DIRECT success BLIK CODE 777123 REDIRECT success Error BLIK CODE 960111 PAYMENT DECLINED declined AMOUNT 31200 BLIK CODE 777567 TIMEOUT PAYMENT EXPIRED declined : {code: 0.02 , message: "Order expired"} AMOUNT 12000 INSUFFICIENT FUNDS declined

Blik Recurring

Blik Recurring uses a 6-digit code to trigger specific outcomes for the recurring mandate setup. Use the init payment API v1 required fields with specific:

  • payment_method_flow direct
  • future_usage.payment_type unscheduled
  • payment_type_data.blik_code
Success BLIK CODE 999009 DIRECT success Error BLIK CODE 777123 TIMEOUT PAYMENT EXPIRED declined : {code: 0.02 , message: "Order expired"}

Boleto

Boleto requires a country-specific document field. Use the init payment API v1 required fields with specific:

  • payment_type_data.brazil_cpf

After a successful request, follow pay_form.return_url in the response to complete the payment flow.

Success CPF 52274278288 SUCCESS success Error CPF 213 630 678 26 INVALID CPF FORMAT declined Contains spaces CPF 052.161.533-0 INVALID CPF FORMAT declined Too short

Efecty

Efecty requires a country-specific document field. Use the init payment API v1 required fields with specific:

  • payment_type_data.colombia_cc

After a successful request, follow pay_form.return_url in the response to complete the payment flow.

Success Cedula de Ciudadania 42141221 SUCCESS success

Mercado Pago

Mercado Pago requires a country-specific document field. Use the init payment API v1 required fields with specific:

  • payment_type_data.brazil_cpf

After a successful request:

Success CPF 42141221 SUCCESS success

OXXO

OXXO requires a country-specific document field in payment_type_data. Use the test init payment API v1 required fields with specific:

  • payment_type_data.mexico_curp

After a successful request, follow pay_form.return_url in the response to complete the payment flow.

Success CURP GAMS871004HNERRM56 SUCCESS success

PayPal

PayPal testing allows you to simulate failed transactions using a sandbox environment, which is useful for ensuring that your system correctly handles various scenarios, including negative flows.

Technical declines generated in the sandbox environment do not appear in PayPal's administrative dashboards.
  • Before you begin testing, ensure that your development environment is set up correctly.
  • To perform testing, contact us to request access to the PayPal sandbox account.

To test failed payments, set the API request with currency to USD and an amount, which should be specified in cents (for example, an amount of 302 means 3.02), to trigger errors.

Init payment AMOUNT 302 ERROR 3.02 error : {code: 3.02 , message: "Insufficient funds"} AMOUNT 305 ERROR 3.05 error : {code: 3.05 , message: "Call your bank"} AMOUNT 308 ERROR 3.08 error : {code: 3.08 , message: "Do not honor"} Recurring AMOUNT 301 ERROR 3.01 error : {code: 3.01 , message: "Card is blocked"} AMOUNT 302 ERROR 3.02 error : {code: 3.02 , message: "Insufficient funds"} AMOUNT 305 ERROR 3.05 error : {code: 3.05 , message: "Call your bank"} AMOUNT 308 ERROR 3.08 error : {code: 3.08 , message: "Do not honor"} AMOUNT 502 ERROR 5.02 error : {code: 5.02 , message: "Invalid card token"} AMOUNT 512 ERROR 5.12 error : {code: 5.12 , message: "Account is blocked"}

Pix

SmartPix and Pix require a country-specific document field. Use the init payment API v1 required fields with specific:

  • payment_type_data.brazil_cpf
Success CPF 01063207185 SUCCESS success Error CPF 52274278288 ERROR IN ACQUIRER declined Validation error Missing customer.first_name or customer.last_name Missing billing_address.country

Przelewy24

Przelewy24 is a Polish online bank transfer method supporting multiple banks, including BLIK as a sub-method. Use the init payment API v1 to initiate a payment.

After a successful request, follow pay_form.return_url in the response to complete the payment flow.

Success Select any bank on the sandbox page and approve the payment. SUCCESS success AMOUNT 1002 PENDING pending Error Validation currency not supported Currency other than PLN

PSE

PSE requires a country-specific document field. Use the init payment API v1 required fields with specific:

  • payment_type_data.colombia_cc

After a successful request, follow pay_form.return_url in the response to complete the payment flow.

Success Cedula de Ciudadania 42141221 SUCCESS success

Sencillito

Sencillito requires a country-specific document field. Use the init payment API v1 required fields with specific:

  • payment_type_data.chile_ci

After a successful request, follow pay_form.return_url in the response to complete the payment flow.

Success CI number (identity card) 5633554V SUCCESS success

Servipag

Servipag requires a country-specific document field. Use the init payment API v1 required fields with specific:

  • payment_type_data.chile_ci

After a successful request, follow pay_form.return_url in the response to complete the payment flow.

Success CI number (identity card) 5633554V SUCCESS success

Webpay

Webpay requires a country-specific document field. Use the init payment API v1 required fields with specific:

  • payment_type_data.chile_ci

After a successful request, follow pay_form.return_url in the response to complete the payment flow.

Success CI number (identity card) 5633554 SUCCESS success