#josula_api

1 messages · Page 1 of 1 (latest)

lapis iglooBOT
#

👋 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.

crimson quail
#

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?

hollow agate
#

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?

crimson quail
#

in_1RfM8gHqliFa6vlS3BxdYm1X

For example

#

We use the stripe node sdk at 17.x

#

2025-02-24.acacia

hollow agate
#

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

#

display_bank_transfer_instructions will only be available after the Payment Intent is confirmed to use bank transfer as a payment method

crimson quail
#

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

hollow agate
crimson quail
#

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

hollow agate
#

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

Use the Payment Intents API to accept bank transfer payments.

crimson quail
#

Ok what will happen to the transfer I have already made?

#

I mean it’s not just in nirvana right 😂

hollow agate
#

This can then be used for invoice payment if the reconciliation doesn't happen automatically

crimson quail
#

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

hollow agate
#

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

#

I'd recommend testing this in test mode / Sandbox first before rolling out to production