You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this related to specific APIs or components, please list them here
useSelectedPaymentOptions [PaymentOption]
Is your feature request related to a problem? Please describe.
I need to take certain action when a specific payment method is selected by the customer
Describe the changes you are looking for
Currently the PaymentOption object has two properties, type and handle. The type refers to the type of payment method it is e.g.: creditcard, deferred, manualPayment etc. and a unique handle. It would be possible to determine which payment method has been selected based on the handle that is returned but as far as the documentation states the handle is not globally unique and therefore could be different per shop and even supposedly from checkout session to checkout session.
This would not allow for the creation of an installable app with an input where the Merchant could select or enter a payment method name to observe as the handle, as far as I am aware, only available at run time.
Describe alternatives you’ve considered
The only approach would be to intall the app which would write the handle to the console, take a note of it, modify the extension with the hard coded handle and republish the app. This really cant be the desired method can it?
The text was updated successfully, but these errors were encountered:
Please list the related package(s)
checkout-ui-extensions
If this related to specific APIs or components, please list them here
useSelectedPaymentOptions [PaymentOption]
Is your feature request related to a problem? Please describe.
I need to take certain action when a specific payment method is selected by the customer
Describe the changes you are looking for
Currently the PaymentOption object has two properties, type and handle. The type refers to the type of payment method it is e.g.: creditcard, deferred, manualPayment etc. and a unique handle. It would be possible to determine which payment method has been selected based on the handle that is returned but as far as the documentation states the handle is not globally unique and therefore could be different per shop and even supposedly from checkout session to checkout session.
This would not allow for the creation of an installable app with an input where the Merchant could select or enter a payment method name to observe as the handle, as far as I am aware, only available at run time.
Describe alternatives you’ve considered
The only approach would be to intall the app which would write the handle to the console, take a note of it, modify the extension with the hard coded handle and republish the app. This really cant be the desired method can it?
The text was updated successfully, but these errors were encountered: