square API 的以下输出是什么?

What is the following output from square API?

我是这个 Square 的新手 API,我不确定下面的输出是什么。我在沙盒中制作了 Square API 卡片并开始工作。当我 运行 一张卡片时,我从过程中得到以下输出 - card.php.

"Thank you for your payment"以上的比例是多少?这是打印出来的错误还是仅供参考?如果它只是信息性的,我可以在代码中将其注释掉,还是有其他方法可以不显示?我无法在 Square 的网站或 Google 上找到任何关于此的文档。

我使用了来自GitHub

的文件

谢谢。

SquareConnect\Model\ChargeResponse Object
(
    [errors:protected] => 
    [transaction:protected] => SquareConnect\Model\Transaction Object
        (
            [id:protected] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
            [location_id:protected] => xxxxxxxxxxxxxxxxxxxxxxxxxxxx
            [created_at:protected] => 2017-04-04T15:32:45Z
            [tenders:protected] => Array
                (
                    [0] => SquareConnect\Model\Tender Object
                        (
                            [id:protected] => xxxxxxxxxxxxxxxxxxxxxxxxxxx
                            [location_id:protected] => xxxxxxxxxxxxxxxxxxxxx
                            [transaction_id:protected] => xxxxxxxxxxxxxxxxxxxxxxxxxx
                            [created_at:protected] => 2017-04-04T15:32:45Z
                            [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] => VISA
                                            [last_4:protected] => xxxx
                                            [exp_month:protected] => 
                                            [exp_year:protected] => 
                                            [cardholder_name:protected] => 
                                            [billing_address: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] => 
        )

)

Thank you for your payment.

Amount: .00
Card: VISA XXXX

这只是信息,可帮助您了解从 API 返回的内容。费用已成功处理。如果删除 print_r($response) 行,它将被隐藏。