#philton_docs
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/1286259671736520706
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Yep, you can utilise this parameter when creating the sub to add a $10 one-time item to the initial invoice and the trial period will still apply to the recurring item: https://docs.stripe.com/api/subscriptions/create#create_subscription-add_invoice_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
How can I add this paid trial to Express Checkout? I want to offer a 10-day trial for $10, and then automatically charge $100 per month after the trial period.
I can't find an example in the documentation where a subscription or subscription price is added to express checkout.
What do you mean by 'added to express checkout'? What is the expectation here?
The amount parameter should reflect what you are charging now (so 1000)
You can then use the applePay parameter to configure the sheet to display the future recurring items and details on the trial
Example of that here: https://docs.stripe.com/apple-pay/merchant-tokens?pay-element=ece&mpan=recurring
I see this. Is it possible to link an existing subscription when setting up Express Checkout? If so, how can I specify an existing subscription for a customer to continue using it with Apple Pay or Google Pay?
Well Express Checkout is intended to be used prior to having a subscription/payment. You'd implement the UI, collect payment details via the wallet and then create the Subscription via the API and confirm the related intent
The flow here is waht you need mostly: https://docs.stripe.com/elements/express-checkout-element/accept-a-payment
You'd just substitute the server-side call to create an intent to create a subscription instead