Hello everyone.
We received an order today. The client paid by CC through Square which generated this weird email.
PHP Code:
Jan-09-2018 12:41:20
=================================
Error Dump: stdClass Object
(
[errors] => Array
(
[0] => stdClass Object
(
[category] => PAYMENT_METHOD_ERROR
[code] => CARD_DECLINED
[detail] => Card declined.
)
)
)
Transaction ID assigned:
Sent to Square: Array
(
[idempotency_key] => XXXXXXXXXX
[card_nonce] => XXXXXXXXXXXXXXXX
[amount_money] => Array
(
[amount] => 91800
[currency] => USD
)
[delay_capture] => 1
[reference_id] => XXXXXXXXXXXXXXXXXX
[note] => By Valenti Organics
[customer_id] => 12
[buyer_email_address] => XXXXXXXXXXXXXXXX
[billing_address] => Array
(
[address_line] => XXXXXXXXXXXXXXXX
[address_line_2] =>
[locality] => ##########
[administrative_district_level_1] => ##########
[postal_code] => 00000
[country] => AE
[last_name] => salim
[organization] =>
)
[shipping_address] => Array
(
[address_line] => XXXXXXXXXXXXXXXXX
[address_line_2] =>
[locality] => ##########
[administrative_district_level_1] => ##########
[postal_code] => 00000
[country] => AE
[last_name] => salim
[organization] =>
)
)
Results Received back from Square: Array (
[402] => [HTTP/1.1 402 Payment Required] {"errors":[{"category":"PAYMENT_METHOD_ERROR","code":"CARD_DECLINED","detail":"Card declined."}]}
)
The amount in US $862.05 yet the amount in the email is wrong.
The order seems to have gone through just fine by the way.
Any ideas why this email was generated??
Bookmarks