Skip to content

Commit

Permalink
Change payment country to invoice/billing address country
Browse files Browse the repository at this point in the history
  • Loading branch information
bosunolanrewaju authored May 18, 2017
1 parent 0c909c2 commit c07f8a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ravepaymentgateway/controllers/hook/displayPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function run ()
}

$currency_order = new Currency($this->context->cart->id_currency);
$country = new Country((int)$address_billing->id_country);
$customer = new Customer($this->context->cart->id_customer);
$this->context->smarty->assign(array(
'pb_key' => Configuration::get('RAVE_PB_KEY'),
Expand All @@ -35,7 +36,7 @@ public function run ()
'logo' => Configuration::get('RAVE_MODAL_LOGO'),
'btntext' => $btntext ? $btntext : 'PAY NOW',
'currency'=> $currency_order->iso_code,
'country' => $this->context->country->iso_code,
'country' => $country->iso_code,
'txref' => "PS_" . $this->context->cart->id . '_' . time(),
'amount' => (float)$this->context->cart->getOrderTotal(true, Cart::BOTH),
'customer_email' => $customer->email,
Expand Down

0 comments on commit c07f8a7

Please sign in to comment.