#nugax_api
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- nugax_tax-multiple, 2 days ago, 62 messages
- nugax_api, 2 days ago, 157 messages
- nugax_invoice-email, 5 days ago, 54 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1240419575380709470
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
There isn't really a clean way to do this with what's generally available unfortunately. That being said, you can look into if this beta fits your usecase and reach out to support to get it enabled: https://docs.stripe.com/invoicing/payment-plans
so there is no way to specificy a payment amount less than amount_due?
specify
...
Correct
hmm
ok, one more question
i have invoice->pay working fine..
how can I get payment details, (like a confirmation number, or whatever may be returned) from the result of the pay?
a link to docs would be good
i have looked but cant find what i need
this is what ive looked at
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That returns an Invoice with all the attributes I would think you need. There's also the invoice.paid webhook Event (and all the other Invoice Events) that we usually recommend using instead: https://docs.stripe.com/api/events/types#event_types-invoice.paid
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so charge in the repsonse for invoice pay is a charge id, correct?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yep
so you could then retrieve charge details like:
"outcome": {
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 32,
"seller_message": "Payment complete.",
"type": "authorized"
},
You could indeed
so would this work for all types of payment methods, (bank, card)
The Payment Intent might be better though, since there could be multiple charges on an Invoice, hence the attribute name latest_charge
You should look at the Payment Intent instead
why would there be multiple charges, if you can only pay once?
Because charges can fail
That would mean that payment hasne't been attempted yet, unless you're using a legacy integration that only uses charges
then latest charge, then retrieve charge info for that charge id
so to larify
clarify
- pay. get pay intent
- from pay intent get latest charge
- retrieve charge and details you want from the latest_charge id
it says latest charge is expandable. what does that mean? does it expand the values from that charge id?
Yeah, it will give you the whole Charge object if you expand it. You should look through the rest of the attributes on the Payment Intent and familiarize yourself with them before you do that though, as there might be something more usefule there like last_payment_error or next_action or status