Webmastersite.net
Register Log In

Paypal.php returns blank screen
No errors, debug info, etc.

Comments on Paypal.php returns blank screen

fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Aug 31, 2008 - 1:37 PM:

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


fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Sep 01, 2008 - 9:02 AM:

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:

<input type="hidden" name="return" value="{DIRURL}/paypal.php?showsite=1" />
<input type="hidden" name="notify_url" value="{DIRURL}/paypal.php?showsite=1" />


Now I'm getting this back in the e-mails:


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


and my template for paypal looks like this:


<IF {PAYPALEMAIL}>
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="text" name="theurl" class="bait" />
<input type="text" name="theurl" class="bait" />
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="{PAYPALEMAIL}" />
<input type="hidden" name="undefined_quantity" value="1" />
<input type="hidden" name="item_name" value="{SITETITLE} sponsorship" />
<input type="hidden" name="item_number" value="" />
<input type="hidden" name="amount" value="" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="return" value="{DIRURL}/paypal.php?showsite=1" />
<input type="hidden" name="notify_url" value="{DIRURL}/paypal.php?showsite=1" />
<input type="hidden" name="cancel_return" value="{DIRURL}" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="on0" value="linkid" />
<input type="hidden" name="os0" value="{LINKID}" maxlength="200" />
Buy now with PayPal:
<input type="image" src="https://www.paypal.com/images/x-click-but23.gif" name="submit" align="middle" alt="Make payments with PayPal - it's fast, free and secure!" />
</form>
</IF>



I am getting the "thank you" response from the site after returning. But, the link is still not being updated with funds.

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 02, 2008 - 1:19 AM:

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.
fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Sep 02, 2008 - 6:00 PM:

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.

I'd be happy to use the former if it will work!


Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 02, 2008 - 10:51 PM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 02, 2008 - 11:19 PM:

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?
fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Sep 03, 2008 - 10:21 AM:

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.
fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Sep 03, 2008 - 6:19 PM:

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:


<input type="hidden" name="return" value="{DIRURL}/paypal.php?showsite=1" />
<input type="hidden" name="notify_url" value="{DIRURL}/paypal.php" />


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.

fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Sep 03, 2008 - 6:47 PM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Sep 03, 2008 - 9:53 PM:

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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.