test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • bluelinux Friend
    #170528

    Please hear me out as I understand that this question should be on Virtuemart Forum not here, however none had response to my problem so far (over a week)

    here is my problem

    Sorry if i sound newbie, I am currently trying to setup a new payment for my virtuemart shop, however as I need to parse and configure new payment to be transfer to my payment processor
    Here are variable/parameter that my payment provider want

    1. amount
    2. item_name
    3. custom_remarks
    4. return_url
    5. cancel_url

    hence, I need help in identifying correspondent variable from virtuemart end and how to better configure the page.

    Below is the form from my payment provider which shall be on my website.

    <form name=”frmsendpaymentrequest” method=”post”
    action=”https://www.paymentprovider.com/Merchant/ConfirmPayment.asp”>

    <input type=”hidden” name=”merchant_email_id” value=”your_merchant_emailid@domain.com”>
    <input type=”hidden” name=”callback_id” value=”BEADACFE250E4769ABB9B6270490AB1E”>
    <input type=”hidden” name=”amount” value=”200″>
    <input type=”hidden” name=”item_name” value=”Sample Item”>
    <input type=”hidden” name=”return_url” value=”http://www.your_domain.com/success.asp”>
    <input type=”hidden” name=”cancel_url” value=”http://www.your_domain.com/cancel.asp”>
    <input type=”hidden” name=”custom_remarks” value=”sample remarks”>
    <input type=”submit”>
    </form>

    This is code I have in my customize payment ( after creating Customize in
    Payment Method Form)

    <?php
    if( !defined( ‘_VALID_MOS’ ) && !defined( ‘_JEXEC’ ) ) die( ‘Direct Access to ‘.basename(__FILE__).’ is not allowed.’ );
    /**
    *
    * @version $Id: checkout.index.php 2529 2010-09-05 15:48:16Z zanardi $
    * @package VirtueMart
    * @subpackage html
    * @copyright Copyright (C) 2004-2010 VirtueMart Dev Team – All rights reserved.
    * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
    * VirtueMart is free software. This version may have been modified pursuant
    * to the GNU General Public License, and as distributed it includes or
    * is derivative of works licensed under the GNU General Public License or
    * other free or open source software licenses.
    * See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
    *
    * http://virtuemart.net
    */
    mm_showMyFileName( __FILE__ );

    require_once( CLASSPATH . “ps_checkout.php” );

    global $mainframe, $vmLogger, $vars;

    $order_total= $_POST[‘amount’];
    ?>
    <form name=”frmsendpaymentrequest” method=”post”
    action=”http://www.vtnsandbox.com/Merchant/ConfirmPayment.asp”>
    <input type=”hidden” name=”merchant_email_id” value=”info@thecrescenthoat.com”>
    <input type=”hidden” name=”callback_id” value=”4E94D246C2144E4D8D0EC25B60A7879E”>
    <input type=”hidden” name=”amount” value=””>
    <input type=”hidden” name=”item_name” value=”Payment For Internet Bookshop Services”>
    <input type=”hidden” name=”return_url” value=”http://localhost/shop/success.asp”>
    <input type=”hidden” name=”cancel_url” value=”http://localhost/shop//cancel.asp”>
    <input type=”hidden” name=”custom_remarks” value=”sample remarks”>
    <input type=”hidden” name=”currency_id” value=”USD”>
    <input type=”submit”>
    </form>
    <?php echo “Total amount : $order_total” ?>;

    at moment, I cannot get the $order_total to be parse to my payment provider via above code, ca anyone help me out. I am at lost at moment

    Thanks in advance

    bluelinux Friend
    #424147

    I hope someone can be of help here as i serious need to get this fix asap
    any help shall be aprreciate

    Blaine Friend
    #424324

    Hi bluelinux!
    You’re right, this is a VM forum question. have you searched their forum?
    This is a customization and as such, I really can’t give you exact code however I am confident that this thread along with a search in the VM forums will get you started in the right direction!
    Here is also a thread on modifying the VM.
    If you can’t get this solved consider hiring a freelancer.
    Best of luck to you!
    Thanks!

    bluelinux Friend
    #424421

    Thanks a lot Blaine,

    I was able to hacked it, by following the second link in your post.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  bluelinux 13 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum