The main purpose of this PR is to add the ability to choose the display type for the CreditKey payment method on checkout. It utillizes the same source model and component as the PDP display options and simply checks the field name to determine checkout vs pdp. These can be separated later if needed, but at this time they both seem to have the same options available.
This PR includes a few extra items as well
The README has been updated with instructions for moving the PDP marketing content.
The payment method renderer component has been updated to validate the checkout form before performing the redirect/modal action. This fixes the empty email error bug.
The payment method renderer has been update to call the API to get the button on afterRender as opposed to when isDisplayed is called. I noticed that isDisplayed is called every time you select a payment method (assuming you have more than one available) so the API was called every time you switch between selected payment methods. The afterRender action only happens once, so this should improve the experience here.
The main purpose of this PR is to add the ability to choose the display type for the CreditKey payment method on checkout. It utillizes the same source model and component as the PDP display options and simply checks the field name to determine checkout vs pdp. These can be separated later if needed, but at this time they both seem to have the same options available.
This PR includes a few extra items as well
afterRender
as opposed to whenisDisplayed
is called. I noticed thatisDisplayed
is called every time you select a payment method (assuming you have more than one available) so the API was called every time you switch between selected payment methods. TheafterRender
action only happens once, so this should improve the experience here.