Support Forums

Old 05-02-2006, 01:03 AM   #1
Member
 
Join Date: Apr 2006
Posts: 32
Rep Power: 12
f16eater is on a distinguished road
Default 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.
f16eater is offline   Reply With Quote
Old 05-02-2006, 02:38 AM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,581
Rep Power: 105
Eric Barnes is a jewel in the rough
Default

Yes it should complete the sale automatically. Do you know if you are using 2checkout version 2 or the old version?
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Eric Barnes is offline   Reply With Quote
Old 05-02-2006, 11:05 AM   #3
Member
 
Join Date: Apr 2006
Posts: 32
Rep Power: 12
f16eater is on a distinguished road
Default

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.
f16eater is offline   Reply With Quote
Old 05-02-2006, 11:21 AM   #4
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,581
Rep Power: 105
Eric Barnes is a jewel in the rough
Default

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
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Eric Barnes is offline   Reply With Quote
Old 05-02-2006, 12:39 PM   #5
Member
 
Join Date: Apr 2006
Posts: 32
Rep Power: 12
f16eater is on a distinguished road
Default

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.
f16eater is offline   Reply With Quote
Old 05-02-2006, 01:11 PM   #6
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,581
Rep Power: 105
Eric Barnes is a jewel in the rough
Default

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.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Eric Barnes is offline   Reply With Quote
Old 05-02-2006, 01:47 PM   #7
Member
 
Join Date: Apr 2006
Posts: 32
Rep Power: 12
f16eater is on a distinguished road
Default

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...
f16eater is offline   Reply With Quote
Old 05-02-2006, 01:52 PM   #8
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,581
Rep Power: 105
Eric Barnes is a jewel in the rough
Default

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;
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Eric Barnes is offline   Reply With Quote
Old 05-03-2006, 10:08 PM   #9
Member
 
Join Date: Apr 2006
Posts: 32
Rep Power: 12
f16eater is on a distinguished road
Default

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!

Last edited by f16eater; 05-03-2006 at 10:10 PM.
f16eater is offline   Reply With Quote
Old 05-04-2006, 10:10 AM   #10
Member
 
Join Date: Apr 2006
Posts: 32
Rep Power: 12
f16eater is on a distinguished road
Default

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?
f16eater is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2CheckOut Unregistered Pre Sales Questions 0 01-19-2007 09:22 AM
Help needed with installation Gone_pro v3.1 Questions & Support 11 01-19-2007 02:08 AM
Help needed with syntax Maffo v3.0 Questions & Support 3 04-24-2006 11:43 AM
2checkout question zman78 v3.0 Questions & Support 7 03-30-2006 09:25 AM


All times are GMT -4. The time now is 06:02 AM.


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