#Shahana Joy

1 messages · Page 1 of 1 (latest)

sinful wingBOT
granite stream
#

Hi there

#

Can you clarify what you mean by "payment card-theme"

serene pivot
#

Hello

granite stream
#

Not sure what you are referring to

serene pivot
#

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

granite stream
serene pivot
#

yes exactly

#

one more thing, How we can mount Name on Card in this

granite stream
serene pivot
#

instead of address element, I only required Name on Card

granite stream
#

Then you would collect that yourself in your own form

#

And pass it with the billing_details for the PaymentMethod

serene pivot
#

in myform how can I add that field

granite stream
#

Sorry you are the developer here, I can't build your integration for you. I can only help with Stripe-specific questions you have.

sinful wingBOT
serene pivot
#

so Name on Card is not a paymentElement right?

fossil charm
#

Hi taking over for bismarck here

#

What do you mean by that?

serene pivot
#

I have to implement stripe like this

#

It contains Name on Card

#

How I can add that into paymentElement option to mount

fossil charm
#

My colleague answered that already ^

serene pivot
#

ok, May I get reference for submit stripe payment after entering card details in angular12

fossil charm
#

What do you mean by that?

serene pivot
#

means submit paynow

fossil charm
#

It shows how to submit payment

serene pivot
#

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

fossil charm
#

It's the elements object you instantiate

serene pivot
#

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

fossil charm
#

Did you follow the guide I linked?

#

You need to pass the paymetn intent client secret

serene pivot
#

Yes, I do

#

1st I created paymentelement , then await stripe.confirmPayment({})

#

in b/w where is the step for paymentIntent?

serene pivot
#

okie, when I click
paynow --> createIntent (server side API)
response with clientsecrent --> confirmPayment()

fossil charm
#

How you handle it is up to you

#

I just recommend reading that guide

serene pivot
#

Is it able to create paymentIntent from clientside?

fossil charm
#

No

serene pivot
#

okie, clear Thank you so much