Author Topic: Pyment Method  (Read 3960 times)

elm10

  • Beginner
  • *
  • Posts: 1
Pyment Method
« on: February 21, 2011, 06:06:37 am »
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?