-
Notifications
You must be signed in to change notification settings - Fork 123
Cards
Cards are used for making purchases on merchant websites. They are connected to a bank account and can be created and deleted at any time.
Cards are created by clicking on the Create card button on the right hand side of the card listing page, or by selecting the Create new card option in the Cards menu on the navigation bar, and then selecting an account for the card to be attached to.
Cards can be deleted by clicking the Delete button on the card listing page. A prompt will appear to confirm or cancel the deletion.
Deletions are permanent and a deleted card is invalidated immediately.
Note: Card purchases require the CentralApi to be set up and running.
To make a purchase, a user must provide the card number, cardholder name, expiration date, and security code to the merchant website.
The first three digits of every card number correspond to a specific bank. They are used by the CentralApi to route the payment request to the correct BankSystem instance, which then, after verification, initiates a transfer to the destination account specified in the request.
This functionality is implemented in the included DemoShop project. After choosing to pay by card, the user is asked to fill in their card details.
A payment request is then generated using the card details and sent to the issuing bank through the CentralApi. After it is processed, the order is marked as completed on the My Orders page.