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.
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
Recommended flow
Hosted checkout
To accept cards at the hosted checkout, sendcredit_card in paymentMethods:
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.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 isPAID/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:- Enable cards for the project, when needed.
- Use the hosted checkout or the Checkout SDK to collect the card.
- Configure Bob’s webhook to receive the payment confirmation.
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.