#Anureet

1 messages · Page 1 of 1 (latest)

velvet meadowBOT
hardy sun
#

The invoice_pdf should give you the direct link, no?

merry fjord
#

I actually need only the receipt (from the api) not the invoice

hardy sun
#

It's inside the Charge, which is inside the PaymentIntent, which is inside the Invoice object, I believe

merry fjord
#

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.

hardy sun
#

Can you paste here the Invoice Id? inv_xxx

merry fjord
#

4A632950-0005

#

This is actually my test account

hardy sun
#

no, I mean the Invoice Id: inv_xxx. You can look at the url

merry fjord
#

You mean the 'receipt_url' ?

hardy sun
#

The Invoice Id

merry fjord
#

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

hardy sun
#

in_1MBzW9FrwvQZv9tYoD9X07wr is good! Let me see

#

So its underlying PaymentIntent is pi_3MC0VXFrwvQZv9tY1z6LH843, then its Charge is py_3MC0VXFrwvQZv9tY1r5LLOoh

merry fjord
#

yes

hardy sun
merry fjord
#

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

hardy sun
#

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

merry fjord
#

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.

hardy sun
merry fjord
#

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.

unborn ember
#

Hi! I'm taking over this thread.

#

What do you mean by "pending state"? Do you mean the PaymentIntent status?

merry fjord
#

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 ?

unborn ember