#saucisse_dev

1 messages · Page 1 of 1 (latest)

night pondBOT
#

Hello saucisse_dev, we'll be with you shortly! 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.
https://discord.com/channels/841573134531821608/1164591446192566292, 0 days ago, 21 messages
https://discord.com/channels/841573134531821608/1164479897150959626, 0 days ago, 18 messages

lethal canopy
#

Yes it is. Because of that, we reccommend doing a PaymentIntent with setup_future_usage if you both want to take a payment and save the card

sturdy fern
#

The only case I have to create a setupIntent is if I put a trial on a subscription ?
I have lot of pain to understand the differences

lethal canopy
#

Yep, that is a good usecase for them.

SetupIntents are for if you just want to save a card but there is no payment right now. PaymentIntents are for when you want to take a payment right now, whether or not you want to save the card.

sturdy fern
#

Okay so, if I have a trial period, it's not possible to do a PaymentIntent ?

lethal canopy
#

Correct, if there is no payment you cannot use a payment intent

sturdy fern
#

BUT

#

Imagine I have in the basket, a subscription with trial, and products

#

PaymentIntent will works ?

#

So if I have to resume :

  • if there is only a subscription AND if there is a trial period = SetupIntent
  • every other case who implies an instant payment = PaymentIntent

Am I right ?

lethal canopy
#

Correct, if you have a subscription with a trial, you will want to use a SetupIntent. If you have a subscription with a payment up front, you will want to use the Subscription's first invoice's PaymentIntent

sturdy fern
#

So if I have a subscription with trial, AND products.
I do a payment intents, and the user will pay only for the products, and subscription later

lethal canopy
#

Correct, if there is an upfront fee, the first invoice on the subscription will have a PaymentIntent that you should use to take that payment

#

A SetupIntent is only for cases when there is no payment at all to be made right now

sturdy fern
#

And I will have to pay the fees 2 times if the payment is split ?

lethal canopy
#

Correct, fees will be on each payment. If you want, you can have the starting fee happen after the trial along with the first recurring payment

#

There is a parameter when creating an invoice called add_invoice_items that will add things as one-time invoice items. I think they would add this to the trial invoice though

#

To add them to the invoice after the trial, I think you would want to create the subscription and then make the "Create invoice item" API call for each item that you want on the next invoice and pass the ID of the subscription that you just created https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-subscription