fake-gateway-rejected-fraud-nonce results in random accepted/failing transaction
See original GitHub issueHi braintree-team,
I just stumbled upon a weird issue. When I use fake-gateway-rejected-fraud-nonce
for creating a transaction via the following snippet, I sometimes receive an authorized transaction and sometimes the transaction fails as it should, which breaks my tests.
Do you have any clue why this happens?
Thanks a lot! Bastian
return new Promise( (resolve, reject) => {
gateway.transaction.sale({
amount: 25.14,
paymentMethodNonce: 'fake-gateway-rejected-fraud-nonce',
options: { submitForSettlement: false }
}, (err, res) => {
if (err) {
log.error(`Could not create transaction via braintree.`, {paymentMethodNonce, amount, options});
reject(err);
} else {
log.debug(`Payment transation via braintree successful.`, res);
resolve(res);
}
})
})
}
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am, but I won’t be using braintree again. My tests break every now and then but that’s not a concern really.
The reason for the Gateway rejection when using the
fake-gateway-rejected-fraud-nonce
is different than when using the amount 5001.00, as one is to replicate a rejection due to fraud rules, and the other an edge case with application status.There is no need to use both to generate a Gateway rejected transaction, however the
fake-gateway-rejected-fraud-nonce
will not reject as expected, unless you have fraud tools enabled on your account.If you’re having problems please feel free to open a new issue or reach out to support so we can take a look.