PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   Not returning to site after paypal payment (http://www.photopost.com/forum/classifieds-how-do-i/144319-not-returning-site-after-paypal-payment.html)

aotc October 23rd, 2010 11:12 AM

Not returning to site after paypal payment
 
I've been testing the selling mechanics. Everything works fine all the way through to the end of the purchase... until paypal tries to redirect me back to the site.

Paypal redirects me back to this link
Code:

Content visible to verified customers only.
And all I get is a white screen.

In payment_verification php, the forward for a purchase is set up as:
Code:

Content visible to verified customers only.
I even changed it to a full url in case Paypal was getting confused:
Code:

Content visible to verified customers only.
I'm buying items from myself to test, and I am an established online seller. I have MY business paypal redirect turned on, and set to forward to my website thank you page after a sale. Since classifieds brings up my business paypal account to finish the order, is the redirect from my paypal causing some sort of issue with the classifieds redirect?

This is my next to last major issue... LOL... I'm getting there...

Chuck S October 23rd, 2010 04:29 PM

if you do a successful payment you should get forwarded. Yes you go to payment_verification which verifies the payment and you should get forwarded to showproduct.php

what is in your ipn settings in paypal is it the full url to our payment_verification.php script?

aotc October 23rd, 2010 06:01 PM

Which paypal...?

I am not using classified's subscription system. I handle all subscriptions through vbulletin, and autopromote members to seller status so they can sell on classifieds.
And its IPN is set up for vbulletin as per their instructions for making subscriptions work.

Code:

Content visible to verified customers only.
Where I'm having the issue is the seller's paypal. When someone creates a listing on classifieds, they set it up as a buy it now with paypal, and enter their paypal email address. When I buy from this seller, I'm taken to a paypal page with their banner on top, and links that don't say *cancel and return to aotc* but rather *cancel and return to *seller's website*. Those links also take me to the same white screen (I tested).

After purchase, paypal says *you are now being redirected to sellers website* - and that's where it redirects me to the white screen of death.

So do sellers have to modify their paypal IPNs to sell here? Or do I need to create another paypal account for attackofthecraft so I can set up another IPN for classifieds?

Sorry if I sound confused. IPN seriously confuses me. I'm not even sure what it does. I just follow directions given to me to set it up ;)

Chuck S October 23rd, 2010 06:47 PM

Okay but for our payment to work we use IPN as well and maybe thats your problem is your not allowing paypal to send back the payment information for that script to function. I bet your ads are not marked approved either as a result either right? Ads not being marked as paid?

You probally need to create a different paypal for classifieds as we use IPN to bounce back the info to the script on payment completion the script then processes the payment verification and should forward to the ad the user just placed.

aotc October 23rd, 2010 07:44 PM

Got it. I will try that next and report back if it doesn't fix the problem. Thanks!

Chuck S October 24th, 2010 08:25 AM

No problem enjoy your weekend.

aotc October 24th, 2010 08:58 PM

That didn't fix it.

I opened a brand new paypal account, put this in for the IPN

Code:

Content visible to verified customers only.
and entered the new email address for that paypal account into admin control panel under payment options.

Then I went and purchased a test item that a friend of mine listed in the classifieds.

After the sale went through paypal, it was redirected to payment_verification.php, with a white page, just like before.

The listing does show as sold...

Kitty Ear Hoodie - AttackoftheCraft Handmade Shop

But the redirect is not working.

Chuck S October 25th, 2010 08:11 AM

so lets go through this

Your saying you buy an ad and everything is marked as sold etc but your not being forwarded?

If thats the case I have no idea because if your clearly executing the code in that file

Code:

Content visible to verified customers only.
You can clearly see we use a forward to showproduct.php

I will have to setup a test and let you know.

aotc October 25th, 2010 12:37 PM

I reverted back to a clean payment_verification.php (because I'd changed the wording on the emails send to buyer and seller) just to see if my changing the emails might have done something - it can't hurt to test...

I still get a redirect back to payment_verification.php and a white screen. The product was marked sold as well, just like before.

And like I said, that is with the clean php code that came with the program.

Chuck S October 25th, 2010 02:27 PM

well I have to look up my second paypal account as I need that to be able to test it ;)

aotc October 26th, 2010 11:33 AM

Hey, Chuck... any update with your testing? This is pretty much my only major hurdle left in getting this shop online :D

Chuck S October 26th, 2010 01:44 PM

No still testing the two tests I have done have worked thus far. Here is something you can test.

See if you just go to payment_verification.php you should only see a white page.

Your saying the actions are being performed which means you should be forwarded so try adding these lines in payment_verification and tell me what happens. Tell me what the forward message is so pay attention there. ;)

