Payant Integration Test

Services to be tested

  • PayTV

  • Pay Electricity

  • Buy Airtime (Purchase Airtime)

  • Buy Data (Pay Data)

  • Buy Scratch Card (Pay Waec)

  • Lookup NIN Min

  • Lookup NIN Mid



Environments

Scenario

TestedBy

TestedOn

Status

Notes

Environments

Scenario

TestedBy

TestedOn

Status

Notes

Local

  • Demo Options should be returned in inspect mode if the request is valid

 

 

 

 

Local

  • Demo Options should not be returned in inspect mode for invalid request

 

 

 



Local

  • Options should be returned in live mode if the request is valid

 

 

 

 

Local

  • Options response should match service descriptions

 

 

 

 

Local

  • Request log should be made to APILogger for Options call

 

 

 

Local

  • Transact call should return mock response on inspect mode

 

 

 

Local

  • Transact call should fail for Invalid BillerID/BillerItemId

 



 

 

Local

  • Transact call with a valid request should return a valid response on live mode


 

Local

  • Transact call response should match service description's

 

 

 

 

Local

  • Transact call with invalid order reference should fail in Live mode

 

 

 

 

Local

  • Request to transact call in live mode should be sent to APILogger

 

 

 

Local

  • Query for an existing transaction should return a valid response

 

 

 

 

Local

  • Request to query call in live mode should be sent to APILogger

 

 

 

Environments

Scenario

TestedBy

TestedOn

Status

Notes

Environments

Scenario

TestedBy

TestedOn

Status

Notes

Local

  • Demo Options should be returned in inspect mode if the request is valid

 

 

 

 

Local

  • Demo Options should not be returned in inspect mode for invalid request

 

 

 



Local

  • Options should be returned in live mode if the request is valid

 

 

 

 

Local

  • Options response should match service descriptions

 

 

 

 

Local

  • Request log should be made to APILogger for Options call

 

 

 

Local

  • Transact call should return mock response on inspect mode

 

 

 

Local

  • Transact call should fail for Invalid BillerID/BillerItemId

 



 

 

Local

  • Transact call with a valid request should return a valid response on live mode


 

Local

  • Transact call response should match service description's

 

 

 

 

Local

  • Transact call with invalid order reference should fail in Live mode

 

 

 

 

Local

  • Request to transact call in live mode should be sent to APILogger

 

 

 

Local

  • Query for an existing transaction should return a valid response

 

 

 

 

Local

  • Request to query call in live mode should be sent to APILogger

 

 

 

 

Environments

Scenario

TestedBy

TestedOn

Status

Notes

Environments

Scenario

TestedBy

TestedOn

Status

Notes

Local

  • Demo Options should be returned in inspect mode if the request is valid

@Hussein Alayo

Sep 5, 2020

sUCCESS

Options call isn’t applicable to this service

Local

  • Demo Options should not be returned in inspect mode for invalid request

@Hussein Alayo

Sep 5, 2020

SUCCESS

Options call isn’t applicable to this service

Local

  • Options should be returned in live mode if the request is valid

@Hussein Alayo

Sep 5, 2020

SUCCESS

Options call isn’t applicable to this service

Local

  • Options response should match service descriptions

@Hussein Alayo

Sep 5, 2020

SUCCESS

Options call isn’t applicable to this service

Local

  • Request log should be made to APILogger for Options call

@Hussein Alayo

Sep 5, 2020

SUCCESS

Options call isn’t applicable to this service

Local

  • Transact call should return mock response on inspect mode

@Hussein Alayo

Sep 5, 2020

SUCCESS

Options call isn’t applicable to this service

Local

  • Transact call should fail for Invalid BillerID/BillerItemId

@Hussein Alayo

Sep 5, 2020

SUCCESS

 

Local

  • Transact call with a valid request should return a valid response on live mode

@Hussein Alayo

Sep 5, 2020

SUCCESS

Local

  • Transact call response should match service description's

@Hussein Alayo

Sep 5, 2020

SUCCESS

 

Local

  • Allow wallet override setting is respected

@Hussein Alayo

Sep 5, 2020

SUCCESS

 

Local

  • Transact call with invalid order reference should fail in Live mode

