Org Web Adapter

pages/mmpy_488_check_iban_on_submission.org

ID
96238eab-dc71-4fcf-95f5-bcf8f034ee18

MMPY-488 Check IBAN on submission

- source :: https://multimediallc.atlassian.net/browse/MMPY-488

- tags :: Falcon Nest Project Story Falcon Nest Project

- epic :: MMPY-276 API Validations for all Payout Methods to add accounts

- sprint :: MM Sprint 28

- status :: Status - Complete

DONE Add flow to check IBAN.com for actual account numbers

mmpy276mmpy488mmpy276multimediallcworkfeaturevalidationsaccountspayeefalconnestfalcon
ID
0ef8f2a2-6cc2-4e38-6a98-6ba553a44b15

DONE Add tests for the IBAN lookup endpoint

mmpy276mmpy488multimediallcworktestsfeaturevalidationsaccountspayeefalconnestfalcon
ID
65ac88d6-9e18-7906-3a93-e5236b886e95

DONE Wire up checking IBAN with BIC to the account save flow

mmpy276mmpy488multimediallcworktestsfeaturevalidationsaccountspayeefalconnestfalcon
ID
4cfe03e5-16c5-e13f-5e9a-f2618dc51396

DONE Address PR change requests

mmpy276mmpy488multimediallcworktestsfeaturevalidationsaccountspayeefalconnestfalcon
ID
c7d657bb-57f5-bf7d-c969-51b875cee49c

Background

GIVEN

An international account number is entered in the UI

WHEN

The form is submitted

THEN

Check iban.com to see if the IBAN is valid. See attached documentation.

See test ibans: https://www.iban.com/testibans

Ensure that the BIC returned matches the BIC provided

Do not include the last 3 chars of the BIC in this comparison. Often it is XXX, which indicates a local branch wasn’t provided.

If they do not match, display the error:

“IBAN provided does not match SWIFT/BIC provided. Please check your information and try again.”

Ensure that the IBAN is considered valid

Any 200-level errors (see documentation) should return an error:

“IBAN did not validate. Please check your information and try again.”

Chaturbate reference:

https://github.com/multimediallc/chaturbate/blob/master/gattlib/django_apps/affiliateprogram/views.py#L1117

The current interface asks for the user to input their country, then the bic, then the iban. Then it checks that the country matches the iban country based on the validation, and then checks the bic. I can’t find value in this flow and am deviating from it.