#exa-cardelement-confirm
1 messages · Page 1 of 1 (latest)
Hey there, what isn't working like you expect?
Can you describe or sahre an example of what happened that was different than you expected?
Yes. I want that my user doesn't save the card that used in element 'cardNumber', but when I use this lines above, my customer in stripe had a new payment method saved.
I doesn't want save setup intents but I want use one time for one payment.
that is possible ?
I'm struggling to understand what you're trying to achieve
Are you trying to collect a payment now, or set up a card for later without taking payment?
You discuss setup intents, but then say you want to take payment
If you want to collect payment, you need to use a payment intent. If you want to also save the card for later you can use setup_future_usage for that.
Sorry if I wrong told my intention. I will try to simple.
May I to use the element card number for get the informations for create payment intent without save the setup intent ?
that is clearer ?
Yes, you can take payment without a setup intent:
https://stripe.com/docs/payments/save-during-payment?platform=web#web-create-payment-intent
You can use the card element and confirmCardPayment here instead of Payment Element & confirmPayment
thanks synthrider. Just last point, have you a short example in JS ?
Of which part?
When you do a payment intent
Confirming it, you mean?
Our Stripe.js docs show example of this: https://stripe.com/docs/js/payment_intents/confirm_card_payment
stripe
.confirmCardPayment('{PAYMENT_INTENT_CLIENT_SECRET}', {
payment_method: {
card: cardElement,
billing_details: {
name: 'Jenny Rosen',
},
},
})
thanks you so much. I stop disturb you.
NP - good luck with the rest of the work!