使用 square up php 处理付款的交易后的成功响应是什么
what is the success response after a transaction with square up php process payment
我在交易后收到此回复,但我无法找到成功或失败的回复,而且我不知道流程,如果我错了请纠正我,
我们在 Square up 上有一个沙盒帐户我们有一个电子商务网站。
在提交带有公告的表格后,使用立即购买选项存储
我们移动到处理付款文件的更正位置 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] =>
)
)
如果您收到一笔交易,那么您的请求就成功了。如果返回错误,则说明您的请求不成功。
您将获得重定向 URL
的交易 ID return
我在交易后收到此回复,但我无法找到成功或失败的回复,而且我不知道流程,如果我错了请纠正我,
我们在 Square up 上有一个沙盒帐户我们有一个电子商务网站。
在提交带有公告的表格后,使用立即购买选项存储 我们移动到处理付款文件的更正位置 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] =>
)
)
如果您收到一笔交易,那么您的请求就成功了。如果返回错误,则说明您的请求不成功。
您将获得重定向 URL
的交易 ID return