68 Classifieds Forums

68 Classifieds Forums (http://www.68classifieds.com/forums/index.php)
-   v3.1 Questions & Support (http://www.68classifieds.com/forums/forumdisplay.php?f=19)
-   -   2CheckOut Help needed (http://www.68classifieds.com/forums/showthread.php?t=409)

f16eater 05-02-2006 01:03 AM

2CheckOut Help needed
 
Hi there,

I need some help with 2checkout.

I checked "demo", but my payment went thru. Not a problem cause i refunded myself the money.

But the problem i have here is that the script doesn't complete the entire transaction automatically? I wasn't aware of that when i bought the product.

Or does the software do it? Please advise.

THanks.

suzkaw 05-02-2006 02:38 AM

Yes it should complete the sale automatically. Do you know if you are using 2checkout version 2 or the old version?

f16eater 05-02-2006 11:05 AM

I only signed up for 2checkout yesterday?

DO i need to create a new product in 2checkout to autodirect the buyer to a certain file?

And one more thing. the demo check box doesn't seem to work.

suzkaw 05-02-2006 11:21 AM

I just looked through 2checkouts help desk and it does appear you have to add your products with them as well.

For the demo mode I do see an error that is causing it not to run. If you would open the file includes/functions_payment.php and locate this line:
PHP Code:

function display2Checkout($listingid,$price,$package,$extra,$exta2,$userinfo)
{

Just under it add: global $demo; so it would look like this:
PHP Code:

function display2Checkout($listingid,$price,$package,$extra,$exta2,$userinfo)
{
global
$demo;


f16eater 05-02-2006 12:39 PM

Ok looks like i've got to add..

just wondering, what URL should i redirect my customers to after "pending payment" and "payment complete"?

Thanks so much. your help is really appriciated.

suzkaw 05-02-2006 01:11 PM

For that you could either manually create new pages or still forward them to the thanks.php page. If the thanks page doesn't get the correct approval variables then it will display an error message.

f16eater 05-02-2006 01:47 PM

Notice: Query failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 SQL: SELECT title,price FROM class_products WHERE id= in /home/myzine2/public_html/asianfreeads/includes/classes/database/mysql.php on line 119


Hey 68classifieds inventor, i've got this error message after completing the 2checkout process. I've fixed it, and buyers get redirected to thanks.php on completion of the process.

THe ad is automatically activated with an authorization number, and all is good, just that error message.

And demo is working again.

FOr all 2checkout users

anyway,i've figured it out. For all users out there, go to your look and feel section in2 checkout and add http://www.yourdomain.com/thanks.php into the 2 url input boxes...

suzkaw 05-02-2006 01:52 PM

If you open the thanks.php file and go to line 482 you should see this:
$sSQL="SELECT title,price FROM ".PREFIX."products WHERE id=".$lid;

Change it to:
$sSQL="SELECT title,price FROM ".PREFIX."products WHERE id=".$listingid;

f16eater 05-03-2006 10:08 PM

Hi there,

In my 2CheckOut page, i activated a passback url to thanks.php.

I have listing packages and no member packages

I added a listing, and paid using demo, and good it adds automatically

Next i added a member package.

I bought the package, I was returned to thanks.php, and the membership doesn't get approved automatically. I tried again, same thing.

THan i tired adding a listing not using membership, at thanks.php, i see "thanks for buying membership" or something along those lines. The ad is not auto approved. Infact no transaction id or anyhing was entered into the script.

I went mysql and deleted any traces of previous membership purchases. Trie daddling a new listing, same thing. no auto approval. Tried 3 times, same thing. "thank your for buying membership

THan i went to delete the membership package. And tried adding the listing. IT worked. 2 time both worked.

And all these while, after being brought back to my website from 2checkout, i only see "THank you" and "browse your ads" on the thanks.php. is this normal?

I've contacted 2checkout. I read their manual, it seems that they do send sellers back to the original url, which is usercheckout.php. Maybe usercheckout dosn't process the passback parameters, thats why at the end of the purchase process they don't get back to my site?

And 2 check out has an optional parameter that allows custom return url? maybe you might want to incoporate it?

I'll keep u posted on 2checkout's reply.

And you can check out my website http://www.asianfreeads.com/

Go ahead and register and try. Maybe that will help u out.

Thanks!

f16eater 05-04-2006 10:10 AM

E reply..

"Thank you for contacting 2Checkout.com. I am sorry for any inconvenience.
The reason the system will not direct the customer back to your return script
with Direct Return to YES is because you have an automatic redirect in your
approved URL. You will need to remove the automatic redirect from
http://asianfreeads.com/thanks.php that then redirects to
http://asianfreeads.com/userlogin.php. Once this redirect is removed then the
system should redirect the customer to your page with Direct Return set to
YES.

Does anyone know what he is talking about?


All times are GMT -4. The time now is 08:38 AM.

Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.