#sercan92_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/1469231141956485297
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, you should just use stripe.customers.createFundingInstructions() API, This API will create new instructions if they aren't created for the customer yet. Otherwise it will just return the same instructions.
Thanks for the response, but I think there is a misunderstanding.
I understand that createFundingInstructions() is idempotent and returns existing instructions if they already exist.
The problem is: I don’t want to create funding instructions as a side effect of simply viewing a customer’s detail page in my admin UI.
Current behaviour:
Admin opens customer detail page -> our code calls createFundingInstructions() to display vIBAN data
Problem is that if no funding instructions exist yet, they are automatically created just by viewing the page.
Is there a way to check if funding instructions exist and retrieve them if they do, but NOT create new ones if they don’t exist?
An example use case would be:
We want to rollout vIBAN to a selected number of customers first to test our webhook logic.
But when admins view other customers detail pages, we don’t want to accidentally create vIBANs for them.
Is there a read-only API endpoint for this? Or another way of determining if a customer has an active vIBAN account?
No there's no API to check if funding instructions were created for a customer yet.
You may want to implement a feature flag in your app and only turn on the flag for selected customers whom you wish to show the VBAN to.