• Resolved sanziam

    (@sanziam)


    Hi,

    Just had the first order that was paid for using Zip since installed and updated to v2.3.1, however the customer and admin emails that are sent out by WC did not have the items ordered ie no product, qty or price shown! Also no order details shown when viewing the individual order details when in the admin orders area.

    Using WordPress v5.6.1, WooCommerce v4.9.2 and Zip v2.3.1.

    All orders via other payment methods are working fine (before and after this Zip order).

    Any ideas?

    Error log below (personally identifiable info starred out):

    `
    02-06-2021 @ 15:49:27 – 25970
    02-06-2021 @ 15:49:27 – Checkout session started
    02-06-2021 @ 15:49:27 – total:175.00
    02-06-2021 @ 15:49:27 – shipping:0
    02-06-2021 @ 15:49:27 – items:175
    02-06-2021 @ 15:49:27 – Sending checkout request to API
    02-06-2021 @ 15:49:27 – {“type”:”standard”,”shopper”:{“first_name”:”****”,”last_name”:”****”,”phone”:”****”,”email”:”*********@*********.com”,”billing_address”:{“line1″:”****”,”line2″:”****”,”city”:”*********”,”state”:”*********”,”postal_code”:”****”,”country”:”AU”,”first_name”:”****”,”last_name”:”****”}},”order”:{“reference”:”25970″,”amount”:”175.00″,”currency”:”AUD”,”shipping”:{“pickup”:false,”address”:{“line1″:”****”,”line2″:”****”,”city”:”*********”,”state”:”*********”,”postal_code”:”****”,”country”:”AU”,”first_name”:”****”,”last_name”:”****”}},”items”:[{“name”:”*********”,”amount”:175,”reference”:”1446″,”quantity”:1,”type”:”sku”,”item_uri”:”https:\/\/www.*********.com.au\/product\/*********\/”,”product_code”:””}],”cart_reference”:”25970″},”metadata”:{“platform”:”Woocommerce”,”platform_version”:”4.9.2″,”plugin”:”zip woocommerce plugin”,”plugin_version”:”2.3.1″},”config”:{“redirect_uri”:”https:\/\/www.*********.com.au\/index.php?p=zipmoneypayment&route=charge&action_type=create&iframe=1″}}
    02-06-2021 @ 15:49:27 – Return from checkout API
    02-06-2021 @ 15:49:27 – {“id”:”au-co_*********”,”uri”:”https:\/\/zip.co\/customer\/account-selector?co=co_*********&m=*********”,”type”:”standard”,”shopper”:{“first_name”:”****”,”last_name”:”****”,”phone”:”****”,”email”:”*********@*********.com”,”birth_date”:”0001-01-01T00:00:00+00:00″,”gender”:”Other”,”statistics”:{“sales_total_count”:0,”sales_total_amount”:0,”sales_avg_amount”:0,”sales_max_amount”:0,”refunds_total_amount”:0,”previous_chargeback”:false,”currency”:”AUD”},”billing_address”:{“line1″:”****”,”line2″:”****”,”city”:”*********”,”state”:”*********”,”postal_code”:”****”,”country”:”AU”,”first_name”:”****”,”last_name”:”****”}},”order”:{“reference”:”25970″,”amount”:175,”currency”:”AUD”,”shipping”:{“pickup”:false,”address”:{“line1″:”****”,”line2″:”****”,”city”:”*********”,”state”:”*********”,”postal_code”:”****”,”country”:”AU”,”first_name”:”****”,”last_name”:”****”}},”items”:[{“name”:”*********”,”amount”:175,”reference”:”1446″,”quantity”:1,”type”:”sku”,”item_uri”:”https:\/\/www.*********.com.au\/product\/*********\/”,”product_code”:””}],”cart_reference”:”25970″},”config”:{“redirect_uri”:”https:\/\/www.*********.com.au\/index.php?p=zipmoneypayment&route=charge&action_type=create&iframe=1″},”created”:”2021-02-06T05:49:27+00:00″,”state”:”created”,”metadata”:[]}
    02-06-2021 @ 15:49:28 – 25971
    02-06-2021 @ 15:49:28 – Checkout session started
    02-06-2021 @ 15:49:28 – total:175.00
    02-06-2021 @ 15:49:28 – shipping:0
    02-06-2021 @ 15:49:28 – items:175
    02-06-2021 @ 15:49:28 – Sending checkout request to API
    02-06-2021 @ 15:49:28 – {“type”:”standard”,”shopper”:{“first_name”:”****”,”last_name”:”****”,”phone”:”****”,”email”:”*********@*********.com”,”billing_address”:{“line1″:”****”,”line2″:”****”,”city”:”*********”,”state”:”*********”,”postal_code”:”****”,”country”:”AU”,”first_name”:”****”,”last_name”:”****”}},”order”:{“reference”:”25971″,”amount”:”175.00″,”currency”:”AUD”,”shipping”:{“pickup”:false,”address”:{“line1″:”****”,”line2″:”****”,”city”:”*********”,”state”:”*********”,”postal_code”:”****”,”country”:”AU”,”first_name”:”****”,”last_name”:”****”}},”items”:[{“name”:”*********”,”amount”:175,”reference”:”1446″,”quantity”:1,”type”:”sku”,”item_uri”:”https:\/\/www.*********.com.au\/product\/*********\/”,”product_code”:””}],”cart_reference”:”25971″},”metadata”:{“platform”:”Woocommerce”,”platform_version”:”4.9.2″,”plugin”:”zip woocommerce plugin”,”plugin_version”:”2.3.1″},”config”:{“redirect_uri”:”https:\/\/www.*********.com.au\/index.php?p=zipmoneypayment&route=charge&action_type=create&iframe=1″}}
    02-06-2021 @ 15:49:28 – Return from checkout API
    02-06-2021 @ 15:49:28 – {“id”:”au-co_mhmtBJ8haqwzXKVlVXAAr2″,”uri”:”https:\/\/zip.co\/customer\/account-selector?co=co_*********&m=********{“first_name”:”****”,”last_name”:”****”,”phone”:”****”,”email”:”*********@*********.com”,”birth_date”:”0001-01-01T00:00:00+00:00″,”gender”:”Other”,”statistics”:{“sales_total_count”:0,”sales_total_amount”:0,”sales_avg_amount”:0,”sales_max_amount”:0,”refunds_total_amount”:0,”previous_chargeback”:false,”currency”:”AUD”},”billing_address”:{“line1″:”****”,”line2″:”****”,”city”:”*********”,”state”:”*********”,”postal_code”:”****”,”country”:”AU”,”first_name”:”****”,”last_name”:”****”}},”order”:{“reference”:”25971″,”amount”:175,”currency”:”AUD”,”shipping”:{“pickup”:false,”address”:{“line1″:”****”,”line2″:”****”,”city”:”*********”,”state”:”*********”,”postal_code”:”****”,”country”:”AU”,”first_name”:”****”,”last_name”:”****”}},”items”:[{“name”:”*********”,”amount”:175,”reference”:”1446″,”quantity”:1,”type”:”sku”,”item_uri”:”https:\/\/www.*********.com.au\/product\/*********\/”,”product_code”:””}],”cart_reference”:”25971″},”config”:{“redirect_uri”:”https:\/\/www.*********.com.au\/index.php?p=zipmoneypayment&route=charge&action_type=create&iframe=1″},”created”:”2021-02-06T05:49:28+00:00″,”state”:”created”,”metadata”:[]}
    02-06-2021 @ 15:50:11 – Query vars:Array
    (
    [p] => zipmoneypayment
    [route] => charge
    [action_type] => create
    )

    02-06-2021 @ 15:50:11 – Charge process started
    02-06-2021 @ 15:50:11 – Charge process after controller
    02-06-2021 @ 15:50:11 – CheckoutId: au-co_******************, Result: approved
    02-06-2021 @ 15:50:11 – total:175.00
    02-06-2021 @ 15:50:11 – shipping:0
    02-06-2021 @ 15:50:11 – items:0
    02-06-2021 @ 15:50:11 – Charge request sent for order (25971)
    02-06-2021 @ 15:50:30 – Charged successfull with id (au-ch_******************)
    02-06-2021 @ 15:50:30 – Charge process after controller

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Zip Co Limited

    (@zipmoney)

    Hi @sanziam

    From the log I could see the issue is about the CheckoutId reference, as we launching globally all checkout ID from different region or API will be prefixed like ‘au-‘ or ‘us-‘ or ‘nz-‘ but somehow the previous order saved in database with a different checkout ID for example AU will be “co_xxxxxx”

    02-06-2021 @ 15:50:11 – CheckoutId: au-co_******************, Result: approved
    02-06-2021 @ 15:50:11 – total:175.00
    02-06-2021 @ 15:50:11 – shipping:0
    02-06-2021 @ 15:50:11 – items:0

    from the log we could see that the original order is partially loaded, only total value is correct but the items total value is 0, indicated the order is not being saved completely when the checkout happened.

    You could load the order back like this case $order = new WC_Order(25971);
    if the order is not completely saved in database then it will missing information.

    From the log

    02-06-2021 @ 15:50:11 – Charge request sent for order (25971)
    02-06-2021 @ 15:50:30 – Charged successfull with id (au-ch_******************)
    02-06-2021 @ 15:50:30 – Charge process after controller

    You are getting success charge so payment is success with charge ID au-ch_xxxxxx which indicate the pay in Zip end is success too, the issue you had I think is something during save order to database might be broken, not really related to Zip plugin, but might be something changed like reference key prefix “au-” it will be good to check with any other plugin that monitor order place events.

    Hope this helps

    Plugin Author Zip Co Limited

    (@zipmoney)

    From the log, it looks like your system place order twice:
    02-06-2021 @ 15:49:27 – 25970
    02-06-2021 @ 15:49:27 – Checkout session started
    02-06-2021 @ 15:49:27 – total:175.00
    User place order ID 25970 with order total $175
    then
    02-06-2021 @ 15:49:28 – 25971
    02-06-2021 @ 15:49:28 – Checkout session started
    02-06-2021 @ 15:49:28 – total:175.00
    Just 1 second later place order ID 25971 with same total $175
    But the second order do not have full customer information or order item information, I think the issue is more on the checkout side not related to the plugin as we could not prevent double place order.

    Thread Starter sanziam

    (@sanziam)

    Thanks so much Zip Co ??

    Updated the plugin and all further orders have gone through fine, seemed just that 1st order was doubled up which caused no details to show up. Very strange but now working as it should. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No order details in emails or dashboard’ is closed to new replies.