2 posts / 0 new
Last post
bozgoldinc20345
Payeezy Java Client FDToken Payment returns 404 status

Hi there,

I am using Payeezy Java Client library, when I try to call "doPrimaryTransaction(..)" I get PayeezyResponse object with statusCode = 404 and responseBody = "Error 404: SRVE0295E: Error reported: 404".

****************
private Properties payeezyProperties() {
Properties properties = new Properties();
properties.setProperty("apikey", environment.getProperty("apikey"));
properties.setProperty("pzsecret", environment.getProperty("pzsecret"));
properties.setProperty("token", environment.getProperty("token"));
properties.setProperty("url", environment.getProperty("url"));
properties.setProperty("js_security_key", environment.getProperty("js_security_key"));
properties.setProperty("ta_token", environment.getProperty("ta_token"));
properties.setProperty("currency", environment.getProperty("currency"));

return properties;
}

@Bean
public PayeezyClientHelper payeezyClientHelper() {
return new PayeezyClientHelper(payeezyProperties());
}

****************

TransactionRequest transactionRequest = new TransactionRequest();
transactionRequest.setAmount(configuration.getMembershipFeeAmount().multiply(new BigDecimal(100)).toString());
transactionRequest.setCurrency(environment.getProperty("currency"));
transactionRequest.setPaymentMethod(PaymentMethod.TOKEN.getValue());
transactionRequest.setTransactionType(TransactionType.PURCHASE.name().toLowerCase());

Token token = new Token();
token.setTokenType(TokenType.FDToken.toString());

Transarmor transarmor = new Transarmor();
transarmor.setType(form.getCardtype());
transarmor.setValue(form.getToken());
transarmor.setName(form.getCardholder());
transarmor.setExpiryDt(form.getExpire());

token.setTokenData(transarmor);
transactionRequest.setToken(token);

PayeezyResponse response = payeezyClientHelper.doPrimaryTransaction(transactionRequest);

******************

I will be thankful if you can help me to solve the issue.


christopherlord730
Re: Payeezy Java Client FDToken Payment returns 404 status

Please provide the nonce or authorization header values so we can examine our logs.