[Field account_number] - Incorrectly saves bank details when account number is 7 characters long and country code is CN
Opened this issue · 0 comments
kunwardeep commented
Testing Endpoint - http://preview.airwallex.com:30001
request - POST
Account number range when country code is CN is 8 to 20 characters. But the test passes for 7 characters as well
JSON payload
{
payment_method: 'LOCAL',
bank_country_code: 'CN',
account_name: 'John Smith',
account_number: '0123456'
}
Result
+ expected - actual
{
- "success": "Bank details saved"
+ "error": "Length of account_number should be between 8 and 20 when bank_country_code is 'CN'"
}
To reproduce run test -
Save Bank Details with account_number field
And bank country code - CN
And invalid length