 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
October 23rd, 2010, 11:12 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
| 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...
|
| |
October 23rd, 2010, 04:29 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
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?
|
| |
October 23rd, 2010, 06:01 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
|
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 |
| |
October 23rd, 2010, 06:47 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
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.
|
| |
October 23rd, 2010, 07:44 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
|
Got it. I will try that next and report back if it doesn't fix the problem. Thanks!
|
| |
October 24th, 2010, 08:25 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
No problem enjoy your weekend.
|
| |
October 24th, 2010, 08:58 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
|
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.
|
| |
October 25th, 2010, 08:11 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
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.
|
| |
October 25th, 2010, 12:37 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
|
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.
|
| |
October 25th, 2010, 02:27 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
well I have to look up my second paypal account as I need that to be able to test it |
| |
October 26th, 2010, 11:33 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
|
Hey, Chuck... any update with your testing? This is pretty much my only major hurdle left in getting this shop online |
| |
October 26th, 2010, 01:44 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
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.
|
| |
October 26th, 2010, 01:55 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
|
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....
|
| |
October 26th, 2010, 01:57 PM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
|
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 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. | |
| |
October 26th, 2010, 02:00 PM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
|
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.
|
| |
October 26th, 2010, 02:37 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
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]
|
| |
October 26th, 2010, 02:52 PM
|
#17 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
|
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.
|
| |
October 26th, 2010, 03:01 PM
|
#18 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
|
nm this post!
Last edited by aotc; October 26th, 2010 at 03:25 PM.
|
| |
October 26th, 2010, 03:20 PM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
|
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*
|
| |
October 26th, 2010, 03:24 PM
|
#20 (permalink)
| | Member Verified Customer
Join Date: Oct 2010
Posts: 68
|
*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!!
Last edited by aotc; October 26th, 2010 at 03:54 PM.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 11:13 AM. | |