-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to catch INSTRUMENT_DECLINED issue #24
Comments
Or is it enough to check isSuccess?
|
Hey @lizeshakya Checking Then, you can access the actual result with You can access the returned class instance properties as needed. Typically you'd first check the In the first code snippet you shared, it accesses the NOTE: The integration docs are wrong here, you can't access the fields directly as they're private. You must use getters to access the fields listed in the docs. The getters follow the standard Once you have the details instance, you can call Since the API can return numerous errors depending on the issue, and not all of them apply to every integration, there isn't a specific guide we can provide for what errors are recoverable as it depends on numerous variable. Instead, it's often suggested to check for issues you can handle that are recoverable for your integration and handle those cases, and fail anything that falls outside that list. You can still log failure types that you don't currently view as recoverable, and opt to build out additional logic and handling to support specific issues if necessary and possible. I hope this helps clarify a bit, and we'll work on getting those docs sorted out asap! |
After checking out the documentation in Studio Checkout Standard Integrate, I found that these data should be handled?
How do I handle the issue INSTRUMENT_DECLINED or any other form of issue?
The workflow I am currently implementing:
a. I create the order using the package and return the transaction_id and response_status back if everything is okay.
order.paypal.update
with paypal_order_idOnce everything is good, I am updating the order in my DB.
Now rereading the documentation, do I have to return the capture and use the webhook to update in my DB? I am not too sure how to catch INSTRUMENT_DECLINED error? Also, is it flow okay without using webhook?
The text was updated successfully, but these errors were encountered: