Descriptionhandlereject() method is not present for component in case of payment methods other than PayPal, this PR includes a base function handleOnfailure() for handling orderRedirect fail for in general payment methods and overrides this method for PayPal ensuring handleReject() is called only if the payment method is PayPal.
Tested scenarios
With Ideal payment, handleOnfailure() should be utilized from base (ayden-pm-method)
With PayPal, handleOnfailure() should be utilized from PayPal method renderer
Description
handlereject()
method is not present for component in case of payment methods other than PayPal, this PR includes a base functionhandleOnfailure()
for handling orderRedirect fail for in general payment methods and overrides this method for PayPal ensuringhandleReject()
is called only if the payment method is PayPal.Tested scenarios
handleOnfailure()
should be utilized from base (ayden-pm-method)handleOnfailure()
should be utilized from PayPal method renderer