Table of Contents | ||
---|---|---|
|
...
To use Bango's test payment provider 'TestPay' to test this scenarios scenario generate a userId using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900120 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Send a valid GET request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 200 (OK) should be returned with the following body:
|
...
This scenario can be tested using Prefer Headers or by forcing an error.
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Option 1: Send a GET request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
Option 2: Send a GET request with an invalid bango transaction id to https://api.bango.net/v5/transaction/{Invalid-bango-transaction-id} | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
This scenario can be tested using Prefer Headers.
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Send a GET request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
This scenario can be tested using Prefer Headers.
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Send a GET request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
This scenario can be tested using Prefer Headers.
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Send a GET request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
This scenario can be tested using Prefer Headers.
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Send a GET request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 202 (Accepted) should be returned with the following body:
|
...