Comments (1)
Hi JavaHelper,
actually your request is Successful but transaction is declined as the bank credentials you are using must not be valid, the response is :
<?xml version="1.0" encoding="UTF-8"?>
<createTransactionResponse xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<messages>
<resultCode>Ok</resultCode>
<message>
<code>I00001</code>
<text>Successful.</text>
</message>
</messages>
<transactionResponse>
<responseCode>2</responseCode>
<authCode />
<avsResultCode>P</avsResultCode>
<cvvResultCode />
<cavvResultCode />
<transId>2245347885</transId>
<refTransID />
<transHash>AC69AEE7FE11230BDA77FE9B57C81013</transHash>
<testRequest>0</testRequest>
<accountNumber>XXXX5678</accountNumber>
<accountType>eCheck</accountType>
<errors>
<error>
<errorCode>2</errorCode>
<errorText>This transaction has been declined.</errorText>
</error>
</errors>
</transactionResponse>
</createTransactionResponse>
you can add these two lines and see you response in the code itself:
System.out.println(result.getErrors().getError().get(0).getErrorCode());
System.out.println(result.getErrors().getError().get(0).getErrorText());
from sdk-java.
Related Issues (20)
- Environment not set. Set environment using setter or use overloaded method to pass appropriate environment HOT 1
- SDK should not pull non-API logging dependencies
- `Logging Sensitive Data` section is outdated in README.md
- "Defaulting to non-proxy environment" log warning HOT 4
- NPE is thrown when retrieving default customer payment profile
- Highest Version of JDK
- error: package javax.xml.bind.annotation does not exist HOT 4
- How to use sdk-java in android. HOT 2
- Inconsistent types for fields shared between subscription and transaction
- Ampersands in URLs break the Accept Hosted Payment Form HOT 1
- Cannot found any dependency for create Customer Profiles in Android Studio?
- How to Convert to a Gradle Build?
- Junit being pulled in as transitive dependency in compile scope
- CVE-2021-44228: Upgrade log4j to 2.16.0 HOT 1
- Using SDK with scala HOT 1
- Log4j CVE-2021-44832 Vulnerability HOT 1
- Solved
- The credit card number is invalid
- ApplePay attempt: Unable to decrypt data. HOT 2
- Apple Pay: Opaque data can only be used with ECOM market type. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk-java.