#pawan425_api
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- pawan425_api, 22 hours ago, 48 messages
đ 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/1243503959168254082
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
You'd use a Subscription to automate the recurring payments: https://docs.stripe.com/subscriptions
You can't do recurring payments by creating an Invoice directly
then what is preview invoice?
is that provide ability to update the amount any no. of time before payment ?
and can i get payment intent before finalise the invoice ?
Well that's an endpoint that generates a preview for a hypothetic invoice given specific parameters
You should look at this guide which will handle the instalment options as you describe: https://docs.stripe.com/billing/subscriptions/build-subscriptions
You can attach a 'down payment' as one-time item on the initial invoice when creating the subscription
how can i achive this
please guide me
This parameter: 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.
Alternatively, use Checkout which will mostly handle all this for you: https://docs.stripe.com/payments/checkout/how-checkout-works#mixed
but i want that the customer always come on my domain to pay not stripe hosted page
You can use embedded Checkout: https://docs.stripe.com/checkout/embedded/quickstart
and also one thing in one subscription i can't use both one time and recurring
Yep, that's true. So if your customer opts to pay all upfront then don't do the Subscription and just use the Invoice/Payment Intent directly as you are now
but when he pick pay monthy then on next step i want to show him credit card page to pay and without payment intent how can i show and
i also want invoice of the downpayment
That's called the deferred flow where you collect payment details before creating the Subscription/intent: https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=subscription