Stripe API Custom accounts

Hey!

I am building a custom onboarding workflow for TCRC marketplace and need some help regarding the API for the “create.card” API from Stripe. I cant get the API to run since I am trying to send card details without a tokenization. You could do it that way but then I need to be CPI compliant.

So my question is, have anybody done this before and managed to run a “create.card” API in bubble with tokenization and is bubble CPI compliant?

Kr
// Hedlund

Yes.

Just follow the Stripe api documentation.

And remember without tokenization the card is not validated.

Hello!

I still wonder how to tokenize a card using the API connector before initialize is pressed?

Kr
// Hedlund

using stripe.js is how you tokenize a card…you can not tokenize a card without using stripe.js

Hey!

Alright, do you have an example of someone that has sat up this API in bubble.io that I can analyse to build myself a deeper understanding?

Kr
// Hedlund

May be you need to check for below endpoints (my wild guess)

1 create payment method
https://api.stripe.com/v1/payment_methods

2 attach payment method to the customer
https://api.stripe.com/v1/payment_methods/[payment method_id]/attach

pass customer id in parameter

3 update customer and passing payment method id
https://api.stripe.com/v1/customers/[customer_id]

that’s how you tokenize card for the customer