What is the correct way to track PayPal purchases that use the standard payment button?

I see on https://www.x.com/developers/paypal/documentation-tools/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables I can fill out the return and rm parameters, but I read somewhere that it requires the user to click "continue" in their browser after the payment has been completed in order to be redirected back to your site. So if they just close the browser it doesn't register accurately.

Also, for the 'rm' parameter it says that if you specify 2, the buyer's browser is redirected and all payment variables are included via POST. But what are the payment variables??

Also how can I test that it's working correctly without actually paying myself?

Member Avatar for LastMitch

but I read somewhere that it requires the user to click "continue" in their browser after the payment has been completed in order to be redirected back to your site. So if they just close the browser it doesn't register accurately.

Yes, the link you find is correct.

You can edit the paypal page to return to original site. You add Daniweb logo on that paypal page.

Also, for the 'rm' parameter it says that if you specify 2, the buyer's browser is redirected and all payment variables are included via POST.

When customer double checking the info & items on the checkout sheet and then they click submit button to submit the checkout sheet.

Once it is submit the info will go to 2 directions.

The 1st direction it will insert the info in the database.

The 2nd direction it will redirect to the PayPal page for customer to enter payment info (credit card) the paypal form is filled already from the checkout sheet.

But what are the payment variables??

This is the form:

https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_xclick_prepopulate_outside

Also how can I test that it's working correctly without actually paying myself?

You can test it out here (#3 - Test your integration):

https://www.paypal.com/cgi-bin/webscr?cmd=_wp-standard-integration-outside

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.