#Anureet
1 messages · Page 1 of 1 (latest)
The invoice_pdf should give you the direct link, no?
I actually need only the receipt (from the api) not the invoice
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
It's inside the Charge, which is inside the PaymentIntent, which is inside the Invoice object, I believe
If I go through this receipt url( from the charge, as you said), it opens a window that still has a link to download the invoice. I don't want to show this download invoice thing to my customer. As if I download an invoice, it has a link to 'pay online' and in that specific invoice it shows the amount as due but in actual that amount is paid. I can even see that paid amount in receipt.
This invoice is misleading my customer for a payment that has already succeeded.
Please refer to the attached images.
Can you paste here the Invoice Id? inv_xxx
no, I mean the Invoice Id: inv_xxx. You can look at the url
You mean the 'receipt_url' ?
The Invoice Id
Can you find the Invoice in here? https://dashboard.stripe.com/test/invoices
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yes I am able to find my invoice here.
This is the id that I can find here: in_1MBzW9FrwvQZv9tYoD9X07wr
And I have the invoice number: 4A632950-0005
in_1MBzW9FrwvQZv9tYoD9X07wr is good! Let me see
So its underlying PaymentIntent is pi_3MC0VXFrwvQZv9tY1z6LH843, then its Charge is py_3MC0VXFrwvQZv9tY1r5LLOoh
yes
If you call the Retrieve Charge API to py_3MC0VXFrwvQZv9tY1r5LLOoh, do you see its receipt_url here? https://stripe.com/docs/api/charges/object#charge_object-receipt_url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes, I got the receipt url. But that also open a page where i can see an option to download the invoice. This eventually shows up the same invoice that i shared with you above.
I only want to download the receipt directly, where my customer cannot access the invoice
Hmm, then I think you would need to manually generate a PDF. We don't have a PDF for payment receipt like the Invoice one
Sorry
Ok thank you for this.
I have another query:
Can I fetch the plans (using API) by filtering them on the basis of amount and interval. I don't want to retrieve the plan using the plan_id.
There is a List Plan API but not having those paramters :/ I am afraid you would need to filter the response yourself: https://stripe.com/docs/api/plans/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can you help me to find that how long a subscription payment waits in pending state before going to failed state, if any payment failure occurs. I am using BECS direct debit. I want to know how much time I have to update my bsb and account number before the payment fails and my subscription is canceled.
Hi! I'm taking over this thread.
What do you mean by "pending state"? Do you mean the PaymentIntent status?
I want to know if any payment in a subscription (say the 2nd payment) fails, then my subscription is canceled after sometime. I want to know that time after which a subscription is canceled due to a payment failure, or subscription is canceled immediately when any of the payment fails.
And how long a payment waits for a response from the bank in BECS direct debit that the payment is successful or has failed ?
I want to know that time after which a subscription is canceled due to a payment failure
This depends on your dashboard settings https://dashboard.stripe.com/settings/billing/automatic