• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

paypal problem

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a jsp for which i have to encrypt and send information to paypal site. and it should take some dynamic values such as amount.

my code in jsp is.


form action="https://www.paypal.com/cgi-bin/webscr" method="post"
input type="hidden" name="cmd" value="_xclick"
input type="hidden" name="image_url" value="http://ABCDcom/images/Board40.gif"
input type="hidden" name="business" value="dabcd_1204260637_biz@ABCD.com"
input type="hidden" name="return" value="http://localhost:8080/ABCD/"
input type="hidden" name="item_name" value="Abcd web site"
input type="hidden" name="item_number" value="10098"
input type="hidden" name="amount" value='<%=pform.getTotal() %>'
input type="hidden" name="no_shipping" value="1"
input type="hidden" name="cancel_return" value="http://localhost:8080/ABCD/"
input type="hidden" name="no_note" value="1"
/form

here pform.getTotal is the dynamic amount. which should encrypt always.
please send me steps to how to encrypt
thanks in advance
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm sure PayPal supports HTTPS; have you tried that?
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ofcourse PayPal transaction based on SSL , as you can call PayPal action as ..



So no need to encrypt the amount attribute.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic