Wallet component class constructor event handler args throw exception when event fires #17
Unanswered
rossparachute
asked this question in
Q&A
Replies: 2 comments
-
@rossparachute the problem should be fixed now. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@rossparachute how is it going - can you confirm you issues are fixed now? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @JoshTQ @RomanKondratyev,
I think this point might still need looked at, apologies if you've already got it in work.
Thought at first it might just be the React useState() func calls throwing the exception but it appears to fire with console.log calls too.
Overview
Some of the event handler args passed to the Wallet class constructor throw unhandled exceptions when their event is fired and handlers called.
Most importantly:
Also:
I believe this is also a concern for the Dojo.Payment class constructor args too:
Payments can be successfully made without these handlers passed but it does mean things can't be logged as expected, nor loading states in the UI toggled for every event etc.
The Wallet class is the main concern here, with the onPaymentInitiated and onPaymentCancelled handlers.
Expected Behaviour
The handlers fire correctly without error, allowing for logging and custom code to run.
Actual Behaviour
An unhandled DOMException is thrown, breaking the payment flow.
Exception
Minimum Reproducible Example
Initialize your Wallet component widget per the docs and click the Google/Apple Pay wallet button to begin a payment:
https://docs.dojo.tech/payments/accept-payments/components/wallet
Beta Was this translation helpful? Give feedback.
All reactions