一定很简单,但我正在拔头发。当我打电话给这个
$data = [
'amount' => '50.00',
'paymentMethodNonce' => 'fake-processor-declined-mastercard-nonce',
'options' => [
'submitForSettlement' => true
]
];
$result = Braintree_Transaction::sale($data);
我从布伦特里(Braintree)获得“成功”。我如何获得拒绝的卡?
因此,事实证明,Braintree_Transaction::sale
使用伪随机数的方法并不是您的方法。您用金额来做。您将金额与要产生的错误代码相匹配。因此,一定数量的2001.00
会得到的响应"Insufficient Funds"
。可以在此处找到错误代码列表
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句