Welcome, Guest. Please login or register.
Login with username, password and session length


It's a release candidate! VirtueMart 2.0 RC - the next generation VirtueMart - is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: [1]   Go Down
Print
Author Topic: Pyment Method  (Read 604 times)
elm10
Newbie
*
Posts: 1


« on: February 20, 2011, 23:06:37 PM »

Hallo

I want to send data to a payment company that does not exist in VirtueMart.  I used 2Checkout and it work fine except that it does not transfer the transaction data like price, describtion, contact details to the payment company.  The sample code that this company supply:

<?php
            $pvtKey = "my_private_webcash_supplied_key";  //should be securely stored in a database, not like this
            $tx_id = time();  //gives milliseconds since 01-01-1970, however any unique reference number would do
            $unique_merchant_key = MD5($tx_id . $pvtKey);
            ?>

            <form action="https://www.webcash.co.za/pay" method="post">
                <input name="description" type="text" value="your goods description"/>
                <input name="amount" type="text" value="240.00"/>
                <input name="merchantIdent" type="hidden" value="1234"/>
                <input name="email" type="hidden" value="customer@email.com"/>
                <input name="transaction" type="hidden" value="<?=$tx_id>"/>
                <input name="merchantKey" type="hidden" value="<?=$unique_merchant_key>"/>
                <input name="submit" type="submit" value="Submit"/>
            </form>


Can anyone assist me in resolving this problem?

Logged
Pages: [1]   Go Up
Print
Jump to: