m2pfintech
Implementation Guide

Testing Guide

Sandbox testing sequence, key test cases, and entity state machine testing for M2P Prepaid Platform integration.

Sandbox Environment

ResourceURL
API Base URLhttps://sandbox-api.m2pprepaid.com
Portalhttps://sandbox-portal.m2pprepaid.com
OpenAPI Docshttps://sandbox-api.m2pprepaid.com/api-docs

Sandbox is a full-featured replica of production with test BINs and simulated card network responses. Expect slightly higher latency than production.


Follow this exact order to avoid dependency issues:

Authentication — Obtain JWT token with sandbox credentials.
BIN Setup — Create BIN → Create BIN Range.
Product Setup — Create Product with BIN mapping → Approve Product.
Customer Onboarding — Create Customer → Upload KYC → Approve KYC.
Issuance — Issue Card/Wallet → Verify status transitions (ALLOCATED → ACTIVE).
Load & Credit — Load wallet → Verify balance update.
Transaction Tests — ATM withdrawal, POS purchase, E-Commerce, UPI, P2P.
Fee Verification — Verify correct fee deduction per transaction type.
Limit Tests — Exceed daily/monthly limits → Verify decline.
Notification Tests — Verify SMS/Email/Push/Webhook delivery.
Card Lifecycle — Lock → Unlock → Block → Replace.
Account Closure — Close account → Verify balance refund.

Key Test Cases

#Test CaseExpected ResultError If Failed
1Create product without BINErrorPP_CORP_028
2Create product with valid BINSuccess
3Issue card on active productKit in ALLOCATED status
4Issue beyond BIN rangeErrorPP_CORP_035
5Load walletBalance updated
6Debit exceeding balanceErrorPPCUST_079
7Debit exceeding daily limitErrorLimit exceeded
8Transaction on locked cardErrorCard locked
9Transaction on blocked MCCDeclinedMCC restricted
10UPI on non-UPI productErrorUPI not enabled
11Forex load without LRSErrorPP_CORP_116
12Card replacementNew kit issued
13Webhook deliveryWebhook received at callback

Entity State Machine Testing

Customer Status Transitions

Card Status Transitions


Common Sandbox Issues

IssueCauseResolution
401 UnauthorizedToken expiredRe-authenticate (tokens expire in 3600s)
TENANT_NOT_FOUNDWrong X-TENANT-IDVerify tenant ID in headers
Product creation failsBIN not created firstCreate BIN + Range before product
Transaction timeoutSandbox latencyRetry; sandbox has higher latency
Webhook not receivedURL unreachableEnsure public HTTPS URL, check firewall

On this page