Payment Methods are created in the Payment Gateway so that they can be used to take payment for an order. The process of creating a payment method is outlined below.
As part of the checkout flow on a Client website, a Customer will be prompted to enter their card details using 3DS. This process ensures a customer's card details are sent directly to the Payment Provider without the client ever having to handle them, the provider exchanges these details for a provider token. The provider token can then be sent to the Payment Gateway and used to create a payment method.
sequenceDiagram
Client->>+Customer: Prompt to enter card details
Customer->>+Payment Provider: Card details sent to provider (3DS)
Payment Provider->>+Client: Provider Token
Client->>+Bento Payment Gateway: Provider Token
Bento Payment Gateway->>+Client: Payment Method ID
PCI Info
For more details on why clients should not handle customer card details see PCI Compliance.