@Hussein Alayo

Sep 5, 2020

success

 

Local

  • Request to transact call in live mode should be sent to APILogger

@Hussein Alayo

Sep 5, 2020

SUCCESS

 

Local

  • Query for an existing transaction should return a valid response

@Hussein Alayo

Sep 5, 2020

SUCCESS

 

Local

  • Request to query call in live mode should be sent to APILogger

@Hussein Alayo

Sep 6, 2020

SUCCESS

 

 

 

Environments

Scenario

TestedBy

TestedOn

Status

Notes

Environments

Scenario

TestedBy

TestedOn

Status

Notes

Local

  • Demo Options should be returned in inspect mode if the request is valid

 

 

 

 

Local

  • Demo Options should not be returned in inspect mode for invalid request

 

 

 



Local

  • Options should be returned in live mode if the request is valid

 

 

 

 

Local

  • Options response should match service descriptions

 

 

 

 

Local

  • Request log should be made to APILogger for Options call

 

 

 

Local

  • Transact call should return mock response on inspect mode

 

 

 

Local

  • Transact call should fail for Invalid BillerID/BillerItemId

 



 

 

Local

  • Transact call with a valid request should return a valid response on live mode


 

Local

  • Transact call response should match service description's

 

 

 

 

Local

  • Transact call with invalid order reference should fail in Live mode

 

 

 

 

Local

  • Request to transact call in live mode should be sent to APILogger

 

 

 

Local

  • Query for an existing transaction should return a valid response

 

 

 

 

Local

  • Request to query call in live mode should be sent to APILogger

 

 

 

 

 

Environments

Scenario

TestedBy

TestedOn

Status

Notes

Environments

Scenario

TestedBy

TestedOn

Status

Notes

Local

  • Demo Options should be returned in inspect mode if the request is valid

 

 

 

 

Local

  • Demo Options should not be returned in inspect mode for invalid request

 

 

 



Local

  • Options should be returned in live mode if the request is valid

 

 

 

 

Local

  • Options response should match service descriptions

 

 

 

 

Local

  • Request log should be made to APILogger for Options call

 

 

 

Local

  • Transact call should return mock response on inspect mode

 

 

 

Local

  • Transact call should fail for Invalid BillerID/BillerItemId

 



 

 

Local

  • Transact call with a valid request should return a valid response on live mode


 

Local

  • Transact call response should match service description's

 

 

 

 

Local

  • Transact call with invalid order reference should fail in Live mode

 

 

 

 

Local

  • Request to transact call in live mode should be sent to APILogger

 

 

 

Local

  • Query for an existing transaction should return a valid response

 

 

 

 

Local

  • Request to query call in live mode should be sent to APILogger

 

 

 

 

 

 

Appendix

#1 Response was

{ "status": "Successful", "message": "Transaction Processed Successfully", "data": null }

 

#2 Request and Response

{ "request_ref":"{{request-ref}}", "request_type":"lookup_nin_min", "auth": { "auth_provider": "Payant" }, "transaction": { "transaction_ref": "63683785716419" } } { "status": "Failed", "message": "Missing parameter [nin number]", "data": { "auth_token": null, "provider_auth_token": null, "provider_response_code": null, "provider": "payant", "errors": [ { "code": "01", "message": "Missing parameter [nin number]" } ], "error": { "code": "01", "message": "Missing parameter [nin number]" }, "provider_response": { "reference": "PAYANT-i9ypmm8p5ewzkk4z7y14p" }, "client_info": { "name": null, "id": null, "bank_cbn_code": null, "bank_name": null, "console_url": null, "js_background_image": null, "css_url": null, "logo_url": null, "footer_text": null, "show_options_icon": false, "paginate": false, "paginate_count": 0, "options": null, "merchant": null, "colors": null, "meta": null } } }

#3

{ "status": "Failed", "message": "Cannot read property 'customer' of undefined", "data": { "provider_response_code": null, "provider": "payant", "errors": [ { "code": "01", "message": "Cannot read property 'customer' of undefined" } ], "error": { "code": "01", "message": "Cannot read property 'customer' of undefined" }, "provider_response": { "reference": "PAYANT-s181miaw27a46ls4dvxmqc" } } }