test url
sodani - July 7, 2008 - 20:58
| Project: | Simple Paypal Framework |
| Version: | 5.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Hello, the test URL (https://www.eliteweaver.co.uk/cgi-bin/webscr) doesn't seem to work. Is there any other way to test?

#1
It seems that paypal has a "sandbox" that can be used for testing - developer.paypal.com. I'll try this out and post again when I learn more.
#2
Yes, this works too. But setting up the sandbox is a very lengthy process.
If you can report the steps to make it work, then it would be useful for all. We can even include it in the README.
#3
I got it to work using the paypal sandbox. The process actually isn't so lengthy. If this could be included in the README, that would be great. Here goes:
The paypal sandbox works just like regular paypal (with transactions and everything) except no actual money gets transferred. It allows you to create mock accounts (seller and buyer) and create transactions between them.
1. Sign up for an account at developer.paypal.com, receive the activation e-mail and activate the account
2. Log in, go to "test accounts" and create a business (seller) account and personal (buyer) account.
3. In whichever module you're using that uses simple_paypal, set the paypal e-mail address to your business account e-mail address.
4. In simple_paypal.module, change
SIMPLE_PAYPAL_URL_TEST => 'https://www.eliteweaver.co.uk/cgi-bin/webscr',
to
SIMPLE_PAYPAL_URL_TEST => 'https://www.sandbox.paypal.com/cgi-bin/webscr',
That's it. When a transaction has been completed, paypal should send a POST request to the URL specified at the 'notify_url' variable.
#4
@sodani
Can you edit this as a patch to the README.txt for instructions and the .module for the new URL? Check http://drupal.org/patch for details.
#5
yes, need a couple of days.
#6
This is the first patch I've ever created so please let me know if the format is incorrect. There was no README.txt file so I went ahead and created one.
#7
Thank you.
Committed.
#8
Automatically closed -- issue fixed for two weeks with no activity.