adyen-web icon indicating copy to clipboard operation
adyen-web copied to clipboard

`showPayButton` not working for stored ACH

Open jaredtbates opened this issue 1 year ago • 1 comments

Describe the bug Hi there! We are using the Adyen drop-in and have an external button to trigger payment. However, the showPayButton property is not working when showing stored ACH payment methods. It seems to be showing the "Continue to ..." button no matter what we pass in.

To Reproduce

Here's a rudimentary code example:

AdyenCheckout({
  paymentMethodsResponse: {
    paymentMethods: [
      {
        brand: null,
        brands: null,
        configuration: null,
        fundingSource: null,
        group: null,
        inputDetails: null,
        issuers: null,
        name: 'ACH Direct Debit',
        type: 'ach',
      },
    ],
    storedPaymentMethods: [
      {
        bankAccountNumber: '011000138',
        bankLocationId: '011000138',
        brand: null,
        expiryMonth: null,
        expiryYear: null,
        holderName: null,
        iban: null,
        id: 'ASDFASDFASDFASDF',
        label: null,
        lastFour: null,
        name: 'ACH Direct Debit',
        networkTxReference: null,
        ownerName: 'Jared Bates',
        shopperEmail: null,
        supportedRecurringProcessingModels: [
          'CardOnFile',
          'Subscription',
          'UnscheduledCardOnFile',
        ],
        supportedShopperInteractions: ['Ecommerce', 'ContAuth'],
        type: 'ach',
      },
    ],
  } as any,
  showPayButton: false,
}).then((checkout) => checkout.create('dropin').mount('#dropin-container'));

Expected behavior I expect the showPayButton property to hide the "Continue to ..." button in the drop-in.

Screenshots image

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Edge (Chromium)
  • Version: 121.0.2277.112

jaredtbates avatar Feb 14 '24 15:02 jaredtbates

@jaredtbates this indeed seems to be an issue. Since it regards a few more payment methods we are going to issue a proper fix. We will keep you updated.

m1aw avatar Apr 02 '24 12:04 m1aw

Hi @m1aw! Just curious, is there a plan to fix this in the next few weeks possibly? Thanks!

jaredtbates avatar May 23 '24 03:05 jaredtbates

I have created a fix for this. Probably shipping this next week.

m1aw avatar May 28 '24 14:05 m1aw

Hi @jaredtbates - we made a release 5.66.0 which should fix this issue. Could you please verify that?

ribeiroguilherme avatar Jun 11 '24 12:06 ribeiroguilherme

Thanks @ribeiroguilherme, sorry for the delay. This works great for us!

jaredtbates avatar Jun 25 '24 21:06 jaredtbates