我正在使用 mindbody api 进行付款,当我添加信用卡详细信息时,付款成功,但是当我使用存储(现有)卡进行付款时,出现错误:
Card Authorization Failed mb.Core.BLL.Transaction failed validation Could not determine the type of credit card.
我的代码是:
$shoppingCart = array(
'ClientID' => $client_id,
'Test' => false,
'InStore' => true, //add by NIK
'CartItems' => array(
'CartItem' => array(
'Quantity' => $product_qty,
'Item' => new SoapVar(
array('ID' => $product_id), SOAP_ENC_ARRAY, 'Service', 'http://clients.mindbodyonline.com/api/0_5'
),
'DiscountAmount' => 0
)
),
'Payments' => array(
'PaymentInfo' => new SoapVar(
array(
'LastFour'=>$clientCreditCard->LastFour,
'Amount'=>round($OnlinePrice, 2),
),
SOAP_ENC_ARRAY,
'StoredCardInfo',
'http://clients.mindbodyonline.com/api/0_5'
),
)
);
请给出任何解决方案,我应该怎么做或发送额外的参数。谢谢!