Showing results for 
Search instead for 
Did you mean: 

Add To Cart and Return after payment.

New Community Member

Add To Cart and Return after payment.

I have a simple add to cart button:


buttons are basically:


<input type="hidden" name="cmd" value="_xclick">

<input type="hidden" name="item_name" value="Invoice Payment">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://domain/payment_success">
<input type="hidden" name="cancel_return" value="http://domain/payment_canceled">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">

Customer / Account Number:<input type="text" name="item_number">

Payment Amount:</td><td><input type="text" name="amount" value="0.00">






<input name="submit" type="image" src="" alt="Make payments with PayPal - it's fast, free and secure!" border="0">




and all that is fine..  it takes the user to paypal, and they can process payment.


when they return to the site,  want it to display someting like.



Thanks for the payment.

Paid ~amount~ for customer ~item_number~ on ~date~


where amount and item_number came from the paypal payment.


is this at all possible

Volunteer Advisor

Re: Add To Cart and Return after payment.

Hello WebAlterations,


Welcome to the Forums.


You have very good questions, however PayPal does have a Developer Forum that would be able to better answer your questions. Here is a direct link. I hope this will help.


Smiley HappyMisty