-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ussage instructions issue: Declined transaction is considered successful #89
Comments
I spoke with Authorize.Net about this and the |
@vttoonses Yes, this issue requires only changes in documentation and "Hello World" sample, no need any changes in the code. I emailed to Authorize.Net with this and they confirmed that they will do some clarifications (changes) in the docs. |
Hi @shhavel, You can also use : http://developer.authorize.net/api/reference/dist/json/responseCodes.json Let us know if anything is not clear. |
@akankaria Thanks for updating example codes. transaction = Transaction.new(config['api_login_id'], config['api_transaction_key'], gateway: :sandbox)
request = CreateTransactionRequest.new
request.transactionRequest = TransactionRequestType.new()
request.transactionRequest.amount = 5
request.transactionRequest.payment = PaymentType.new
request.transactionRequest.payment.creditCard = CreditCardType.new('4242424242424242', '0220', '123')
request.transactionRequest.transactionType = TransactionTypeEnum::AuthCaptureTransaction
request.transactionRequest.billTo = CustomerAddressType.new("Firts name", "Last name")
response = transaction.create_transaction(request) Thanks |
Hi @shhavel, Customer payment profile comprises of payment details (creditcard, bank account, etc.) and billTo information. |
@akankaria Thank you! |
This issue shouldn't be closed until the documentation is updated. This is a significant bug and has affected hundreds of our users. Both the README and the Hello World Example still do not mention to check the response code. |
Provided method to check transaction status to charge credit card is not accurate:
This is taken from Hello World example and README of the current gem.
Please check XML responses for different cases:
Successful charge:
Failure:
The transaction is declined:
So according to documentation both
successful transaction and declined transaction are considered as paid (
response.messages.resultCode == "Ok"
).More accurate would be to check
transactionResponse
message code:I think this is serious vulnerability issue.
Thanks
The text was updated successfully, but these errors were encountered: