Paypal sandbox seems to work fine. I get to the end of the process where it presents a link/button to return to my "test site".
Click the button and it's doing a GET to /paypal.php?showsite=1, and the URL actually ends up with "http://www.inpanamacity.com/paypal.php?merchant_return_link=Return+to+My+Name%27s+Test+Store"
paypal.php shows me a blank screen, even with debug=1; and the link is not updated.
I do get the debug e-mails, showing no data:
linkid is , verified is , payment amount is
PayPal's receipt shows the link ID and the amount.
Transaction ID: 7565731506207993M Item Price: $10.00 USD Total: $10.00 USD Order Description: Panama City, Panama, Business Directory sponsorship Item/Product Number: 1 The following options were included with this payment: linkid: 26
Buyer: Test User
I've searched the forums and manual and can't find anything.
It looks like paypal.php is expecting POST data. I can't find anywhere in the sandbox to switch from a GET return to a POST with the data.
After reding everything I could find on Paypal's sandbox site, I found that the submission form requires "notify_url". I modified it to contain these two fields:
linkid is 26 , verified is 1 , payment amount is 10 post txn_type is web_accept post payment_date is 12:23:49 Aug 31, 2008 PDT post last_name is User post option_selection1 is 26 post residence_country is US post pending_reason is unilateral post item_name is Panama City, Panama, Business Directory sponsorship post payment_gross is 10.00 post mc_currency is USD post business is jeffb_test_account@dbactive.com post payment_type is instant post payer_status is unverified post verify_sign is Aknvbaivsx549GSVNlrnHdSX94DKA2qbcV.1bNLyjxSwzPo6NSgyLvVE post txn_id is 0 post payer_email is jeffb_1220206454_per@dbactive.com post test_ipn is 1 post tax is 0.00 post first_name is Test post receiver_email is jeffb_test_account@dbactive.com post quantity is 1 post payer_id is B6HWCBEDDTW5S post option_name1 is linkid post item_number is 1 post payment_status is Pending post shipping is 0.00 post mc_gross is 10.00 post custom is post charset is windows-1252 post notify_version is 2.4 post merchant_return_link is Return to Merchant
Paul wrote: As far as I recall, my testing has been with the global account IPN URL set. Will try some tests with separate processing URLs set in the forms.
I'm afraid I don't know the difference between global and seperate urls.
The global IPN is what you can set in your paypal account profile.
Actually, you probably didn't change into sandbox mode since that requires a file edit and a new payment button. Paypal uses different URLs for sandbox stuff from regular stuff, so you can't test the same thing you use in production. I'll add a tweak to make it slightly easier to transition things to sandbox mode.
After wasting a few hours on it... paypal's sandbox is just too insanely complicated to set up. All I can get is a "We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem." message for the sandbox seller.
Have you had any problems with actual payments, or is it only the sandbox you're attempting?
haha - my thoughts exactly. The Sandbox is rediculous. It took me over an hour to realize I could actually log in as a client. After that, I still can't find where to turn on IPN, so I used the form field route.
I haven't tried any real payments. Now that it's returning data I'll give it a shot.
Looks like having both the "return" value and the "notify_url" value is causing it to get pinged twice, thus doubling the credit for the link.
If I use only "return", the link never gets credited.
If I use only "notify_url", the link gets credited, but the customer is basically abandoned at PayPal.com.
The answer might be to create a custom template saying "gracias for featuring your link, etc", and using that as the "return" value, while keeping the "notify_url" value as is.
Comments on Paypal.php returns blank screen
Experienced
Usergroup: Customer
Joined: Jun 18, 2008
Total Topics: 22
Total Comments: 85
Hi Paul,
Setting up paypal for link sponsorship.
Paypal sandbox seems to work fine. I get to the end of the process where it presents a link/button to return to my "test site".
Click the button and it's doing a GET to /paypal.php?showsite=1, and the URL actually ends up with "http://www.inpanamacity.com/paypal.php?merchant_return_link=Return+to+My+Name%27s+Test+Store"
paypal.php shows me a blank screen, even with debug=1; and the link is not updated.
I do get the debug e-mails, showing no data:
linkid is , verified is , payment amount is
PayPal's receipt shows the link ID and the amount.
Payment Details
-----------------------------------
Transaction ID: 7565731506207993M
Item Price: $10.00 USD
Total: $10.00 USD
Order Description: Panama City, Panama, Business Directory sponsorship
Item/Product Number: 1
The following options were included with this payment: linkid: 26
Buyer: Test User
I've searched the forums and manual and can't find anything.
It looks like paypal.php is expecting POST data. I can't find anywhere in the sandbox to switch from a GET return to a POST with the data.
Thanks,
Jeff
Experienced
Usergroup: Customer
Joined: Jun 18, 2008
Total Topics: 22
Total Comments: 85
After reding everything I could find on Paypal's sandbox site, I found that the submission form requires "notify_url". I modified it to contain these two fields:
Now I'm getting this back in the e-mails:
and my template for paypal looks like this:
I am getting the "thank you" response from the site after returning. But, the link is still not being updated with funds.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
As far as I recall, my testing has been with the global account IPN URL set. Will try some tests with separate processing URLs set in the forms.
Experienced
Usergroup: Customer
Joined: Jun 18, 2008
Total Topics: 22
Total Comments: 85
As far as I recall, my testing has been with the global account IPN URL set. Will try some tests with separate processing URLs set in the forms.
I'm afraid I don't know the difference between global and seperate urls.
I'd be happy to use the former if it will work!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The global IPN is what you can set in your paypal account profile.
Actually, you probably didn't change into sandbox mode since that requires a file edit and a new payment button. Paypal uses different URLs for sandbox stuff from regular stuff, so you can't test the same thing you use in production. I'll add a tweak to make it slightly easier to transition things to sandbox mode.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
After wasting a few hours on it... paypal's sandbox is just too insanely complicated to set up. All I can get is a "We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem." message for the sandbox seller.
Have you had any problems with actual payments, or is it only the sandbox you're attempting?
Experienced
Usergroup: Customer
Joined: Jun 18, 2008
Total Topics: 22
Total Comments: 85
haha - my thoughts exactly. The Sandbox is rediculous. It took me over an hour to realize I could actually log in as a client. After that, I still can't find where to turn on IPN, so I used the form field route.
I haven't tried any real payments. Now that it's returning data I'll give it a shot.
Experienced
Usergroup: Customer
Joined: Jun 18, 2008
Total Topics: 22
Total Comments: 85
I turned off/edited out all the sandbox stuff and the transaction went through just fine. It updated the link and returned the user appropriately.
I edited the form to use this to make it work:
One weird issue - the link I upgraded ended up with $20 when the amount was set at $10.
I may have had funds in there from playing around before. The link was not set to sponsored before the test, however, so I'm really not sure.
I'll do some more testing tomorrow and verify or disprove that.
Experienced
Usergroup: Customer
Joined: Jun 18, 2008
Total Topics: 22
Total Comments: 85
Looks like having both the "return" value and the "notify_url" value is causing it to get pinged twice, thus doubling the credit for the link.
If I use only "return", the link never gets credited.
If I use only "notify_url", the link gets credited, but the customer is basically abandoned at PayPal.com.
The answer might be to create a custom template saying "gracias for featuring your link, etc", and using that as the "return" value, while keeping the "notify_url" value as is.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
IPN setup is highlighted here: http://www.webmastersite.net/screenshots/26410.jpg
You'd get $20 from depositing $10 if you have the sponsorship page set to give a bonus.
Will incorporate the notify_url. Hopefully it isn't going to duplicate the IPN URL call to cause double reporting.