mollie / laravel-mollie

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

Unable to provide profileId in requestApplePayPaymentSession() #173

Closed dees040 closed 3 years ago

dees040 commented 3 years ago

Expected Behavior

In the documentation of requesting an Apple Pay Payment Session you've an parameter to provide the profileId. However, when executing Mollie::api()->wallets()->requestApplePayPaymentSession() there is no parameter to provide the data for this field.

Possible Solution

Add an optional third parameter for the $profileId.

Context

I need to implement Apple Pay in an application where we use organization access tokens. Therefore, I need to specify for which profile I'm making this request.

Your Environment

sandervanhooft commented 3 years ago

Thanks for reporting this @dees040, you're right.

I'll release a patch. Note that this is a patch on mollie/mollie-api-php, not on laravel-mollie.

sandervanhooft commented 3 years ago

Released! https://github.com/mollie/mollie-api-php/releases/tag/v2.35.0

dees040 commented 3 years ago

Thanks for the quick fix @sandervanhooft