Closed pmarjan-onestic closed 7 months ago
As there are no events fired for logged in customers by default in Hyva_Checkout, this problem is no longer observable for customers.
This issue is still observable for Guests. It can be reproduced in pretty much the same steps, with the only difference now that:
This issue is still observable for Guests simply because in default Hyva_Checkout code there is an event emitted from
Hyva\Checkout\Magewire\Checkout\AddressView\AbstractMagewireAddressForm:save()
line 205: $this->emitByAddressType('%s_address_saved');
This event emitted alone is responsible for refreshing the Methods listed and it does that accurately At the same time this event emitted is the reason for the JS error observed
In the case that line 205 from above is commented out, things get reversed:
On top of that, the automated E2E tests will fail will "Please select shipping method" once "Credit card" payment method is selected
This ticket is tightly connected to #28 and #29
Hello @pmarjan-onestic,
secureFields
is a part of card component and it might make some calls to checkoutshopper endpoints of Adyen Checkout API.
The possible reason of the JS issue is reloading/remounting the component to the same DOM while there is already an active card component.
Could you please remove the component before mounting a new one if it's possible?
hi @candemiralp thank you for the support and advice shared.
I think, with the recent commit made, now in Adyen_Hyva, we are using the unmont()
method for the loaded component successfully, thus resolving this ticket.
Describe the bug A JS error is observable when switching address country for guest
To Reproduce Steps to reproduce the behavior:
Expected behavior Able to use the Adyen Test Cards Chome plugin to Prefill the card input field
Actual behavior NOT Able to use the Adyen Test Cards Chome plugin to Prefill the card input field
Context JS error is observable in the console
Screenshots
The problem
$this->emit()
and$this->dispatchBrowserEvent()
)