Skip to content

Commit

Permalink
use upper case on country code
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjude committed Nov 21, 2023
1 parent b996b7a commit d2d17fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/PawapayProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function initializeCheckout(array $parameters = []): SessionData
payload: [
'depositId' => Arr::get($parameters, 'reference'),
'amount' => "$amount", // Pawapay accepts amount as string
"country" => Arr::get($parameters, 'country'),
"country" => str(Arr::get($parameters, 'country'))->upper()->toString(),
"statementDescription" => Arr::get($parameters, 'meta.description'),
"reason" => Arr::get($parameters, 'meta.reason'),
'returnUrl' => $parameters['callback_url'] ?? route(config('payment-gateways.routes.callback.name'), [
Expand Down

0 comments on commit d2d17fd

Please sign in to comment.