#li_api
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/1458047588174397511
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Looks like you're working with a team member via email. Did you see their most recent reply?
no,I would like to inquire: Does Stripe support subscription updates via Alipay, or is it not supported by itself?
Theoretically, yes updates should be supported but clearly there are issues with this integration path. As this is 'private' functionality (that your account has been given access to), we cannot help you directly here on Discord. Your best option for help is to work with my colleague via email as you have been
Hello, is there a demo for using Alipay to upgrade your subscription?
AliPay with Subscription is still private feature
So there is no demo avaialble publicaly as far as I know.
Otherwise, I recommend continue following with my colleague via email and work on the issue you are facing as it required further investigation.
SubscriptionUpdateParams params =
SubscriptionUpdateParams.builder()
.setProrationBehavior(SubscriptionUpdateParams.ProrationBehavior.ALWAYS_INVOICE)
.setBillingCycleAnchor(SubscriptionUpdateParams.BillingCycleAnchor.NOW)
.addItem(
SubscriptionUpdateParams.Item.builder()
.setId(itemId) // <- 原 subscription item ID
.setPrice(subPrices.getPriceId())
.build()
)
.setPaymentBehavior(
SubscriptionUpdateParams.PaymentBehavior.ALLOW_INCOMPLETE
)
.putMetadata("orderNo", orderNo)
.build();
Subscription updatedSubscription = Subscription.retrieve(subscriptionRecord.getStripeSubscriptionId()).update(params);
Invoice invoice = Invoice.retrieve(updatedSubscription.getLatestInvoice());
req_icTQImSXRdbBIS
You must provide a return_url when confirming a PaymentIntent with the payment method type alipay.
We've already answered you on this I think