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

sodani - July 8, 2008 - 16:39

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

kbahey - July 8, 2008 - 20:19
Status:active» postponed (maintainer needs more info)

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

sodani - July 10, 2008 - 02:17

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

kbahey - July 10, 2008 - 16:40

@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

sodani - July 14, 2008 - 20:35

yes, need a couple of days.

#6

sodani - July 20, 2008 - 16:28

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.

AttachmentSize
add_paypal_sandbox.patch 1.55 KB

#7

kbahey - July 21, 2008 - 00:43
Version:5.x-1.0» 5.x-1.x-dev
Status:postponed (maintainer needs more info)» fixed

Thank you.

Committed.

#8

Anonymous (not verified) - August 4, 2008 - 00:45
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.