#shr7024
1 messages · Page 1 of 1 (latest)
Hello shr7024, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• shr7024, 1 day ago, 11 messages
I'm using stripe javascript to show the form for adding card details but it comes as a single row
Is it possible to make it into proper form like the ones in example
The form comes as a single line
The recommended way to accept payments currently is to use Payment Element: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
I'm using php
It doesn't matter, it's only differs on the frontend.
This form is for users to update their card details
And set that card as default for further payments
You can use Payment Element for that too: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
Ok
The code that I had implemented is the same in doc
Only thing is that it shows the form as row
It means you used the old Card Element instead of Payment Element
The doc I shared is using the Payment Element
I see elements.create('card', ...)
You need elements.create('payment', ...)
Ok