Hello,I just tested the return url and I have the following error:
Warning: end() expects parameter 1 to be array, null given in /home/xxxx/public_html/wp-content/plugins/woocommerce-globalpay-4d6b7e698d38460e9a2a4bd402a311ca5c0a81fc/woocommerce-globalpay.php on line 359
See the Logs below:
09-12-2014 @ 16:30:39 – Generating payment form for order #536.
09-12-2014 @ 16:30:40 – User redirected to GlobalPay with the following:
GlobalPay URL: https://demo.globalpay.com.ng/globalpay_demo/paymentgatewaycapture.aspx
Array
(
[merchantid] => xxxx
[amount] => 1015
[currency] => NGN
[merch_txnref] => 1-536-1410539439
[names] => xxxx
[email_address] => [email protected]
[phone_number] => 23480xxxx
)
09-12-2014 @ 16:32:19 – Transaction details received on user return from GlobalPay:
Array
(
[key] => wc_order_54131faec1eeb
)
09-12-2014 @ 16:32:19 – Connecting to GlobalPay at https://demo.globalpay.com.ng/GlobalpayWebService_demo/service.asmx?wsdl
09-12-2014 @ 16:32:24 – Response dump from GlobalPayArray
(
[amount_discrepancy] =>
[status] => completed
[txnref] => 5114255173105877
[channel] => interswitch
[amount] => 1015
[payment_date] => 9/12/2014 5:31:05 PM
[payment_status] => successful
[names] => xxxxx
[acct_desc] => False
[acct_desc_order] => 0
[hidden] => False
[xpath_field] => 0
[currency] => NGN
[email_address] => [email protected]
[phone_number] => 23480xxxxx
[merch_txnref] => 1-536-1410539439
[payment_status_description] => Approved or completed successfully
)
09-12-2014 @ 16:32:25 – Payment complete.