commit 5dab0fbfdf2027ab65fea671cfc5a539cbf5884e
parent f9266ed4f1147d61767b067bf692f63156d659c1
Author: nickfarrow <nick@nickfarrow.com>
Date: Sat, 22 May 2021 22:39:05 +1000
Fix woocommerce gateway and better error message
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gateways/woo_satsale.php b/gateways/woo_satsale.php
@@ -66,7 +66,7 @@ function satsale_init_gateway_class() {
$this->title = $this->get_option( 'title' );
$this->description = $this->get_option( 'description' );
$this->enabled = $this->get_option( 'enabled' );
- $this->SatSale_server_url = $this->get_option( 'satsale_server_url' );
+ $this->satsale_server_url = $this->get_option( 'satsale_server_url' );
// $this->redirect_url = $this->get_option( 'redirect_url' );
// $this->testmode = 'yes' === $this->get_option( 'testmode' );
$this->SatSale_API_Key = $this->get_option( 'SatSale_API_Key' );
@@ -144,7 +144,7 @@ function satsale_init_gateway_class() {
$payment_url = add_query_arg(
$args,
- $this->satsale_server_url . "/pay"
+ $this->satsale_server_url . '/pay'
);
// Redirect to SatSale
diff --git a/satsale.py b/satsale.py
@@ -102,7 +102,7 @@ def initiate_payment(payload):
if response.status_code != 200:
print(
- "Failed to confirm order payment via webhook {}, the response is: {}".format(
+ "Failed to confirm order payment via webhook {}, please contact the store to ensure the order has been confirmed, error response is: {}".format(
response.status_code, response.text
)
)