mollie / mollie-api-node

Official Mollie API client for Node
http://www.mollie.com
BSD 3-Clause "New" or "Revised" License
231 stars 63 forks source link

Apple Pay button while not specified in `method` #289

Closed ghost closed 2 years ago

ghost commented 2 years ago

I came across an issue (or lack of documentation) related to the Apple Pay button shown in the Mollie payment interface while using this package.

We create payments with a method specified, like

const molliePayment = await this.mollieClient.payments.create({
  method: [PaymentMethod.ideal, PaymentMethod.creditcard],
  ...
});

When we added the creditcard method to this list, the Apple Pay button was also enabled on iOS devices in the Mollie payment view:

Screenshot 2022-08-15 at 08 23 38

Altough the flow works fine, we would like to specify explicitly which payment methods are used. Is this behaviour intentional? I would expect Apple Pay to only be included when PaymentMethod.applepay is included in the method list.

Edit - some additional info: the Mollie dashboard also lists payments as a Creditcard payment, but with a Maestro and Apple Pay "label":

Screenshot 2022-08-15 at 08 28 42
ghost commented 2 years ago

Could very well be that this is unrelated to the node package and should be forwarded to the core Mollie team, if so let me know and I'll open a ticket with them 👍 .

Pimm commented 2 years ago

Thanks, Yuri,

This is indeed outside the scope of the Node.js client, and thus a question for support.

Tell them I said "hi", and have a great week.