Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Pass checkoutInfo parameter by reference

givanz46bf7ba5b272
diff --git a/system/payment.php b/system/payment.php
index ae16c49..89c4cb7 100755
--- a/system/payment.php
+++ b/system/payment.php
@@ -46,7 +46,7 @@ class Payment {
public function __construct($options = []) {
}
- public function getMethods($checkoutInfo) {
+ public function getMethods(&$checkoutInfo) {
$data = [];
foreach ($this->methods as $name => $method) {
diff --git a/system/shipping.php b/system/shipping.php
index 12e465f..6c172c5 100755
--- a/system/shipping.php
+++ b/system/shipping.php
@@ -46,7 +46,7 @@ class Shipping {
public function __construct($options = []) {
}
- public function getMethods($checkoutInfo) {
+ public function getMethods(&$checkoutInfo) {
$data = [];
foreach ($this->methods as $name => $method) {