#raul-webhook

1 messages ยท Page 1 of 1 (latest)

topaz thicket
#

Hi there, I was wondering what you are referring to regarding return parameters? As in the session id?

snow hawk
#

hello

#

this paramaters

#

i would like the returb_url clean

#

since i already confirm the payment via webhook

topaz thicket
#

Are you using the Checkout Session?

snow hawk
#

paymentintent

#

with confirmPayment

#

const {error} = await stripe.confirmPayment({
//Elements instance that was used to create the Payment Element
elements,
confirmParams: {
return_url: 'https://dev.hyliacom.es/cron/prueba?ok=<?php echo $this->pagobdd['stripep_id'];?>',
},
});

topaz thicket
#

If you would were to remove the php embedded item, is it trying to perform a query in your database?

snow hawk
#

i dont mind to send like this:
const {error} = await stripe.confirmPayment({
//Elements instance that was used to create the Payment Element
elements,
confirmParams: {
return_url: 'https://dev.hyliacom.es/cron/prueba',
},
});

#

thas was just for testing

#

without that

#

i dont want the redirect url with the attaced GET parameters

#

attached*

#

we have several TPV integrated and in the rest we can disable the user side return parameters, but i don't find the option in stripe

topaz thicket
#

This is interesting, my understanding is the return_url should return exactly what you have parsed, there should not be query parameters appended to the url

snow hawk
#

so... have ๐Ÿ˜…

#

i didnt send addtional parameters or something to trigger that

#

as far as i know

topaz thicket
#

Let me try this out and come back to you ๐Ÿ™‚

snow hawk
#

if u want i set up a test payment for you

#

here you can try:

topaz thicket
#

May I ask which Stripe SDK you are using please?

snow hawk
#

im using the php library

#

last one

#

and js

#

stripe-php-7.100.0

topaz thicket
#

Please let me check

topaz thicket
#

Hello Raul, my apologies, the PaymentIntent and PaymentIntent client secret parameters are appended to the return url by default https://stripe.com/docs/payments/3d-secure#when-to-use-3d-secure

The idea for this is to provide information for you to check the status of the 3DS performed by the customer and act accordingly within the code.

snow hawk
#

but i have that info in the sesion of the user

#

is there any way to avoit send that data?

#

avoid*

topaz thicket
#

Out of curiosity when you mention session, is this the Checkout session you are referring to?

snow hawk
#

nono, our system session

#

i just wanted to make same integration as the rest of the TPV

topaz thicket
#

There is currently no way to disable the parameters sorry

snow hawk
#

ok, no problem, no big issue,

#

thanks for your time

topaz thicket
#

๐Ÿ™‡

#

Thank you very much for your enquiry

snow hawk
#

and congratulations for the amazing job your are all doing with stripe

#

is a pleasure work with your tools and documentation

topaz thicket
#

Thank you ๐Ÿ˜„ I am quite new, learning and absorbing a lot everyday

snow hawk
#

keep the good work then! congratulations for the new job ๐Ÿ™‚

topaz thicket
#

Thank you for using Stripe, I am very happy to hear you like the tools and docs ๐Ÿ™‡

snow hawk
#

of course! have a nice day, and thank you again

topaz thicket
#

Same to you ๐Ÿ™‚