Skip to main content
This guide applies only to businesses in Chile and payments in CLP. When a customer already saved a card with Fintoc, they can pay with it in Checkout without typing the card details again. Your customer confirms the payment and authenticates it with 3-D Secure (3DS), and Fintoc charges the card. You can offer a saved card in two ways:
  1. Your customer chooses the card: create a Checkout Session with the customer and card in payment_method_types. Checkout lists the customerโ€™s saved cards.
  2. You preselect the card: create a Checkout Session with the customer and the saved cardโ€™s id in payment_method. Checkout opens directly on the confirmation of that card.
In both cases, your customer confirms the payment in Checkout. Creating the Checkout Session never charges the card.

Before you begin

  • Your organization is based in Chile.
  • Your customer has a Customer with a saved card payment method. To save one, create a Checkout Session with flow set to setup, as described in Set up a payment method for future charges.
  • In test mode, saved card payments are available to every organization in Chile. In live mode, Fintoc must enable card payments and saved card payments for your organization. Contact Fintoc to request access.
Checkout offers a saved card only when the card is active and the session allows its kind (credit or debit). If you restrict card kinds with payment_method_options.card.kinds, Checkout hides saved cards of any kind you excluded.

Option 1: Let your customer choose a saved card

Create a Checkout Session with flow set to payment, the customer ID, and card in payment_method_types. Server
Node
Fintoc responds with the created CheckoutSession, including its redirect_url:
Redirect your customer to the redirect_url. Checkout shows one button per saved card, labeled with the card brand and its last four digits (for example, Visa โ€ขโ€ขโ€ขโ€ข 1234), above the option to enter a new card. Fintoc creates the payment only when your customer picks a card. Your customer can still enter a different card instead. You can add other types to payment_method_types, such as bank_transfer. Checkout then shows the saved cards together with the other payment methods.

Option 2: Preselect a saved card

If your customer already picked the card on your website, send its id in payment_method. Send payment_method_types set to exactly ["card"], and the customer that owns the card. Server
Node
Fintoc responds with the created CheckoutSession, including its redirect_url:
Redirect your customer to the redirect_url. Checkout skips the list of payment methods and shows the confirmation of the preselected card. If the request fails, Fintoc returns one of these errors:

Your customer confirms and authenticates the payment

After your customer picks a card, or opens a session with a preselected card, Checkout shows the card and the amount:
  1. Installments. If the card is a credit card issued in Chile, your customer can choose the number of installments. Checkout offers only the options the card supports among 1 to 12, 24, 36, and 48 installments. Debit and prepaid cards pay in a single installment.
  2. Confirmation. Your customer confirms the payment.
  3. 3DS authentication. Every saved card payment goes through 3DS. The card issuer either approves it without asking your customer for anything (frictionless) or asks your customer to complete a challenge, such as a code sent by the bank.
Fintoc then charges the card and redirects your customer to your success_url.

Handle the payment result

Always use webhooks to determine the final outcome. Your customer may close the tab, lose connection, or never reach your success_url. Exception: you cannot retry a saved card payment inside the same Checkout Session. The session also cannot switch to another payment method, such as a bank transfer. If the payment fails, create a new Checkout Session for the next attempt.
Your customer starts a one-click payment in Checkout. To charge a saved card without your customer present, use an invoice or a Payment Intent. This applies to subscriptions and usage-based bills; see Set up a payment method for future charges.

Test your integration

Use your test mode API Secret Key to try the full flow without moving any money:
  1. Save a test card for a Customer with a setup Checkout Session, using the test cards in Set up a payment method for future charges.
  2. Create a payment Checkout Session for the same Customer, without payment_method, and check that Checkout lists the saved card.
  3. Create another session with the saved card in payment_method, and check that Checkout opens on the card confirmation.
  4. Complete the payment and check that you receive checkout_session.finished and payment_intent.succeeded.