这一定是很简单的事情,但我要把头发拔出来。当我把这叫做
$data = [
'amount' => '50.00',
'paymentMethodNonce' => 'fake-processor-declined-mastercard-nonce',
'options' => [
'submitForSettlement' => true
]
];
$result = Braintree_Transaction::sale($data);我从Braintree那里得到了“成功”。我怎么才能让卡被拒绝?
发布于 2016-03-05 17:30:42
因此,在Braintree_Transaction::sale方法中,使用假名并不是您所做的方法。你用那笔钱做的。将金额与要生成的错误代码相匹配。因此,一定数量的2001.00会得到"Insufficient Funds"的响应。错误代码列表可以找到这里。
https://stackoverflow.com/questions/35815590
复制相似问题