Skip to content

Commit

Permalink
Merge pull request #549 from commercelayer/fix/adyen-customer-payments
Browse files Browse the repository at this point in the history
Allows the shopper to remove a stored payment method.
  • Loading branch information
acasazza authored Jul 12, 2024
2 parents b49656d + cce4922 commit e79a423
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ export function AdyenPayment({
showPayButton: false,
paymentMethodsConfiguration: {
showStoredPaymentMethods,
showRemovePaymentMethodButton: showStoredPaymentMethods,
paypal: {
showPayButton: true,
style: styles?.paypal
Expand Down Expand Up @@ -400,6 +399,7 @@ export function AdyenPayment({
void AdyenCheckout(options).then((adyenCheckout) => {
const component = adyenCheckout
.create(type, {
showRemovePaymentMethodButton: showStoredPaymentMethods,
onSelect: (component) => {
const id: string = component._id
if (id.search('scheme') === -1) {
Expand Down

0 comments on commit e79a423

Please sign in to comment.