ecommerce - use server side code for hidden values in an html form

Posted by bsarmi on Stack Overflow See other posts from Stack Overflow or by bsarmi
Published on 2010-05-05T23:02:01Z Indexed on 2010/05/05 23:08 UTC
Read the original article Hit count: 159

Filed under:
|
|
|

I'm trying to learn how to implement a donation form on a website using virtual merchant. The html code from their developer manual goes like this:

<form action="https://www.myvirtualmerchant.com/VirtualMerchant/process.do" method="POST"> Your Total: $5.00 <br/> <input type="hidden" name="ssl_amount" value="5.00"> <br/> <input type="hidden" name="ssl_merchant_id" value="my_virtualmerchant_ID"> <input type="hidden" name="ssl_pin" value="my_PIN"> <input type="hidden" name="ssl_transaction_type" value="ccsale"> <input type="hidden" name="ssl_show_form" value="false"> Credit Card Number: <input type="text" name="ssl_card_number"> <br/> Expiration Date (MMYY): <input type="text" name="ssl_exp_date" size="4"> <br/> <br/> <input type="submit" value="Continue"> </form>

I have that in an html file and it works fine, but they suggest that the merchant data (the input type="hidden" values) should be in a Server Side Code. I was looking at cURL but it'a all very new to me and I spent a couple of hours trying to find some guide or some sample code on how to accomplish that. Any suggestions or help is greatly appreciated. Thanks!

© Stack Overflow or respective owner

Related posts about ecommerce

Related posts about php