Skip to main content
Coming soon. Credit card payments are not available on Bob yet. This page describes how it will work once it launches — for now, use PIX.
Bob Payments will also process credit cards. For most integrations, you’ll use Bob’s hosted checkout or embeddable SDK. They load the secure fields, tokenize the card, run 3DS, and handle processing internally.
To accept cards at checkout, the card must be tokenized in the browser by Bob’s checkout package (@bobpayments/checkout-sdk). Your application and the API only receive a secure token — PAN, CVV, and expiration date never pass through the Bob API. See the Checkout SDK and the Reference.

Choose the integration level

The card number, CVV, and expiration date never pass through the Bob API. The buyer doesn’t see any internal processing details.
Never send raw card data to the Bob API. Payloads containing PAN, CVV, or expiration date must continue to be rejected.

Hosted checkout

To accept cards at the hosted checkout, send credit_card in paymentMethods:
The session accepts credit_card when the method is enabled on the project. Otherwise, the API reports that the method is not available.

Embeddable SDK

Use the embeddable SDK when you want to keep the buyer on your site but don’t want to implement the secure fields, tokenization, 3DS, or fallback.
Or mount the checkout on a page without React:
The SDK handles the secure fields, creates a secure payment method identifier, sends the token to the Bob API, and runs 3DS when needed. The merchant doesn’t need to import any additional libraries.

Checkout SDK

See how to embed Bob’s checkout on your site.

Advanced direct API

Use the direct API with cards only when you already have your own tokenization and 3DS authentication implementation. In this mode, the frontend creates a secure payment method identifier (pm_...) and sends Bob only that token, along with paymentMethod: "credit_card". The pm_... should exist only in memory during the attempt. Don’t store this value in logs, analytics, the URL, or the checkout database.

Processing and fallback

For cards, Bob manages retries and fallback internally. The buyer receives a single final response and doesn’t see any processing details. When the payment requires action from the buyer, such as 3DS authentication, the checkout must show the secure authentication, open the returned URL, and query the status on return. Show success only when the session or transaction is PAID/paid.

Public states

Use webhooks and/or status queries to confirm the financial outcome. Don’t treat an HTTP 201 alone as payment confirmation.

What you configure

On your side, configuration is done through the Dashboard:
  1. Enable cards for the project, when needed.
  2. Use the hosted checkout or the Checkout SDK to collect the card.
  3. Configure Bob’s webhook to receive the payment confirmation.
Bob manages card processing, reconciliation, and the internal details of the operation. You don’t need to send payment provider credentials to your application.
Never send secret credentials or raw card data to the browser, to the Bob API, or to repositories.

Next steps

Checkout SDK

Tokenize the card in the browser and embed the checkout on your site.

Card transaction

Structure and attributes of a card transaction in the API.