#cnguyen85
1 messages · Page 1 of 1 (latest)
Hello
Not sure what you mean by that. The deferred intent flow uses Payment Element which is a Stripe Element, yes.
I don't want to use the PaymentElement. That is a complete component. But use the CvcElement, CardElement, etc...
Oh then I don't really understand what you mean by "deferred payment" here.
Let's back up
What are you trying to do?
If you can describe your use-case then I can likely recommend the best path.
I want to display a payment form (with the CvcElement, etc) and create the Setup intent only after the form validation
Yep that's fine then. You can use Card Element or the split elements in this case. The key with this flow is that you use payment_method_types: ['card'] explicitly for your SetupIntent
With PaymentElement, can I have only the card option ? (So I don't want to have the tab but just the payment form)
OK but I don't find the documentation to handle it with CardElement. I see only with PaymentElement (https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=setup)
Yeah Card Element is technically our legacy integration so we don't have documentation readily available. We really recommend using Payment Element (which yes, you can use with just type Card by turning off your other Payment Method Types in your Dashboard here: https://dashboard.stripe.com/test/settings/payment_methods). You can see an example of a quickstart for Card Element here though: https://stripe.com/docs/payments/card-element