Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showPayButton not working for stored ACH #2554

Open
jaredtbates opened this issue Feb 14, 2024 · 3 comments
Open

showPayButton not working for stored ACH #2554

jaredtbates opened this issue Feb 14, 2024 · 3 comments
Assignees

Comments

@jaredtbates
Copy link

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
@m1aw m1aw self-assigned this Apr 2, 2024
@m1aw
Copy link
Contributor

m1aw commented Apr 2, 2024

@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.

@jaredtbates
Copy link
Author

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

@m1aw
Copy link
Contributor

m1aw commented May 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants