Skip to content

Commit

Permalink
simplify PaymentMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Jun 10, 2020
1 parent 36a8f3c commit 8bbbcac
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,7 @@ protected function addOptionalInterfaceParams(string $interface, array $payload)
$payload['ConfigSet'] = (string) $optionValue;
break;
case 'payment_methods':
if (is_string($optionValue) && strpos($optionValue, ',') !== false) {
$optionValue = explode(',', $optionValue);
}

$payload['PaymentMethods'] = (array) $optionValue;
$payload['PaymentMethods'] = explode(',', $optionValue);
break;
case 'wallets':
$payload['Wallets'] = explode(',', $optionValue);
Expand Down

0 comments on commit 8bbbcac

Please sign in to comment.