Reply
Member
Posts: 9
Registered: ‎01-07-2013

Direct Post: Relay Response url is not invoked

I'm  trying create a sample web application to try out the Direct Post example given on the web site. As this is a web application which I'm deploying on a glassfish server my relay_response url is looking something like this http://192.168.1.4:8080/AuthorizeNetTestIntegration/relay_response.jsp.

Once  I submit the form.jsp i get this response

"An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.

      This transaction has been approved.

It is advisable for you to contact the merchant to verify that you will receive the product or service."

Here is my form.jsp

<%
    String apiLoginId = "*************";
    String transactionKey = "****************";
    String relayResponseUrl = "http://192.168.1.4:8080/AuthorizeNetTestIntegration/relay_response.jsp";

    String amount = "1.99";
    Fingerprint fingerprint = Fingerprint.createFingerprint(
            apiLoginId,
            transactionKey,
            1234567890, // random sequence used for creating the finger print
            amount);

    long x_fp_sequence = fingerprint.getSequence();
    long x_fp_timestamp = fingerprint.getTimeStamp();
    String x_fp_hash = fingerprint.getFingerprintHash();
%>

Thanks,
Ravi Mukkavilli

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Direct Post: Relay Response url is not invoked

Relay Response Basics and Troubleshooting

 

Need an url that is not a localhost that can be access thru the web.