Author Topic: Pyment Method  (Read 5821 times)


  • Beginner
  • *
  • Posts: 1
Pyment Method
« on: February 21, 2011, 06:06:37 am »

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:

            $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="" 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=""/>
                <input name="transaction" type="hidden" value="<?=$tx_id>"/>
                <input name="merchantKey" type="hidden" value="<?=$unique_merchant_key>"/>
                <input name="submit" type="submit" value="Submit"/>

Can anyone assist me in resolving this problem?