我已将authorize.net支付网关与我的php应用程序集成。 e.g。
如果有人成功进行了支付交易,那么我已将卡号和transactionid保存在我自己的数据库中,由authorize.net生成的响应 现在我的要求是使用该卡号和transactionid(如果需要)进行另一个支付捕获交易。使用PHP脚本。
我使用了一个url来通过authorize.net存在的卡号和transactionid进行退款。 e.g
$response = file_get_contents('https://secure.authorize.net/gateway/transact.dll?x_version=3.1&x_type=CREDIT&x_amount='.$amount.'&x_card_num='.$cardnumber.'&x_delim_data=TRUE&x_relay_response=FALSE&x_login=36h3RAmP5x&x_tran_key=6vtf765Y5mX238Mt&x_trans_id='.$transactionID);
在这个网址中
x_type=CREDIT
我使用了x_type=AUTH_CAPTURE
但是它会给出无效的卡号错误
请尽快通知我。
提前致谢