Wallet API Test Cases

These detailed test cases can be used to check your wallet integration with PayMongo. This step is optional but we highly recommend running these cases. These test cases were developed along with our internal QA team to account for every possible flow through the system.

Note: Use test keys in order to utilize the test accounts. Please refer to Authentication page

Account numbers - Receiver

Description

Status

Provider error / Error code

999999990001 (PESONet & Instapay)

Successful transfer

Succeeded

Not specified

999999990002
(PESONet & Instapay)

Failed wallet transfer

Failed

transaction_limit_exceeded, parameter_invalid, parameter_above_maximum, PesoNet and InstaPay error codes.

{
    "data": {
        "attributes": {
            "amount": 1000,
            "callback_url": "https://hkdk.events/dUHkOUIemkat",
            "provider": "instapay",
            "receiver": {
                "bank_account_name": "Juan Dela Cruz",
                "bank_account_number": "999999990001",
                "bank_code": "UBPHPHMMXXX"
            },
            "type": "send_money"
        }
    }
}

After the status update from Retrieve a Wallet Transaction by ID, the callback URL will receive transaction resource with updated status:

{
    "data": {
        "id": "wallet_tr_xxxxxxxxxxxxxxxxxxxxxxxx",
        "type": "wallet_transaction",
        "attributes": {
            "wallet_id": "wallet_xxxxxxxxxxxxxxxxxxxxxxxx",
            "amount": 1000,
            "currency": "PHP"
            "batch_transaction_id": null,
            "callback_url": "https://hkdk.events/dUHkOUIemkat",
            "fee": 1000,
            "livemode": false,
            "net_amount": 2000,
            "provider": "instapay",
            "provider_error": null,
            "provider_error_code": null,
            "receiver": {
                "bank_account_name": "Juan Dela Cruz",
                "bank_account_number": "999999990001",
                "bank_code": "UBPHPHMMXXX",
                "bank_id": "001",
                "bank_name": "UNION BANK OF THE PHILLIPINES"
            },
            "reference_number": "Q3XLMYkRvn4gaGc6da2P",
            "sender": {
                "bank_account_name": "PayMongo Superuser",
                "bank_account_number": "000000000000"
                "bank_code": "PAEYPHM2XXX",
                "bank_id": "002",
                "bank_name": "PAYMONGO PAYMENTS INC"
            },
            "status": "successful",
            "type": "send_money",
            "transfer_id": "tr_xxxxxxxxxxxxxxxxxxxxxxxx",
            "created_at": 1689135580,
            "updated_at": 1689135580
        }
    }
}