#Pain - Card Collection
1 messages · Page 1 of 1 (latest)
Hi 👋
It depends on what you want to do. How much of the front-end do you want to build yourself?
I could use Stripe's elements if possible?
Do you want to just save the card details or charge the customer at the same time?
I just wish to save the customer's card, as in a option for them to add a payment method.
(I will charge it later/when they wish to)
I'm trying to make an easier checkout by saving a card that they wish.
Okay then you want to review this doc.
https://stripe.com/docs/payments/save-and-reuse
There are multiple integration options to try the different tabs just under the title
e.g. Prebuilt Checkout, Custom payments flow, etc.
Okay I will give it a go and see how it works out, appreciate it.
Is there a way to change the appearance afterwards?
For example I have light/dark mode and I want to have two different styles for those?
If you are using Stripe Elements you can leverage our appearance API to change the way it looks
https://stripe.com/docs/elements/appearance-api
Yeah I'm looking at that currently, would I have to set up a rule
for my dark/light mode?
I'm not sure if a rule would do the trick. You could test it but I would put some conditional logic that passed a different theme string.
Can I change the theme once initialized?
I don't think so but I would test to be sure