Table of Contents | ||
---|---|---|
|
...
To use Bango's test payment provider 'TestPay' to test this scenario these scenarios generate a userId using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900120 |
Test | Action | Expected result | ||||
---|---|---|---|---|---|---|
1 | Check for available payment options before starting a transaction Send a valid OPTIONS request to https://api.bango.net/v5/transaction E.g.
| An HTTP response code 200 (OK) should be returned with the following body:
|
...
This scenario can be tested using Prefer Headers.
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid OPTIONS request to https://api.bango.net/v5/transaction 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 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction 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 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction 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 or forcing an error.
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Option 1: Send a valid POST request to https://api.bango.net/v5/transaction Include the following headers in the request:
Option 2: Make a request with any malformed or invalid JSON body.
| An HTTP response code 202 (Accepted) should be returned with the following body:
|
9.6 Invalid bangoUserId
Test | Action | Expected result | ||||
---|---|---|---|---|---|---|
1 | Send an OPTIONS request with an invalid bangoUserId to https://api.bango.net/v5/transaction E.g.
| An HTTP response code 200 (OK) should be returned with the following body:
|
...
This scenario can be tested using Prefer Headers.
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction Include the following header 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 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction Include the following header 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 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction Include the following header in the request:
| An HTTP response code 202 (Accepted) should be returned with the following body:
|
...