Support » Plugin: WooCommerce Payments » Error in track order API request

  • Resolved Team WooFunnels

    (@teamwoofunnels)


    Hi there,

    We are developers of buildwoofunnnels and we are in the process of building our one-click upsell feature compatible with WooCommerce payments.
    While we are able to run transactions smoothly but we are getting errors in this API call.

    2021-08-19T09:52:53+00:00 INFO REQUEST POST https://public-api.wordpress.com/wpcom/v2/sites/%s/wcpay/tracking/order
    2021-08-19T09:52:53+00:00 INFO BODY: array (
      'test_mode' => true,
      'order_data' => 
      array (
        'id' => 558,
        'parent_id' => 0,
        'status' => 'processing',
        'currency' => 'USD',
        'version' => '5.5.2',
        'prices_include_tax' => false,
        'date_created' => 'WC_DateTime()',
        'date_modified' => 'WC_DateTime()',
        'discount_total' => '0',
        'discount_tax' => '0',
        'shipping_total' => '0',
        'shipping_tax' => '0',
        'cart_tax' => '0',
        'total' => '268.68',
        'total_tax' => '0',
        'customer_id' => 1,
        'order_key' => 'wc_order_EuyuNUvumEsN6',
        'billing' => 
        array (
          'first_name' => 'sandeep',
          'last_name' => 'soni',
          'company' => '',
          'address_1' => 'Test',
          'address_2' => '',
          'city' => '(redacted)',
          'state' => '(redacted)',
          'postcode' => '110059',
          'country' => '(redacted)',
          'email' => '(redacted)',
          'phone' => '(redacted)',
        ),
        'shipping' => 
        array (
          'first_name' => '',
          'last_name' => '',
          'company' => '',
          'address_1' => '',
          'address_2' => '',
          'city' => '(redacted)',
          'state' => '(redacted)',
          'postcode' => '',
          'country' => '(redacted)',
        ),
        'payment_method' => 'woocommerce_payments',
        'payment_method_title' => 'Credit card / debit card',
        'transaction_id' => 'pi_3JQ7vN2ElRIOsNRG1Uh5cQG4',
        'customer_ip_address' => '103.61.252.160',
        'customer_user_agent' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36',
        'created_via' => 'checkout',
        'customer_note' => '',
        'date_completed' => NULL,
        'date_paid' => 'WC_DateTime()',
        'cart_hash' => '9ce3bf3d434ba258889e3da0f364fa91',
        'number' => '558',
        'meta_data' => 
        array (
          0 => 'WC_Meta_Data()',
          1 => 'WC_Meta_Data()',
          2 => 'WC_Meta_Data()',
          3 => 'WC_Meta_Data()',
          4 => 'WC_Meta_Data()',
          5 => 'WC_Meta_Data()',
          6 => 'WC_Meta_Data()',
          7 => 'WC_Meta_Data()',
          8 => 'WC_Meta_Data()',
          9 => 'WC_Meta_Data()',
          10 => 'WC_Meta_Data()',
        ),
        'line_items' => 
        array (
          603 => 'WC_Order_Item_Product()',
        ),
        'tax_lines' => 
        array (
        ),
        'shipping_lines' => 
        array (
        ),
        'fee_lines' => 
        array (
        ),
        'coupon_lines' => 
        array (
        ),
        '_payment_method_id' => 'pm_1JOMFZ2ElRIOsNRGEPxWj1wR',
        '_stripe_customer_id' => 'cus_K2R7lJbV5McVKU',
      ),
      'update' => false,
    )
    2021-08-19T09:52:54+00:00 INFO RESPONSE: array (
      'result' => 'error',
    )

    Please check why it’s failing for our setup and it would be great if you could explain what impact this API call has on payment flow.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.