Subversion-Projekte lars-tiefland.ci

Revision

Revision 731 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
731 lars 1
<?php
2
 
3
/**
4
 *
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com>
7
 * @copyright 2016
8
 * @version $Rev: 731 $
9
 */
10
 
11
require_once "module/creditcard/paypal_express.php";
12
require_once "module/creditcard/paypal.php";
13
require_once "module/creditcard/paypalPlus.php";
14
 
15
class Payment extends CI_Controller
16
{
17
	public function GetExpressCheckoutDetails()
18
	{
19
		if ($_GET["mode"])
20
		{
21
			if ($_GET["mode"] == "paypal")
22
			{
23
				$cc = new paypal();
24
			}
25
			elseif ($_GET["mode"] == "paypalplus")
26
			{
27
				$cc = new paypalplus();
28
			}
29
		}
30
		else
31
		{
32
			$cc = new paypal_express();
33
		}
34
 
35
		$cc->getCustomerData();
36
	}
37
}
38
 
39
?>