#pedro_checkout-pix

1 messages ยท Page 1 of 1 (latest)

upper wedgeBOT
#

๐Ÿ‘‹ 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.

crystal berry
#

๐Ÿ‘‹ Do you have an example Checkout Session id I can look at?

#

pedro_checkout-pix

silent lodge
#

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

crystal berry
#

sorry those are pictures

silent lodge
#

i can also share my route.ts where i catch the webhooks

crystal berry
#

for now all I need is the Checkout Session id in text

silent lodge
#

evt_1SG8RIQ3x4FhUeh5dCyvPcx5

crystal berry
#

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

silent lodge
#

ok

#

thanks will find it for the next

crystal berry
#

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.

silent lodge
#

where can i find the sessions?

crystal berry
#

With that said, that specific Event you mentioned was sent to your WebhookEndpoint successfully

upper wedgeBOT
silent lodge
#

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

grand light
#

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.

silent lodge
#

and they're working well, it's just that after the payment being succesful i want to redirect the user back to the platform

grand light
#

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.

silent lodge
#

I'll try to a pix payment with that set

grand light
#

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?

silent lodge
#

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

grand light
#

Can you share the Checkout ID?

silent lodge
#

look.. I jsut payed and it wont change at all

#

1s

silent lodge
grand light
#

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

silent lodge
#

evt_1SGP1JLujJJi4pc3Iax1N8Wq

grand light
#

That is an Event ID.

silent lodge
#

cs_live_a1xdBA09T3mRfWVyvnCsDALBzuHfAYocdUdO5E8iUyYY3H2jbOtwpapwyz

#

found it

grand light
#

Thank you

#

BTW testing in live mode is a violation of Stripe's Terms of Service. I do not recommend it.

silent lodge
#

ok wasnt aware o fit

#

it*

grand light
#

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.

silent lodge
#

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?

grand light
#

No. We (Stripe) don't redirect and, at that point, the user isn't on a page you control either.

silent lodge
#

yes.. that's bad.. hope they provide a better solution...

grand light
#

I can file a feature request that we implement a redirect for this payment method

silent lodge
#

my users get confused

grand light
#

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.

silent lodge
#

Thanks you!