Comments (11)
Yes. I got a temporary fix:
In
src/main/java/com/realexpayments/hpp/sdk/domain/HppRequest.java
Just before line 40:
public class HppRequest {add the following line:
@JsonInclude(Include.NON_NULL)
You'll have to import additional dependencies. This should stop the JSON being produced with
NULL or blank values.
@mintraSpencerSyntec Hope it helps. Please add a +1 to this issue if you think its helpful.
from rxp-hpp-java.
@ebguilbert
Thanks. That resolves 1 out of my 3 issues with Realex HPP. Will upvote your reply.
from rxp-hpp-java.
Need Help guys please !
should i set merchant response url in addPostResponse function in php i need to send merchant response to db so i created post service. and what does merchant_response_url attr do
from rxp-hpp-java.
@ebguilbert
Hi.
Do you find a solution for this issue? I override all the blank values with some relevant values so that the lightbox popup stops complaining about "Invalid characters", but now I've got "508 Incorrect hash" error instead.
Not sure how to solve it.
Thanks
from rxp-hpp-java.
@mintraSpencerSyntec, could you please let us know what the other two issues are?
from rxp-hpp-java.
Thanks very much for asking @ebguilbert
The other 2 issues were "Incorrect hash" and "Card can't be used for this amount" errors. But these 2 seem to be resolved by the same fix you provided above.
from rxp-hpp-java.
@rxp-developers is there an eta for this fix to be released?
from rxp-hpp-java.
@fabiofalci, could you please provide some details on the Java environment you are encountering this issue in, what version etc. It's not something I've been able to replicate.
from rxp-hpp-java.
Running on sandbox.
$ java -version
openjdk version "1.8.0_144"
OpenJDK Runtime Environment (build 1.8.0_144-b01)
OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)
<dependency>
<groupId>com.realexpayments.hpp.sdk</groupId>
<artifactId>rxp-hpp-java</artifactId>
<version>1.3</version>
</dependency>
@rxp-developers at first glance it looks very similar to @ebguilbert issue.
If I run like this example:
HppRequest hppRequest = new HppRequest()
.addMerchantId("*******")
.addAccount("internet")
.addAmount(1001)
.addCurrency("GBP")
.addAutoSettleFlag(false);
RealexHpp realexHpp = new RealexHpp("*****");
In the UI, when trying to open the lightbox, I get an error like this (the invalid field varies in each call):
<div id="error_code">508</div>
<div id="error_message">Invalid data in the OFFER_SAVE_CARD field. Please contact the merchant.</div>
In the generated json, all those invalid fields have null value.
{
...
COMMENT1:null,COMMENT2:null,
RETURN_TSS:null,SHIPPING_CODE:null,
SHIPPING_CO:null,BILLING_CODE:null,BILLING_CO:null,
CUST_NUM:null,VAR_REF:null,PROD_ID:null,
HPP_LANG:null,CARD_PAYMENT_BUTTON:null,
CARD_STORAGE_ENABLE:null,
OFFER_SAVE_CARD:null,PAYER_REF:null,PMT_REF:null,
PAYER_EXIST:null,VALIDATE_CARD_ONLY:null,
DCC_ENABLE:null,HPP_FRAUDFILTER_MODE:T0ZG,
...
}
To work, I need to fill all of them, if I don't know what one field is for, I need to set empty string.
.addCardPaymentButtonText("")
.addVariableReference("")
.addCommentOne("")
.addCommentTwo("")
.addHppSelectStoredCard("")
Then it works.
from rxp-hpp-java.
@fabiofalci, thanks, have opened a Pull Request to get the fix included: #4
It will go through our release process so it should be out in a matter of days.
from rxp-hpp-java.
thanks
from rxp-hpp-java.
Related Issues (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 rxp-hpp-java.