我想检索所有客户档案的详细信息1-客户名字2-姓氏cardit卡号以及所有相关的客户数据我在php中使用authorized.net提供的示例代码我正在使用从authorized.net检索所有数据的Get Customer Payment Profile()
函数但它给了我
GetCustomerPaymentProfile SUCCESS: Customer Payment Profile Id: 33211899
不是全部细节有人能给建议吗
PaymentProfileid
。
因此,要获得所有细节,您需要回声所有细节
只需在获得$respone
对象后修改这些行,它就会为您提供所需的详细信息。
if(($response != null)){
if ($response->getMessages()->getResultCode() == "Ok")
{
echo "GetCustomerPaymentProfile SUCCESS: " . "'n";
echo "Customer Payment Profile Id: " . $response->getPaymentProfile()->getCustomerPaymentProfileId() . "'n";
echo "Credit Card Number: " . $response->getPaymentProfile()->getPayment()->getCreditCard()->getCardNumber() . "'n";
echo "Credit Card Number: " . $response->getPaymentProfile()->getBillTo()->getFirstName() . "'n";
echo "Credit Card Number: " . $response->getPaymentProfile()->getBillTo()->getLastName() . "'n";
}
else
{
echo "GetCustomerPaymentProfile ERROR : Invalid response'n";
echo "Response : " . $response->getMessages()->getMessage()[0]->getCode() . " " .$response->getMessages()->getMessage()[0]->getText() . "'n";
}
}
else{
echo "NULL Response Error";
}