#jarrett-paymentelement-wechatpay
1 messages · Page 1 of 1 (latest)
jarrett-paymentelement-alipay
@gleaming basin do you have an example PaymentIntent id I can look at for each of those?
This isn't a PaymentIntent you created though, it's related to an Invoice
Invoices have their own settings for which payment method to offer, see: https://dashboard.stripe.com/settings/billing/invoice
Sure but I can't disable Alipay because it says it's enabled in Production
Wechat: pi_3MlFS4F6KG2nMs1l1f4T46PZ
Can you disable it in production then? Sorry I don't know much about the Dashboard settings myself
sure so have you tried in production? Like the error is quite clear
the second screenshot is from the wrong place?
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
What does that mean
I'm using the payment element with deferred payment intents
since you're not doing that and are using Invoicing?
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
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
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
how can I try without the invoice lol? i'm paying an invoice with wechat
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?
Not really, right now I just want to grasp what the problem is. PaymentElement has no "callback", it redirects after completion
jarrett-paymentelement-wechatpay
okay so you are saying that you complete the Wechat Pay payment, but for some reason PaymentElement never redirects?
correct
Did you do the dance where you "simulate" the QR code scanning?
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
Do you have a concrete PaymentIntent I can look at?
one that is not Invoice related
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
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
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
i meant like what does it matter it should work lol
but i see your point
in making me confirm that specifically is broken
okay I can repro too, give me a few minutes to see what could be causing this
i think i have an idea
i re-ran my flow with the failed payment intent and then it did redirect
this wierd, i can't repro that situation now :/
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
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
👋 stepping in
Yeah with Invoices you would pass setup_future_usage on confirmPayment
It is a bit hacky for Invoices since you can't actually set it on Invoice creation
confirmPayment doesn't allow me to
Huh weird, I thought you could still do this with Invoices.
And just to clarify, you are using one-off Invoices not Subscriptions, correct?
yep
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.