0

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.

Edited by Nick Evan: Fixed formatting

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by qasim baig
1

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..

Edited by happygeek: fixed formatting

0

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.

Edited by mike_2000_17: Fixed formatting

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.