#vpmragu-subscription paid_out_of_band

1 messages · Page 1 of 1 (latest)

woeful belfry
#

👋 happy to help

#

I'm not sure to be honest, let me ask my colleagues and get back to you

desert rain
#

Thanks Tazan. To add more details for your reference. subscription.create params are below, params = {
customer: customerId,
items: [{
price: priceId,
}],
automatic_tax: { enabled: true },
expand: ['latest_invoice.total_tax_amounts.tax_rate'],
payment_behavior: 'default_incomplete',
collection_method: 'charge_automatically',
proration_behavior: 'none',
};

woeful belfry
#

and the customer doesn't really have a payment method attached to them?

desert rain
#

yes. Since we want to make the paid to the invoice thru out of band, we don't want to store the payment source.

mental bear
desert rain
#

Yes, it is working.

#

how can we handle this for the next cycle?

mental bear
#

well if you're using collection_method: 'charge_automatically', what will happen next cycle is we try to charge the customer's payment method. That will fail if they don't have one.

desert rain
#

How about invoice? will it get generated?

mental bear
#

yes an invoice will be generated

desert rain
#

what would be the invoice status? can i update after this fail?

mental bear
#

I don't really understand your use case. Are these recurring invoices ever going to be paid by the customer via a Stripe charge or is every invoice going to be "paid out of band"?

desert rain
#

Every invoices will be "paid out of band" only

#

for the recurring payments, user might have a payment methods other than card(Stripe). So we want to keep it always as "paid out of band". planning to have a webhook on invoice.created and collect the payment from the customer automatically then mark it as paid

mental bear
#

hmm so you're using other payment processors and collect the payment elsewhere?

desert rain
#

What will be the next cycle if i'm using collection_method: 'send_invoice'?

mental bear
#

not sure I understand the question, can you elaborate?

desert rain
#

while creating a subscription, instead of charge collection_method: 'charge_automatically', if i'm using collection_method: 'send_invoice', what will happen in the next cycle. Here also, i don't have any saved payment source.