Changeset View
Changeset View
Standalone View
Standalone View
src/app/Providers/Payment/Mollie.php
Show First 20 Lines • Show All 577 Lines • ▼ Show 20 Lines | public function providerPaymentMethods($type): array | ||||
'value' => '1.00', | 'value' => '1.00', | ||||
'currency' => 'CHF' | 'currency' => 'CHF' | ||||
] | ] | ||||
] | ] | ||||
) | ) | ||||
); | ); | ||||
$availableMethods = []; | $availableMethods = []; | ||||
foreach ($providerMethods as $method) { | foreach ($providerMethods as $method) { | ||||
$availableMethods[$method->id] = [ | $availableMethods[$method->id] = [ | ||||
'id' => $method->id, | 'id' => $method->id, | ||||
'name' => $method->description, | 'name' => $method->description, | ||||
'minimumAmount' => round(floatval($method->minimumAmount->value) * 100), // Converted to cents | 'minimumAmount' => round(floatval($method->minimumAmount->value) * 100), // Converted to cents | ||||
'currency' => $method->minimumAmount->currency, | 'currency' => $method->minimumAmount->currency, | ||||
'exchangeRate' => \App\Utils::exchangeRate('CHF', $method->minimumAmount->currency) | 'exchangeRate' => \App\Utils::exchangeRate('CHF', $method->minimumAmount->currency) | ||||
]; | ]; | ||||
Show All 28 Lines |