#krishnaKanabar - paymentintent
1 messages ยท Page 1 of 1 (latest)
Ok can you share the Payment Intent id?
yes
pi_3LUXKvSJsXH2azWQ1UoLoEtA
invoice id - in_1LUXMlSJsXH2azWQjFL4N2hS
are you there?
๐
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Looks like you were charged 99 inr successfully
What does that invoice have to do with the payment intent you shared?
Invoice is from this subscription: https://dashboard.stripe.com/test/subscriptions/sub_1LUXMlSJsXH2azWQmiiEM7Sv
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Normal $0 invoice as a part of a subscription trial
The two are completely unrelated
@grim cave this has been reoppened
hi
So actually I want to create invoice of INR 99 when I pay and attach that to subscription sub_1LUXMlSJsXH2azWQmiiEM7Sv
Sorry Discord is really busy right now so I'll need a bit to catch up
I created payment intent of INR 99....I am taking that amount while user starts trial and then credits that anount to customer balance as stripe only provide free trail....and i wanted 14 days paid trial of INR 99
I want invoice of INR 99 but invoice is getting generated for INR 0
Well that makes sense. Since the customer has a credit for that amount.
The 99 INR payment is for the payment intent, that does not generate an invoice
Invoices are generated either in response to you creating an invoice directly or in response to subscriptions
okay give me 5 mins
is there any way I can create invoice of INR 99 and attach it to customer subscription rather than INR 0
What is the situation where you have a subscription that generates a 0 INR invoice?
If you look at subscription sub_1LUYtlSJsXH2azWQJ34i4sDp
My first invoice is INR 0 and second one is 699+gst(18%) = INR 824.82 - 99(trial amount) = INR 725.82
But actually first invoice should be INR 99 and second should be INR 725.82
But there is only 1 price for 699 associated with this subscription?
So you want to charge less (but not free) for the "trial" period?
It's a bit more complex but I think your use case would be a better fit for Subscription Schedules.
subscription schedule doesn't work in my case
becaus each payment should be recusrring in it and I only charge INR 99 once for trial period
You can absolutely do that with schedules
You would create a schedule with the first phase being for the INR 99. That would be your trial phase. This would not repeat and transition over to the 699 price which would recur
i had a talk with support for thid and schedule was not wrking for my case...sharing chat happended with support
Hi there,
The subscription schedule is creating a monthly subscription, so it is expected that the period for first invoice is for a full month (JUL 27 - AUG 27), even if a new phase will start in 15 days.
If you want to have the first invoice to be for "JUL 27 - AUG 9", then a workaround is to use a free trial. I covered how to do that in my previous email, using trial_period_days, add_invoice_items, and coupon.
I hope this helps, but please do not hesitate to get back to me if you have any other questions.
Best,
Soma
Have you tried creating a single Invoice Item for 99 before creating the subscription with the free trial? That invoice item (if you create it for the same customer) should be picked up by the 0 invoice for the trial period. Then you would not generate a customer balance
let me try this
as u said i am trying
but how to create invoice of INR 99
I am not seeing option for amount param in request api
I said to create and Invoice Item for the Cusomter and amount of 99 INR
https://stripe.com/docs/api/invoiceitems/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay
let me try
tax rate is also getting applied
I want to avoid tax rate for invoice item
๐ stepping in as Snufkin had to step away.
Can you summarize the issue for me here and how I can help?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I am creating invoice item
but tax is getting included
i want to avoid it
I want to avoid tax percentage for invocie item that i am creating
can you tell me how to add invoice item of INR 99 to subscription object
i want to generate first invoice of INR 99
Are you using Automatic Tax on your Subscription? Like do you want other invoices to calculate Tax? Or are you using Tax Rates?
I found one slution to use add_invoice_items
$subscriptionCreatePayload = [
'customer' => $data['customer_id'],
'items' => $lineItems,
'add_invoice_items' => [
[
'price' => 'price_1LUaPHSJsXH2azWQwI4CwEW6',
'tax_rates' => 0
]
]
];
this is showing error
What error are you receiving?
Oh yeah it is likely due to 'tax_rates' => 0
You should remove that
Can I ask why you are setting Tax Rates if you aren't trying to collect taxes?
i don't want tax in first invoice that will get generated for traia
I see, but you do want it after that?
I have explained it here
Total price amount is 699+18%GST = 824.82
I want to deduct INR 99 at first invoice so this amount does not contain tax_rate and then second invocie should be 824.82 - 99
are you there?
Yep, sorry helping a few folks at once.
Thanks for clarifying what you are trying to do.
I'm not actually sure this is possible on the same Sub. But let me double check, give me a moment.
Actually the way to do this is likely to create a 0% tax rate for that individual invoice item
So that it doesn't use the default tax rate that you are setting
So instead of doing 'tax_rates' => 0... create an actual tax rate that is 0%
And then apply that there
ok