#hendr1x_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/1317155293884579931
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ sorry, I'm not sure I understand what you mean when you say you want to check whether a Payment Method is "valid".
Do you have a request ID that you can share which shows the error you're trying to avoid running into?
I don't right now but I can create one
The error I am encountering is payment method has already been used
That's not something that we track on the Payment Method object.
Do you want to be able to use Payment Method multiple times? If not, I'd suggest tracking their usage on your own. You could set metadata on the Payment Method objects to track that. Or you can track this in a database on your side.
If you do want to be able to use Payment Methods more than once, you should adjust your flow so those are setup for future usage.
It's not that...I'm just trying to handle all possible error scenerios
So as I understand it I can only tell if that error is going to occur by submitting a payment with the payment method and getting an error?
Correct, unless you build a tracking mechanism that tracks when you use a Payment Method that you can reference before you try to create a payment for it.