Skip to content

Commit

Permalink
Set return url
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinwy committed Jul 5, 2024
1 parent e26ffb6 commit 0a231fc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ public function execute()

$currencyCode = $order->getOrderCurrencyCode();
$externalPayment = $this->createExternalPayment($order);
$returnUrl = $this->_url->getUrl('checkout/onepage/success');

$session = $this->komojuApi->createSession([
'amount' => $order->getGrandTotal(),
'currency' => $currencyCode,
'return_url' => $returnUrl,
'default_locale' => $this->config->getKomojuLocale(),
'email' => $order->getCustomerEmail(),
'metadata' => ['note' => 'testing'],
Expand Down

0 comments on commit 0a231fc

Please sign in to comment.