#raul-webhook
1 messages ยท Page 1 of 1 (latest)
Hi there, I was wondering what you are referring to regarding return parameters? As in the session id?
hello
this paramaters
i would like the returb_url clean
since i already confirm the payment via webhook
Are you using the Checkout Session?
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'];?>',
},
});
If you would were to remove the php embedded item, is it trying to perform a query in your database?
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*
Should be only https://dev.hyliacom.es/cron/prueba
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
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
so... have ๐
i didnt send addtional parameters or something to trigger that
as far as i know
Let me try this out and come back to you ๐
May I ask which Stripe SDK you are using please?
im using the php library
last one
and js
<script src="https://js.stripe.com/v3/"></script>
stripe-php-7.100.0
Please let me check
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.
To explain it with more details, this PaymentIntent id returned would allow you to retrieve the PaymentIntent object where it contains the status to show you whether it was successful, failed, require_action, etc https://stripe.com/docs/api/payment_intents/object?lang=java#payment_intent_object-status
but i have that info in the sesion of the user
is there any way to avoit send that data?
avoid*
Out of curiosity when you mention session, is this the Checkout session you are referring to?
nono, our system session
i just wanted to make same integration as the rest of the TPV
There is currently no way to disable the parameters sorry
and congratulations for the amazing job your are all doing with stripe
is a pleasure work with your tools and documentation
Thank you ๐ I am quite new, learning and absorbing a lot everyday
keep the good work then! congratulations for the new job ๐
Thank you for using Stripe, I am very happy to hear you like the tools and docs ๐
of course! have a nice day, and thank you again
Same to you ๐