#zlf_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/1313044119836168212
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
What do you mean by a "trial pull-up payment control" ?
A component on a mobile APP that users use to make payments
So basically you want to collect a payment method from your customer, and use it to create a subscription?
The API document says that the customer does not need to choose any payment method, but now we have a demand for the user's payment method, is there any way?
yes
Is there a solution
https://docs.stripe.com/payments/save-and-reuse?platform=android&mobile-ui=payment-element you can follow this guide to learn about how to collect a payment method by using a SetupIntent
The payment method is collected, you can pass it as the default_payment_method when creating a subscription.
No, use subscriptions API directly
Do you mean using Stripe Checkout to create a subscription with a trial period?
No, use subscriptions API directly
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
When you use a subscription mode checkout session, the checkout page collects a payment method from your customer. Since you already collected a payment method, you can use the subscriptions API directly to start a subscription
My understanding is that first, the checkout page is used to collect users' payment methods, and then the collected payment methods are directly called to the subscription creation interface through the default_mayment_method field
Are you referring to a setup mode checkout session?
It's here because this description fits my needs very well. We just want to obtain the user's payment method before creating a trial subscription
Sure, it's just that unlike checkout session, the mobile payment sheet doesn't create subscription under the hook, so you need to call subscriptions API directly to create one.
Let me explain my understanding of the process. If there are any issues, please point them out. Firstly, when the user creates a subscription using our application, a checkout page will be launched on the application. Then, the user inputs the payment method, and the app passes the payment method to the server. The server then directly calls the subscription interface to create a trial subscription
What is a mobile payment sheet
The component in your screenshot
This is mobile payment sheet
Oh, oh
I understand the functionality, but I would like to know the specific operation process. Can you explain it to me? What should I do to fulfill my needs
Two steps
- Use the
setupmode payment sheet to collect a payment method - Pass the newly collected payment method to
default_payment_methodwhen creating a subscription through /v1/subscriptions API
OK, is the first step to use this? https://docs.stripe.com/payments/save-and-reuse?platform=android&mobile-ui=payment-element
yes
Let me confirm again, these are all trial subscription features we're talking about, right
Collecting a payment method isn't designed just for trial subscriptions.
You can also collect a payment method for one-off payments
I'd suggest you follow the integration guide to bulid up your integration, feel free to visit this discord server anytime when you have questions
Okay, thank you very much
No problem!