Fix code for deployment

This commit is contained in:
Rene Vergara 2023-06-23 10:23:52 -05:00
parent 08690a29a5
commit 2e8aaa1f1a
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -190,8 +190,8 @@ function zgopmt_init() {
$oid = json_decode($body);
$isvalid = $oid->{'authorized'};
break;
case 202:git
$body = wp_remote_retrieve_body($response );
case 202:
$body = wp_remote_retrieve_body($response );
$oid = json_decode($body);
break;
default:
@ -239,7 +239,7 @@ function zgopmt_init() {
// Save ZGo Order ID and Cart order
//
$sql3 = $wpdb->prepare('replace into zgo_payments (pmt_orderid, pmt_wc_order, pmt_wc_custname, pmt_accepted, pmt_confirmed, pmt_amount, pmt_rate, pmt_zec, pmt_wc_paid) values (%s, %s, %s, %s, %s, %f, 0, 0, 0);',
$zgoOrderid, $order_id, $order-<get_billing_first_name() . ' ' . $order->get_billing_last_name(), date('Y-m-d H:i:s'), '', $order->get_total())
$zgoOrderid, $order_id, $order->get_billing_first_name() . ' ' . $order->get_billing_last_name(), date('Y-m-d H:i:s'), '', $order->get_total());
//$sql = "replace into zgo_payments (" .
//"pmt_orderid," .
//"pmt_wc_order," .