Changeset View
Changeset View
Standalone View
Standalone View
src/app/Providers/Payment/Mollie.php
Show First 20 Lines • Show All 556 Lines • ▼ Show 20 Lines | class Mollie extends \App\Providers\PaymentProvider | ||||
* - exchangeRate: The projected exchange rate (actual rate is determined during payment) | * - exchangeRate: The projected exchange rate (actual rate is determined during payment) | ||||
* - icon: An icon (icon name) representing the method | * - icon: An icon (icon name) representing the method | ||||
*/ | */ | ||||
public function providerPaymentMethods($type): array | public function providerPaymentMethods($type): array | ||||
{ | { | ||||
$providerMethods = array_merge( | $providerMethods = array_merge( | ||||
// Fallback to EUR methods (later provider methods will override earlier ones) | // Fallback to EUR methods (later provider methods will override earlier ones) | ||||
//mollie()->methods()->allActive( | (array) mollie()->methods()->allActive( | ||||
// [ | [ | ||||
// 'sequenceType' => $type, | 'sequenceType' => $type, | ||||
// 'amount' => [ | 'amount' => [ | ||||
// 'value' => '1.00', | 'value' => '1.00', | ||||
// 'currency' => 'EUR' | 'currency' => 'EUR' | ||||
// ] | ] | ||||
// ] | ] | ||||
//), | ), | ||||
machniak: A space after the cast would be nice. | |||||
// Prefer CHF methods | // Prefer CHF methods | ||||
(array)mollie()->methods()->allActive( | (array) mollie()->methods()->allActive( | ||||
[ | [ | ||||
'sequenceType' => $type, | 'sequenceType' => $type, | ||||
'amount' => [ | 'amount' => [ | ||||
'value' => '1.00', | 'value' => '1.00', | ||||
'currency' => 'CHF' | 'currency' => 'CHF' | ||||
] | ] | ||||
] | ] | ||||
) | ) | ||||
Show All 39 Lines |
A space after the cast would be nice.