Table of Contents | ||
---|---|---|
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900121 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900122 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900123 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900124 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900125 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | 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.
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction Option 1: Include the following headers in the request:
Option 2: Include a price over the maximum allowed | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900129 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900130 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900131 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Cancel the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900132 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 200 (OK) should be returned with the following body:
| ||
3 | Refund the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900133 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 502 (Bad Gateway) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900134 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 502 (Bad Gateway)should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900135 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Cancel the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 502 (Bad Gateway) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900136 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 200 (OK) should be returned with the following body:
| ||
3 | Refund the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 502 (Bad Gateway) 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 | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following header in the request:
| An HTTP response code 504 (Gateway timeout) 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 | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Cancel the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following header in the request:
| An HTTP response code 504 (Gateway timeout) 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 | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 200 (OK) should be returned with the following body:
| ||
3 | Refund the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following header in the request:
| An HTTP response code 504 (Gateway timeout) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900141 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900142 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900143 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Cancel the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900144 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 200 (OK) should be returned with the following body:
| ||
3 | Refund the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900145 |
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 400 (Bad request) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900120 |
Test | Action | Expected result | ||||
---|---|---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction
| An HTTP response code 200 (OK) should be returned with the following body:
| ||||
2 | Partially commit the transaction with an invalid amount Send a PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} with a grossAmount or taxAmount higher than the POST
| An HTTP response code 400 (Bad Request) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900120 |
...
Info |
---|
NOTE: Partial refunds are not supported by all payment providers. |
Test | Action | Expected result | ||||
---|---|---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction
| An HTTP response code 200 (OK) should be returned with the following body:
| ||||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id}
| An HTTP response code 200 (OK) should be returned with the following body:
| ||||
3 | Partially refund the transaction with invalid amount Send a DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} with a grossAmount and or taxAmount higher than the POST.
| An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900120 |
...
Info |
---|
NOTE: Partial refunds are not supported by all payment providers. |
Test | Action | Expected result | ||||
---|---|---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction
| An HTTP response code 200 (OK) should be returned with the following body:
| ||||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id}
| An HTTP response code 200 (OK) should be returned with the following body:
| ||||
3 | Partially refund the transaction Send a DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} with a grossAmount and or taxAmount lower than the POST.
| An HTTP response code 200 (OK) should be returned with the following body:
The requested amount will be refunded to the user. | ||||
4 | Partially refund the transaction with invalid amount Send a DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} with a grossAmount and or taxAmount lower than the POST but higher than the remaining amount.
| An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
5.29 Partial refund uncaptured transaction
Test | Action | Expected result | ||||
---|---|---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 200 (OK) should be returned with the following body:
| ||||
2 | Refund the transaction Send a DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} with a grossAmount and or taxAmount lower than the POST
| An HTTP response code 400 (Bad request) should be returned with the following body:
|
...
This scenario can be tested using Prefer Headers.
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Make a Delete request for a committed transaction Include the following headers in the request:
| An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
5.31 Already refunded (cancel)
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Cancel the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 200 (OK) should be returned with the following body:
| ||
3 | Attempt to cancel the transaction again Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
5.32 Already refunded (refund)
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 200 (OK) should be returned with the following body:
| ||
3 | Refund the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 200 (OK) should be returned with the following body:
| ||
4 | Attempt to refund the transaction again Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 202 (Accepted) should be returned with the following body:
|
...
5.33 Transaction not found (commit)
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Send a PUT request to https://api.bango.net/v5/transaction/{Invalid-bango-transaction-id} with an invalid bango transaction id | An HTTP response code 404 (Not found) should be returned with the following body:
|
...
5.34 Transaction not found (cancel/refund)
Test | Action | Expected result | ||
---|---|---|---|---|
1 | Send a DELETE request to https://api.bango.net/v5/transaction/{Invalid-bango-transaction-id} with an invalid bango transaction id | 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 headers in the request:
| 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 headers in the request:
| An HTTP response code 401 (Unauthorized) 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 | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 401 (Unauthorized) 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 | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Cancel the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 401 (Unauthorized) 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 | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 200 (OK) should be returned with the following body:
| ||
3 | Refund the transaction Send a DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 401 (Unauthorized) 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 503 (Service unavailable) 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 | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 503 (Service unavailable) 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 | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Cancel the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 503 (Service unavailable) 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 | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 200 (OK) should be returned with the following body:
| ||
3 | Refund the transaction Send a DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 503 (Service unavailable) 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 500 (Internal error) 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 | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 500 (Internal error) 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 | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Cancel the transaction Send a valid DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 500 (Internal error) 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 | An HTTP response code 200 (OK) should be returned with the following body:
| ||
2 | Commit the transaction Send a valid PUT request tohttps://api.bango.net/v5/transaction/{Bango-transaction-id} | An HTTP response code 200 (OK) should be returned with the following body:
| ||
3 | Refund the transaction Send a DELETE request to https://api.bango.net/v5/transaction/{Bango-transaction-id} Include the following headers in the request:
| An HTTP response code 500 (Internal error) should be returned with the following body:
|
...
To use Bango's test payment provider 'TestPay' to test this scenario scenario generate a userId using using the following details:
identificationMethodKey | GBR_BANGO |
---|---|
MSISDN | 447710900120 |
Test | Action | Expected result | ||||
---|---|---|---|---|---|---|
1 | Start a transaction Send a valid POST request to https://api.bango.net/v5/transaction
| An HTTP response code 400 (Bad Request) should be returned with the following body:
|
...