#arielbo

1 messages · Page 1 of 1 (latest)

faint nexusBOT
plain wind
#

hello

#

please orakaro, could you guide me, whats wrong in my code,

#

thanks a lot in advance

plain wind
#

yes I see this, in this case whats bad in my code sorry

#

and thank you for your help

#

maybe payment_method_data: { billing_details: {
name: document.getElementById("s_name").value,
phone: document.getElementById("s_phone").value
} } ?

halcyon tangle
#

yes' let's try that

#

any you need to see the error log or console. It would tell you better than me what's wrong 🙂

plain wind
#

works good

#

thanks a lot you always are very helpful !!

#

another ask is possibe add metadata confirmPayment ?

halcyon tangle
#

Not possible afaik. Please use Update PaymentIntent (server-side) to add meta-data before confirming

plain wind
#

how can I do this ?

halcyon tangle
plain wind
#

I see, and another ask , please I need to disable receipt_email in paymentintent is possible? I dont would to send stripe receipt to my customers either my own receipt

halcyon tangle
#

If you don't specify receipt_email I believe we won't send an email

plain wind
#

Yes I dont specify its enough? or maybe I need to put false in some place

#

Orakaro

#

async function handleSubmit(e) {
e.preventDefault();
setLoading(true);

const paymentIntent = await stripe.update(
    clientSecret, { metadata: { order_id: '674335' } }
);

const { error } = await stripe.confirmPayment({
    elements,
    confirmParams: {
#

dont work update 😦

halcyon tangle
#

Hey that's client-side. The Update PaymentIntent needs to be called server-side

#

You would need to make an ajax call from your client-side to server-side, then in server-side make the call of Update PaymentIntent API to add metadata

plain wind
#

const paymentIntent = await stripe.update(
clientSecret, { metadata: { order_id: '674335' } }
);

plain wind
#

api call

#

in my server side

#

can I send parameters in confirmPayment({
elements,
confirmParams: {
// Make sure to change this to your payment completion page
return_url: "https://www.website.com/" + s_event_id + '?email' + s_email+'&name'+s_name,

#

?

halcyon tangle
#

Um you can try I guess

plain wind
#

the best practice is create my new user in webhook right ?

#

or in my side

halcyon tangle
#

Yes in webhook

plain wind
#

thank you

#

how many guest user can I have? guest user can be in the future customers?

halcyon tangle
#

I think there is no limit

plain wind
#

guest user can be in the future customers? how would be customer ?

halcyon tangle
#

I don't think there is a limit

plain wind
#

When I create webook I see that I have versions api

#

which impact have this in all my code ? I have now 2020 -08-28 but I see that now exist 2022-11-15?

halcyon tangle
#

Generally we recommend to use the latest version

#

Keep in mind that after you go live, upgrading API version could introduce breaking changes, and you may want to test before upgrading version

#

but if you are only testing, let's jump to the latest API version

plain wind
#

but I need to update too my php skd stripe ?

#

or this versión API mean and works just in you web stripe dashboard?