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)

Generic failure for testing

Failed

test_failed_number

999999990003 (PESONet & Instapay)

Destination account not found

Failed

account_not_found

999999990004 (PESONet & Instapay)

Destination account inactive

Failed

account_not_active

999999990005 (PESONet & Instapay)

Destination account limit reached

Failed

account_limit_reached

999999990006 (PESONet & Instapay)

Provider internal error

Failed

internal_server_error

{
    "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
        }
    }
}