我在交易后收到此回复但我无法找到成功或失败的回复,我也不知道流程如果我错了请纠正我,
我们有一个沙盒帐户,我们有一个电子商务网站。
使用nounce和提交表单后立即购买选项 更正位置ID我们被移动到处理付款文件。
显示交易后的响应。
响应
SquareConnect\Model\ChargeResponse Object
(
[errors:protected] =>
[transaction:protected] => SquareConnect\Model\Transaction Object
(
[id:protected] => 1d034209-12cf-5d13-72f4-62247bb49132
[location_id:protected] => CBASEB5G76QcIpEWB0w38Mi2vWUgAQ
[created_at:protected] => 2017-07-27T05:45:34Z
[tenders:protected] => Array
(
[0] => SquareConnect\Model\Tender Object
(
[id:protected] => 675e208b-caf3-5f11-7482-1eacff13da64
[location_id:protected] => CBASEB5G76QcIpEWB0w38Mi2vWUgAQ
[transaction_id:protected] => 1d034209-12cf-5d13-72f4-62247bb49132
[created_at:protected] => 2017-07-27T05:45:34Z
[note:protected] => Online Transaction
[amount_money:protected] => SquareConnect\Model\Money Object
(
[amount:protected] => 100
[currency:protected] => USD
)
[processing_fee_money:protected] =>
[customer_id:protected] =>
[type:protected] => CARD
[card_details:protected] => SquareConnect\Model\TenderCardDetails Object
(
[status:protected] => CAPTURED
[card:protected] => SquareConnect\Model\Card Object
(
[id:protected] =>
[card_brand:protected] => DISCOVER
[last_4:protected] => 9697
[exp_month:protected] =>
[exp_year:protected] =>
[cardholder_name:protected] =>
[billing_address:protected] =>
[fingerprint:protected] =>
)
[entry_method:protected] => KEYED
)
[cash_details:protected] =>
)
)
[refunds:protected] =>
[reference_id:protected] =>
[product:protected] => EXTERNAL_API
[client_id:protected] =>
[order:protected] =>
[shipping_address:protected] =>
)
)
答案 0 :(得分:2)
如果您收到交易,那么您的请求就会成功。如果您收到错误,则表示您的请求未成功。