mollie / laravel-mollie

Mollie API client wrapper for Laravel & Mollie Connect provider for Laravel Socialite
https://www.mollie.com/
MIT License
326 stars 62 forks source link

Apple pay integration #120

Closed fvanhove closed 4 years ago

fvanhove commented 4 years ago

How is the Apple pay integration intended to be used? It seems after enabling this in the Mollie payment methods it is still not provided in the response of mollie()->methods()->all()

Does this only work for the Mollie checkout flow or can the Apple pay direct integration be used? if so, how would this be used together with the laravel-mollie package?

Kind regrads

sandervanhooft commented 4 years ago

Hi @fvanhove,

About Laravel-mollie vs mollie-api-php

This Laravel package builds upon the mollie-api-php client. The primary benefit of the Laravel package is that it preconfigures the php client using Laravel best practices.

The laravel-mollie endpoint methods are therefore similar to the mollie-api-php endpoint methods.

So if in the mollie docs you see an example like this:

$mollie->payments->get($id);

that would be this in the laravel-mollie client:

mollie()->payments()->get($id);

How to integrate Apple Pay Best to use these docs:

➡️ I'm checking your specific question about the method endpoint with Mollie.

sandervanhooft commented 4 years ago

Hi @fvanhove ,

Can you try the following?

mollie()->methods()->all(["includeWallets=applepay"]);
fvanhove commented 4 years ago

Hey, @sandervanhooft.

I think you meant: mollie()->methods()->all(["includeWallets" => "applepay"]);

That indeed adds the apple pay method to the list, thanks for the info.

sandervanhooft commented 4 years ago

You're right! Glad it helped.