问题描述
我使用 SQUARE 作为我的支付网关,但我遇到了无法使用交易发布交易描述的问题。在 Square 仪表板中,它显示自定义金额。 有什么方法可以将买家名称或任何参数发送到交易,以便我可以在我的方形仪表板中识别交易。这是从 Card 到 Square 收取付款的代码片段
$access_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$api_config = new \SquareConnect\Configuration();
$api_config->setHost("https://connect.squareup.com");
$api_config->setAccesstoken($access_token);
$api_client = new \SquareConnect\apiclient($api_config);
$payments_api = new \SquareConnect\Api\PaymentsApi($api_client);
$request_body = array (
"source_id" => $nonce,"amount_money" => array (
"amount" => $amount*100,"currency" => "AUD"
),"idempotency_key" => uniqid()
);
我尝试添加 "cardholder_name" => $firstname. " ".$lastname,
AND "buyer_email_addres" => $email,
但它没有出现在 Square Dashboard 中..
$request_body = array (
"source_id" => $nonce,"amount_money" => array (
"amount" => $TPRICE * 100,"cardholder_name" => $firstname. " ".$lastname,"buyer_email_addres" => $email,"currency" => "AUD"
),"idempotency_key" => uniqid()
);
但我还是失败了。
希望有人能解决我的问题
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)