#pedro_checkout-pix
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1425912792866881537
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
this webhook i have is working properly for card payments and also for google pay and apple pay but i'm having an issue for pix is the issue
``
the purchase itself is working for users but I can~t manage to redirect them to my page
sorry those are pictures
i can also share my route.ts where i catch the webhooks
for now all I need is the Checkout Session id in text
evt_1SG8RIQ3x4FhUeh5dCyvPcx5
Thanks. Just minor but this is an Event id (evt_123) which is different from a Checkout Session id (cs_test_123). I can figure it out but I'm teaching you the right things so that you can get help faster
Okay so it looks like you are a Connect platform and you are using the Direct Charges flow (https://stripe.com/docs/connect/direct-charges) where you create the Checkout Session directly on the connected account.
The Event would exist on the connected account, not your own account and it would be sent to your Connect WebhookEndpoint that listens to Events on connected accounts.
where can i find the sessions?
With that said, that specific Event you mentioned was sent to your WebhookEndpoint successfully
Ok, yes it was a apple pay payment, it~s working well
the thing is that I don't know the endpoint event i should set for pix payments
Hi ๐
My colleague has to go so I'm stepping in
the thing is that I don't know the endpoint event i should set for pix payments
Our webhook events aren't specific to a payment method type.
and they're working well, it's just that after the payment being succesful i want to redirect the user back to the platform
But, that being said, you could modify your Connect webhook endpoint to also listen for payment_intent.succeeded. That will give you more details about the specific payment method.
I'll try to a pix payment with that set
and they're working well, it's just that after the payment being succesful i want to redirect the user back to the platform
You should be able to redirect your customers by specifying the success_url. Looking at the creation request for this Checkout Session, it looks like you are doing that.
What part of that redirect is not happening as you expect?
let me reproduce, usually event after the stripe payment page said the pix payment was successfull it just stay there.. it won't redirect me to my platform
Can you share the Checkout ID?
where can i find this? sorry
You should have received the ID as part of the Checkout Session object in your API call to create the Checkout Session.
If you didn't log/store it in your application, you should be able to find it in the logs for the Connected Account you created this Checkout Session on
evt_1SGP1JLujJJi4pc3Iax1N8Wq
That is an Event ID.
Thank you
BTW testing in live mode is a violation of Stripe's Terms of Service. I do not recommend it.
Ah, we don't redirect back to the success URL For PIX payments. We document this here
It's an odd choice though.
But, for this Checkout Session, you created a Payment Intent pi_3SGP0bLujJJi4pc30DDcpWls and if you listen to the payment_intent.succeeded event, that will inform you of a successful PIX payment.
yes.. everything is working.. i do get the webhook with payment_intent.succeeded BUT i dont't get a redirect no matter what
so there's no way around it, right?
No. We (Stripe) don't redirect and, at that point, the user isn't on a page you control either.
yes.. that's bad.. hope they provide a better solution...
I can file a feature request that we implement a redirect for this payment method
my users get confused
I'd appreciate that!!
Okay I raised this internally. I don't know if/when it will get addressed but at least we have a record of the user confusion.
Thanks you!