#Shahana Joy
1 messages · Page 1 of 1 (latest)
Hello
Not sure what you are referring to
yes, by passing client secret we will get stripe theme
instead of passing client secret how we can implemnt the same in angular14
If you have a complete example , it would be great
Sounds like you want to look at our deferred-intent flow: https://stripe.com/docs/payments/accept-a-payment-deferred
You would collect that yourself in your own form or you would use Address Element: https://stripe.com/docs/elements/address-element
instead of address element, I only required Name on Card
Then you would collect that yourself in your own form
And pass it with the billing_details for the PaymentMethod
in myform how can I add that field
Sorry you are the developer here, I can't build your integration for you. I can only help with Stripe-specific questions you have.
so Name on Card is not a paymentElement right?
I have to implement stripe like this
It contains Name on Card
How I can add that into paymentElement option to mount
ok, May I get reference for submit stripe payment after entering card details in angular12
What do you mean by that?
means submit paynow
Follow the accept a payment guide: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
It shows how to submit payment
const {error} = await stripe.confirmPayment({
//Elements instance that was used to create the Payment Element
elements,
confirmParams: {
return_url: 'https://example.com/order/123/complete',
},
})
inthis code elemets mentioned, Can you plz clarify that
It's the elements object you instantiate
okie, when I m trying to add name on card text field to form, stripe payment element is not loading
sorry, error gone now
Hi, RROR Error: Uncaught (in promise): IntegrationError: You must pass in a clientSecret when calling stripe.confirmPayment().
IntegrationError: You must pass in a clientSecret when calling stripe.confirmPayment().
when I m calling this.stripe.confirmPayment getting this issue
and this. is undefind
May I get any solution for the same
Did you follow the guide I linked?
You need to pass the paymetn intent client secret
Yes, I do
1st I created paymentelement , then await stripe.confirmPayment({})
in b/w where is the step for paymentIntent?
okie, when I click
paynow --> createIntent (server side API)
response with clientsecrent --> confirmPayment()
Is it able to create paymentIntent from clientside?
No
okie, clear Thank you so much