Code:

Content visible to verified customers only.
If your not being forwarded then you definately are not opening a socket to paypal for the
response and we can try something else.

aotc October 26th, 2010 01:55 PM

Here is a transaction walkthrough, just as I'm seeing it. Please note this is a transaction to purchase an item that has been placed in the classifieds by a seller, like a car or a piece of clothing. This is not a subscription to classifieds (which I'm handling through vbulletin) or purchase for an ad, or a feature like bold or highlighting.

***

I place a classified ad selling a piece of clothing as angrygirl gear with buy it now through paypal enabled. In the ad, I put my angrygirl gear paypal email address where it asks for a paypal address, because I want to get paid if someone buys the piece of clothing in my ad, right? Right.

I then purchased this listing by clicking the buy it now button on the ad. When it got to the paypal screen, it has the angrygirl gear logo at the top, indicating that I was buying from angrygirl gear. The links all say *cancel and return to angrygirl gear. This is fine, except that the links that say *cancel and return to angrygirl gear* don't work - they go to payment_verification.php and the white screen of death.

My angrygirl gear paypal account is forwarded to a thank you page on my website. And its set up with an IPN that subscribes me to all my paypal transactions:

Code:

Content visible to verified customers only.
I checked my IPN history, and the transactions from my classifieds shop are hitting it - I'm getting notifications of payments received, as I should be.

So far this is all good, and what I want to see, until it gets to the redirect. It redirects me back to attackofthecraft.com/shop/payment_verification.php - which just pops up as blank screen.

I don't know how to make this redirect back to attackofthecraft. If I changed my website redirect on MY angrygirl gear paypal, that would work, but then it would always redirect to attackofthecraft, even after a website sale. This is a broken process, as website sales have nothing to do with attackofthecraft.

Additionally, there are going to be many, many sellers selling on my classifieds site. I can't ask every person who is going to list an ad on our classifieds to change their website redirect back to our classifieds shop - many of them have websites of their own like I do, and that would break their process as well.

What I need is for it to redirect back to the classifieds shop after purchase... from many different seller's paypal accounts - OR to simply end on the last page of paypal where it says your transaction is complete, and provide a link on that page back to the shop.

Oy vey....

aotc October 26th, 2010 01:57 PM

I posted at the same time you did... well, I was writing a long post when you posted haha.

I'll try this now, but you can still get an idea of the business flow I'm looking for in that other post. I'm beginning to think this software might not work for what I need - a community of multiple sellers who accept paypal :S


Quote:

Originally Posted by Chuck S (Post 1278511)
No still testing the two tests I have done have worked thus far. Here is something you can test.

See if you just go to payment_verification.php you should only see a white page.

Your saying the actions are being performed which means you should be forwarded so try adding these lines in payment_verification and tell me what happens. Tell me what the forward message is so pay attention there. ;)

Code:

Content visible to verified customers only.
If your not being forwarded then you definately are not opening a socket to paypal for the
response and we can try something else.


aotc October 26th, 2010 02:00 PM

That code is for the subscription area, which I won't be using. I need the product purchase area, this area... the forward at the end of this is the one that doesn't work.

Code:

Content visible to verified customers only.

Chuck S October 26th, 2010 02:37 PM

Okay well are you saying if you purchase the ad everything works right? You are only getting the white screen of death when hitting a cancel link?

If thats the case in the buy template in our application is this line

Code:

Content visible to verified customers only.
you can change to this

Code:

Content visible to verified customers only.
[/code]

aotc October 26th, 2010 02:52 PM

I get it on the cancel links, and on upon redirect or forward. All of it points back to payment_verification.php and the white screen to nowhere. Its like it doesn't let payment_verification.php finish running its script.

aotc October 26th, 2010 03:01 PM

nm this post!

aotc October 26th, 2010 03:20 PM

Ok... wait... that worked for the cancel link.

Will changing the target in the piece of code just above it, for redirect, work, too???

*crosses fingers*

aotc October 26th, 2010 03:24 PM

*runs around screaming like a little girl*

*which is ok, because I'm a little girl*

IT WORKED!!

I used this in the buy template

[php]<input class="bginput" type="hidden" name="return" value="{$Globals['maindir']}/index.php">


ROCK the eff ON!!


All times are GMT -5. The time now is 05:25 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97