hello,

I have a problem with my code please help me,I am using sand box

form
{
    <form action="<?php echo $paypal_url; ?>" method="post" name="frmPayPal1">
                    <input type="hidden" name="cmd" value="_xclick">
                    <input type="hidden" name="business" value="">
                    <input type="hidden" name="lc" value="GB">
                    <input type="hidden" name="quantity" value="1" />
                    <input type="hidden" name="item_name" value="">
                    <input type="hidden" name="item_number" value="">
                    <input type="hidden" name="amount" value="">
                    <input type="hidden" name="no_shipping" value="0">
                   <input type="hidden" name="currency_code" value="">
                    <input type="hidden" name="rm" value="2">
                    <input type="hidden" name="cancel_return" value="****">
                    <input type="hidden" name="return" value="success.php">

                    <input type="image" src="" name="submit" alt="" onClick="">
                    <img alt="" border="0" src="" width="1" height="1">


                </form> 
}




when transaction is completed, 

success.php
{
    foreach($_POST as $key => $value)
    {
            echo $message.= $key . " - " . $value . "<br />";

    }
$item_no = $_REQUEST['item_number'];
$item_transaction = $_REQUEST['tx'];
$item_price = $_REQUEST['amount'];
$item_currency = $_REQUEST['currency_code'];

}

the values of these variables are not return from the paypal page.

Hi,

I did this type of testing in Paypal sandbox, too many times already. BUT, not to offend you or anything, can you please put your codes between the CODE tags. Then only that time when you did that, I will help you.. It gives me a terrible head ache looking at the codes that way..

hello,
please help

I have a problem with my code please help me,I am using sand box

form

{
    <form action="<?php echo $paypal_url; ?>" method="post" name="frmPayPal1">
                    <input type="hidden" name="cmd" value="_xclick">
                    <input type="hidden" name="business" value="">
                    <input type="hidden" name="lc" value="GB">
                    <input type="hidden" name="quantity" value="1" />
                    <input type="hidden" name="item_name" value="">
                    <input type="hidden" name="item_number" value="">
                    <input type="hidden" name="amount" value="">
                    <input type="hidden" name="no_shipping" value="0">
                   <input type="hidden" name="currency_code" value="">
                    <input type="hidden" name="rm" value="2">
                    <input type="hidden" name="cancel_return" value="****">
                    <input type="hidden" name="return" value="success.php">

                    <input type="image" src="" name="submit" alt="" onClick="">
                    <img alt="" border="0" src="" width="1" height="1">


                </form> 
}

when transaction is completed,

success.php

{
    foreach($_POST as $key => $value)
    {
            echo $message.= $key . " - " . $value . "<br />";

    }
$item_no = $_REQUEST['item_number'];
$item_transaction = $_REQUEST['tx'];
$item_price = $_REQUEST['amount'];
$item_currency = $_REQUEST['currency_code'];

}

the values of these variables are not return from the paypal page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.