kunwardeep/test-api

[Field aba] - Able to save bank details with payload having no aba field when bank country code is US

Opened this issue · 0 comments

Testing Endpoint - http://preview.airwallex.com:30001
request - POST
JSON payload

{ 
 payment_method: 'LOCAL',
 bank_country_code: 'US',
 account_name: 'John Smith',
 account_number: '012345678'
}

Result

+ expected - actual

  {
   -  "success": "Bank details saved"
   +  "error": "'aba' is required when bank country code is 'US'"
  }

To reproduce run test -

Save Bank Details with aba field
   And bank country code - US
     And missing aba