#vpmragu-subscription paid_out_of_band
1 messages · Page 1 of 1 (latest)
👋 happy to help
I'm not sure to be honest, let me ask my colleagues and get back to you
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',
};
and the customer doesn't really have a payment method attached to them?
yes. Since we want to make the paid to the invoice thru out of band, we don't want to store the payment source.
well after you run that code you can try calling https://stripe.com/docs/api/invoices/pay#pay_invoice-paid_out_of_band using the subscription.latest_invoice Id. Does that work?
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.
How about invoice? will it get generated?
yes an invoice will be generated
what would be the invoice status? can i update after this fail?
you can test this in a few ways and find all this out : https://stripe.com/docs/billing/testing/
the statuses depends on the settings you have on https://dashboard.stripe.com/settings/billing/automatic for "managed failed payments". As far as I know the status is unpaid. You can't update the Invoice at that point as it's already finalised. You can try to pay it, including paying out of band.
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"?
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
hmm so you're using other payment processors and collect the payment elsewhere?
What will be the next cycle if i'm using collection_method: 'send_invoice'?
not sure I understand the question, can you elaborate?
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.