#josula_api
1 messages · Page 1 of 1 (latest)
👋 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/1389298261134802954
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
I basically want to do something like
stripe.invoice.Retrieve() and then somehow expand it to get the iban and bic that is correct for this invoice?
Could you share an example Invoice ID (in_123), so that I can check how you integrate invoice with Stripe and which API version is used?
in_1RfM8gHqliFa6vlS3BxdYm1X
For example
We use the stripe node sdk at 17.x
2025-02-24.acacia
Thanks for sharing! With reference to the Invoice creation request (https://dashboard.stripe.com/logs/req_0zNxbloS37O6qC), the request was made on
stripe-node 17.7.0 with Stripe API version 2025-02-24.acacia.
With this SDK version, you can use Invoice Retrieval API and expand latest_invoice.payment_intent after confirming using the bank transfer option, i.e. Payment Intent is in requires_action status. The bank information can be found under next_action.display_bank_transfer_instructions under the expanded Payment Intent: https://docs.stripe.com/api/payment_intents/object?api-version=2025-02-24.acacia#payment_intent_object-next_action-display_bank_transfer_instructions
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
display_bank_transfer_instructions will only be available after the Payment Intent is confirmed to use bank transfer as a payment method
Ah ok so currently this is wrongly set up right? I think we do not confirm the bank transfer on the payment intent yet?
pi_3RfM8iHqliFa6vlS0lI4TAqf
Says it „requires payment method“
I used this to test our implementation and transferred the amount yesterday to test it. Will this not work then?
What happens to the funds I transferred then?
Just not sure i fully understand
I used this to test our implementation and transferred the amount yesterday to test it. Will this not work then?
Did you transfer the fund to the bank account listed here? https://dashboard.stripe.com/customers/cus_SaXDc6x4jZtr7J/cash_balance_transactions/eur
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Exactly. Yes
Including the reference
I mean it might just take another day to arrive (transferred last night)
Just wondering what happens if this is not the correct implementation
When the Payment Intent is still in requires_payment_method status, the invoice will not be reconciled. Only when the status is moved to requires_action, then the invoice will be reconciled: https://docs.stripe.com/payments/bank-transfers/accept-a-payment?payment-ui=elements#element-confirm-success
I'd recommend confirming the Payment Intent if bank transfer will be the payment method to be used for payment: https://docs.stripe.com/api/payment_intents/confirm
Ok what will happen to the transfer I have already made?
I mean it’s not just in nirvana right 😂
The fund will be in customer balance: https://docs.stripe.com/payments/customer-balance
This can then be used for invoice payment if the reconciliation doesn't happen automatically
Ah ok thanks
How can I confirm the PI via the api?
It’s not clear to me from the docs. Basically what you mentioned earlier
When an invoice integration is used, it's expected that the customer will make payment through the hosted invoice payment page, which will handle the confirmation automatically. That's the reason why the doc doesn't provide the details on how to manual confirm with your use case not going through the hosted invoice page. To confirm a Payment Intent, Payment Intent Confirm API can be used: https://docs.stripe.com/api/payment_intents/confirm
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'd recommend testing this in test mode / Sandbox first before rolling out to production