A failed transaction - It is showing as failed on our end/in InfusionSoft - but in the API that sent this data to our webhook (invoice.payment.add), it’s shown as PAID - There’s no indication of this being a failed transaction.
How do I detect a failed transaction ?
[id] => xxx
[test] =>
[amount] => 397
[currency] =>
[gateway] => AUTHORIZE
[type] => CAPTURE
[status] => Successful Transaction
[errors] =>
[orders] => Array
(
[0] => stdClass Object
(
[id] => xxx
[title] => DFYMR Upsell
[status] => PAID
[recurring] =>
[total] => 397
[contact] => stdClass Object
(
[id] => 2772201
[email] => xxx@xxx.com
[first_name] => xxx
[last_name] => xxx
[company_name] =>
[job_title] =>
)
[notes] =>
[terms] =>
[creation_date] => 2019-03-27T16:41:07.000Z
[modification_date] => 2019-03-27T19:13:47.000Z
[order_date] => 2019-03-27T16:41:07.000Z
[lead_affiliate_id] => 0
[sales_affiliate_id] => 0
[total_paid] => 397
[total_due] => 397
[shipping_information] => stdClass Object
(
[id] => xxx
[first_name] => xxx
[middle_name] =>
[last_name] => xxx
[company] =>
[phone] => xxx
[street1] => null
[street2] => null
[city] => null
[state] => null
[zip] => null
[country] => null
)
[refund_total] => 0
[allow_payment] =>
[order_items] => Array
(
[0] => stdClass Object
(
[id] => 497113
[name] => xxx
[description] => xxx
[type] => Product
[notes] =>
[quantity] => 1
[cost] => 0
[price] => 397
[discount] =>
[product] => stdClass Object
(
[id] => 370
[name] => xxx
[sku] =>
[description] =>
[shippable] =>
[taxable] =>
)
)
)
)
)
[contact_id] => xxx
[transaction_date] => 2019-03-27T12:36:11.000-04:00
[gateway_account_name] => xxx
[order_ids] => 488683
[collection_method] => PAYMENT_GATEWAY
[payment_id] => 5127385