#Sr45
1 messages · Page 1 of 1 (latest)
hello! have you gone through this guide? https://stripe.com/docs/payments/save-and-reuse?platform=react-native&ui=payment-sheet
their it more about payment intent but i need how to create token or create paymentMethod
that guide i provided uses the SetupIntent, and it creates a PaymentMethod
ok can i customize the card Field or card Form
what exactly do you want to customize?
i need card field flex in vertical order
can i do payment method creation using card Field element data
sure, you can customize the card field or card form, and yes, you can create a PaymentMethod using card field element
share sample
i don't have a sample on hand, that's something you're going to need to build yourself
i dont want to use setupIntent can i create createToken with cardElement
share any solution on this
in my app flow is
1.collect card details from card element and tokenize the card data then post the token to my backend
2.their i will create new customer with the token posted and then new subscription
Tokens is deprecated. Why would you want to use createToken?
please give any idea on this
any suggesstions
Hi @lyric wyvern I'm taking over
https://stripe.dev/stripe-react-native/api-reference/index.html#createToken this is the API you can call to create a token at frontend, then you can pass the token to your backend and create a source (https://stripe.com/docs/api/sources/create?lang=node#create_source-token), and use this source as the default_source(https://stripe.com/docs/api/subscriptions/create?lang=node#create_subscription-default_source) when creating a subscription.
one more thing in createToken params not allowed to pass card details then how set card number and cvc
You don't need to pass the card details in, Stripe SDK will automatically get them from CardField or CardForm
ok
thanks jack also can you say options to customize the card field elements in vertical order make width resize
I don't see an option to re-arrange card field elements
No I'm afraid