REST API Problem when going live

MattFrepp
New Community Member

I'm using a simple PHP front-page to send my clients to PayPal to pay their entry-fee. PayPal then returns a notify.php page and a return.php page that give me the necessary info to process the transaction. It all works fine in Sandbox. When I switch to live, I change the email to my merchant email, point to PayPal live instead of Sandbox, and set var SANDBOX to 0. Again it seems to work, I tried with my own credit-card, payment was processed and merchant received return.php that indicates all fine. Yet no credit card charge occurred, and the merchant account did not get any money. Any feedback welcome. Thanks, Matt

 

<body>
    <div id="payment-box">
        <img src="images/camera.jpg" />
        <h4 class="txt-title">Competition Entry Fee</h4>
        <div class="txt-price">$10.00</div>
        <form action="https://www.paypal.com/cgi-bin/webscr"
            method="post" target="_top">
            <input type='hidden' name='business'
                value='merchant email'> <input type='hidden'
                name='item_name' value='Competition'> <input type='hidden'
                name='item_number' value='U56789'> <input type='hidden'
                name='amount' value='10'> <input type='hidden'
                name='no_shipping' value='1'> <input type='hidden'
                name='currency_code' value='USD'> <input type='hidden'
                name='notify_url'
                value='https://photojudge.net/PayPal/notify.php'>
            <input type='hidden' name='cancel_return'
                value='https://photojudge.net/PayPal/cancel.php'>
            <input type='hidden' name='return'
                value='http://photojudge.net/PayPal/return.php'>
            <input type="hidden" name="cmd" value="_xclick"> <input
                type="submit" name="pay_now" id="pay_now"
                Value="Pay Now">
        </form>
    </div>
</body>

 

 

Login to Me Too
1 REPLY 1

MTS-Aaron
PayPal Employee
PayPal Employee

Hi @MattFrepp 

 

That particular button is actually deprecated now and no longer supported.

 

The current supported product is called Smart Payment Buttons and can be found right here. These buttons are much more secure with many more features.

 

You can follow the steps here to create and add the button. There's even a demo site here where you can make changes and see those changes in real time. 

 

Hope this helps!

-Aaron

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.