#jarrett-paymentelement-wechatpay

1 messages · Page 1 of 1 (latest)

frozen crystalBOT
cunning hull
#

jarrett-paymentelement-alipay

#

@gleaming basin do you have an example PaymentIntent id I can look at for each of those?

gleaming basin
#

yes let me create one for each

#

Alipay: pi_3MlFRPF6KG2nMs1l0mWjZNGq

cunning hull
#

This isn't a PaymentIntent you created though, it's related to an Invoice

gleaming basin
#

Sure but I can't disable Alipay because it says it's enabled in Production

#

Wechat: pi_3MlFS4F6KG2nMs1l1f4T46PZ

cunning hull
#

Can you disable it in production then? Sorry I don't know much about the Dashboard settings myself

gleaming basin
cunning hull
#

sure so have you tried in production? Like the error is quite clear

#

the second screenshot is from the wrong place?

gleaming basin
#

yeah the production screenshot is second

#

i know that PI is created by invoices, but I'm using the payment element with deferred payment intents

#

Alipay isn't even enabled for invoices on the account

cunning hull
#

What does that mean

I'm using the payment element with deferred payment intents
since you're not doing that and are using Invoicing?

gleaming basin
#

since we use invoices, I just let the invoice create the PI and this works great

#

but the Payment Element things we have Alipay enabled because we do

#

and I can't disable it

#

because it tells me it's enabled in Production mode, but in production I can't diable it because it says it's Ineligible lol

cunning hull
#

Yeah sorry you'll have to talk to our support team so that they can look into your account settings and figure out the discrepancy in this case: https://support.stripe.com/contact

gleaming basin
#

i think it's a dashboard bug honestly.

#

what about the wechat payment?

cunning hull
#

For the WeChat part, can you please try without any Invoice involved at all? I don't really understand the ask yet and having Invoices in the middle make this even more confusing

gleaming basin
#

how can I try without the invoice lol? i'm paying an invoice with wechat

cunning hull
#

Simply create a PaymentIntent directly with WeChat, confirm it with PaymentElement and explain what the problem is

#

Also can you clarify which "callback" you are talking about?

gleaming basin
#

sorry, im back.

#

let me show

#

can i send you a video directly?

cunning hull
#

Not really, right now I just want to grasp what the problem is. PaymentElement has no "callback", it redirects after completion

#

jarrett-paymentelement-wechatpay

gleaming basin
#

the return url

#

that is what I meant by callback

cunning hull
#

okay so you are saying that you complete the Wechat Pay payment, but for some reason PaymentElement never redirects?

gleaming basin
#

correct

cunning hull
#

Did you do the dance where you "simulate" the QR code scanning?

gleaming basin
#

yep, it works for other ones. just not wechat

#

i go through the simulate flow

#

click authorize in stripe

#

then it just never does anything else

cunning hull
#

Do you have a concrete PaymentIntent I can look at?

#

one that is not Invoice related

gleaming basin
#

let me try and create that

#

not really sure why a PI from invoice changes it TBH.

#

but i'll try and create one without an Invoice at all

cunning hull
#

Thanks! I don't know either, but I did try wechat pay while I was waiting for your response and it does work fine for me. It takes a while to handle the redirect, like 10+s but it does work/happen.
So having your PI for me to compare will help

#

yeah I just tried again and once I do the "authorize payment" thing in the test mode page, I see my main integration redirect as expected

gleaming basin
#

it works fine with a PI I create

#

the invoice PI is the problem

cunning hull
#

ah see, it mattered

#

Let me see if I can get my Invoice to show Wechat Pay in some way, give me a few minutes

gleaming basin
#

i meant like what does it matter it should work lol

#

but i see your point

#

in making me confirm that specifically is broken

cunning hull
#

okay I can repro too, give me a few minutes to see what could be causing this

gleaming basin
#

i think i have an idea

#

i re-ran my flow with the failed payment intent and then it did redirect

frozen crystalBOT
gleaming basin
#

this wierd, i can't repro that situation now :/

cunning hull
#

yeah it happens each time for me with an Invoice so I think it's some weird edge-case/bug

#

@wise briar is taking over for me but we're investigating. Will likely need you to write in to report the bug too but they'll update you once we find out more

#

yeah okay we think it's a bug though we can't figure out an obvious root cause. You'll have to report this to our support team too unfortunately so that they can help you investigate: https://support.stripe.com/contact

gleaming basin
#

i think we're just going to disable wechat pay since we don't really care. also it seems we can't use setup_future_usage with it anyway. is there a way to pass setup_future_usage at invoice creation or do i have to update the PI manually?

#

just realized our payment methods don't get saved

wise briar
#

👋 stepping in

#

Yeah with Invoices you would pass setup_future_usage on confirmPayment

gleaming basin
#

that doesn't work

#

it says you can't pass that on confirm payment

wise briar
#

For supported payment method types?

#

You can't use that with WeChat

gleaming basin
wise briar
#

It is a bit hacky for Invoices since you can't actually set it on Invoice creation

gleaming basin
#

confirmPayment doesn't allow me to

wise briar
#

Huh weird, I thought you could still do this with Invoices.

#

And just to clarify, you are using one-off Invoices not Subscriptions, correct?

gleaming basin
#

yep

wise briar
#

Got it, yeah then you would want to update the PI server-side prior to confirm. I'm pretty sure we already have an open feature-request to get setup_future_usage added to the Invoices API so I'll tack on some feedback to that ticket.