Welcome Guest, Not a member yet? Register   Sign In
Payment gateways
#1

[eluser]Iwasignited[/eluser]
Hi everyone.
I'm wondering is there any payment gateway library for CI (2co, google checkout, etc..). If not, can we use the library downloaded from phpclasses?

Thanks
#2

[eluser]Tominator[/eluser]
Just type to google: "your gateway codeigniter":
http://codeigniter.com/wiki/PayPal_Lib/ PayPal
http://github.com/benedmunds/CodeIgniter...ut-Library looks like G. CHO.
...

If you want to use some from phpclasses, you have to rewrite it, to be compatible with CI.
#3

[eluser]Iwasignited[/eluser]
Thank you for your informations.
I'd like to ask how can we make classes compatible with CI? Could you show me an example please?
Thanks again
#4

[eluser]Tominator[/eluser]
I'm sorry I was wrong. You have rewrite it, when you want to extend existing or rewrite default.

But everything what you need is copy it to:
[root]/system/application/libraries/

They have to have the same name as is class name, that means:

Correct one:
Paypal.php
Code:
class Paypal {
...
}

Wrong:
Paypal.php
Code:
class Paypal_ThisMusntBeThere {
...
}

Tom.




Theme © iAndrew 2016 - Forum software by © MyBB