Hello Guys.
I'm using Payment gateway in our Spring Application.
let you know what I have done.
1: I created two account in
https://developer.paypal.com/
2: and then we got two email id *
[email protected] and *
[email protected]
3: Now for Integration We added paypal configuration in Web.xml like below:
<context-param>
<param-name>posturl</param-name>
<param-value>https://www.sandbox.paypal.com/cgi-bin/webscr</param-value>
</context-param>
<context-param>
<param-name>cmd</param-name>
<param-value>_donations</param-value>
</context-param>
<context-param>
<param-name>business</param-name>
<param-value>[email protected]</param-value>
</context-param>
<context-param>
<param-name>password</param-name>
<param-value>TL45FT5EQWYGLB</param-value>
</context-param>
<context-param>
<param-name>signature</param-name>
<param-value>AFcWxV21C7fd0v3bYasdadsadORY4DvFa</param-value>
</context-param>
<context-param>
<param-name>returnurl</param-name>
<param-value>http://localhost:8080/paypal/success</param-value>
</context-param>
<context-param>
<param-name>cancelurl</param-name>
<param-value>http://localhost:8080/paypal/cancel</param-value>
</context-param>
4: Now I made donation form in
JSP page
<form action="${initParam['posturl']}" method="post">
<!-- Saved buttons use the "secure click" command -->
<input type="hidden" name="cmd" value="${initParam['cmd']}"/>
<input type="hidden" name="business" value="${initParam['business']}"/>
<input type="hidden" name="password" value="${initParam['password']}"/>
<input type="hidden" name="cert_id" value="${initParam['signature']}" />
<!-- Saved buttons are identified by their button IDs -->
<input type="hidden" name="amount" value="30"/>
<!-- Saved buttons display an appropriate button image. -->
<input type="hidden" name="cancel_return" value="${initParam['cancelurl']}" />
<input type="hidden" name="return" value="${initParam['returnurl']}" />
<input type="submit" name="Donate" value="Donation" />
</form>
5 : then When I'm donating money after login with palpay then we are getting receipt in Paypal page , but I want my page will directly redirect to my Success page with Transaction value.
but It's not happening like that. Please favour me.
Thanks
AJ