Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
newline because the maximum length is reached.
Browse files Browse the repository at this point in the history
sushmita committed Feb 2, 2024
1 parent 31bd2c8 commit 2a75f5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Service/PaymentMethodsService.php
Original file line number Diff line number Diff line change
@@ -155,13 +155,15 @@ public function getPaymentMethodsArray(PaymentMethodsResponse $paymentMethodsRes
$paymentMethods = $paymentMethodsResponse->getPaymentMethods();
if (!empty($paymentMethods)) {
foreach ($paymentMethods as $paymentMethod) {
$allPaymentMethods['paymentMethods'][] = json_decode(json_encode($paymentMethod->jsonSerialize()), true);
$allPaymentMethods['paymentMethods'][] =
json_decode(json_encode($paymentMethod->jsonSerialize()), true);
}
}
$storedMethods = $paymentMethodsResponse->getStoredPaymentMethods();
if (!empty($storedMethods)) {
foreach ($storedMethods as $paymentMethod) {
$allPaymentMethods['storedPaymentMethods'][] = json_decode(json_encode($paymentMethod->jsonSerialize()), true);
$allPaymentMethods['storedPaymentMethods'][] =
json_decode(json_encode($paymentMethod->jsonSerialize()), true);
}
}

0 comments on commit 2a75f5f

Please sign in to comment.