Closed Dinamiko closed 3 days ago
Venmo button is not rendered in express checkout buttons due to a JS SDK error:
When including onShippingOptionsChange and/or onShippingAddressChange to the Venmo button, it currently throws the JS error.
onShippingOptionsChange
onShippingAddressChange
We are already checking for the above condition here but the JS SDK error is thrown before that check is reached.
Add an early condition for venmo that will be executed before JS SDK is executed.
venmo
Venmo button is not rendered in express checkout buttons due to a JS SDK error:
Steps To Reproduce
Possible cause
When including
onShippingOptionsChange
and/oronShippingAddressChange
to the Venmo button, it currently throws the JS error.We are already checking for the above condition here but the JS SDK error is thrown before that check is reached.
Suggested solution
Add an early condition for
venmo
that will be executed before JS SDK is executed.