Welcome to The Wholesale Forums!
: :


Error with function for payment gateway in cart setup?


Reply
 
LinkBack Thread Tools Display Modes



Posts: 276
Offline

Join Date: Dec 2007
Location: UK
Feedback: (0)
Thanked: 7 Times in 7 Posts
hey guys I am configuring my site at the moment and have just started to do my paypal gateway section. I have followed all the steps that was asked. but when i do a test purchase myt site goes white as i finsih paying and it says :

Fatal error: Call to undefined function: dodirectpayment() in /home/sites/upvcdiy.co.uk/public_html/modules/gateway/DirectPayment/form.inc.php on line 163


so im basicaly looking for some help and someone to tell me where im going wrong.

cheers guys

George
#1  
Reply With Quote Old 10-04-2009, 11:40 AM

Anthony's Avatar


Posts: 13,720
Offline

Join Date: Jul 2005
Location: London, UK
Feedback: (9)
Thanked: 642 Times in 412 Posts
On line 163 of that document (form.inc.php) there is an error with the "dodirectpayment" function.

It may be just as simple as a syntax error.

What commerce package are you using? Cubecart, OsCommerce?
__________________
On Monday 8th March, your community is changing. For an exclusive members only preview click here.
#2  
Reply With Quote Old 10-04-2009, 12:49 PM



Posts: 276
Offline

Join Date: Dec 2007
Location: UK
Feedback: (0)
Thanked: 7 Times in 7 Posts
cubecart anthony
#3  
Reply With Quote Old 10-04-2009, 01:07 PM

RWA



Posts: 2,747
Offline

Join Date: Dec 2005
Location: UK
Feedback: (0)
Thanked: 137 Times in 113 Posts
Quote:
Originally Posted by bigkipper View Post
cubecart anthony
Is this a module you're coding from scratch?
#4  
Reply With Quote Old 10-04-2009, 01:09 PM



Posts: 276
Offline

Join Date: Dec 2007
Location: UK
Feedback: (0)
Thanked: 7 Times in 7 Posts
No i did all that was explaid on the paypal website etc yet paypal express or website payments pro is not working.
#5  
Reply With Quote Old 10-04-2009, 01:20 PM



Posts: 1,303
Offline

Join Date: Apr 2007
Location: United Kingdom
Feedback: (14)
Thanked: 26 Times in 20 Posts
Function errors are usually caused by either CHMOD permissions not being set properly, or by an invalid syntax like Anthony said. It could just be a case of a ; missing from the end of a line in PHP.

What are you trying to do with the PayPal gateway? There is already one presetup in the Cubecart admin?

Regards
Lewis
__________________
Lewis Sellers - www.nightskylanterns.co.uk
Add some magic to any special occasion or event with Night Sky Lanterns...
#6  
Reply With Quote Old 10-04-2009, 01:23 PM



Posts: 276
Offline

Join Date: Dec 2007
Location: UK
Feedback: (0)
Thanked: 7 Times in 7 Posts
I deisabled express and payment pro and have done standadr for now but this error is coming up Parse error: syntax error, unexpected '<' in /home/sites/upvcdiy.co.uk/public_html/modules/gateway/PayPal/transfer.inc.php on line 119
what has happened now or what can i do to solve it ?
Thanks
George
#7  
Reply With Quote Old 10-04-2009, 01:29 PM

RWA



Posts: 2,747
Offline

Join Date: Dec 2005
Location: UK
Feedback: (0)
Thanked: 137 Times in 113 Posts
Quote:
Originally Posted by bigkipper View Post
I deisabled express and payment pro and have done standadr for now but this error is coming up Parse error: syntax error, unexpected '<' in /home/sites/upvcdiy.co.uk/public_html/modules/gateway/PayPal/transfer.inc.php on line 119
what has happened now or what can i do to solve it ?
Thanks
George
Did you read Lewis's reply?
#8  
Reply With Quote Old 10-04-2009, 01:31 PM



Posts: 276
Offline

Join Date: Dec 2007
Location: UK
Feedback: (0)
Thanked: 7 Times in 7 Posts
yeah i did but i dont a) know what a syntax is or b) how to fix it ?

Thanks

George
#9  
Reply With Quote Old 10-04-2009, 01:33 PM

RWA



Posts: 2,747
Offline

Join Date: Dec 2005
Location: UK
Feedback: (0)
Thanked: 137 Times in 113 Posts
Quote:
Originally Posted by bigkipper View Post
yeah i did but i dont a) know what a syntax is or b) how to fix it ?

Thanks

George
Lewis was pointing out there is already a paypal module, so no coding needed only need to input your paypal details, or are we misunderstanding what you are trying to do?
#10  
Reply With Quote Old 10-04-2009, 01:34 PM

Reply

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
Dascs.com - Brand New 2009 Dascs Cart Ecommerce Online Store Design dascs E-Commerce Development, Hosting Services and Website Design 69 26-11-2009 03:59 PM
The Ultimate In Ecommerce Solutions - Dascs Cart Brenz E-Commerce Development, Hosting Services and Website Design 4 27-03-2009 02:21 PM
Setting up a Cart Website iBuy Business Articles and Resources 10 31-08-2008 05:31 PM


All times are GMT. The time now is 08:46 PM. Fixed Width