1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
if (isset($_GET["pay"]) && isset($_GET["cid"]) && isset($_GET["lang"]) && isset($_GET["package"])) {
	$pay = $_GET["pay"];
	$cid = $_GET["cid"];
	$lang = $_GET["lang"];
	$package = $_GET["package"];
	
	if ($pay == "Alipay") {
		switch ($package) {
			case "A":
				$button = do_shortcode('[s2Member-Pro-AliPay-Button level="1" ccaps="" desc="托管套餐A" custom="93hosting.com" ra="550" rp="1" rt="Y" image="default" output="anchor" /]');
				break;
			case "B":
				$button = do_shortcode('[s2Member-Pro-AliPay-Button level="1" ccaps="" desc="托管套餐B" custom="93hosting.com" ra="700" rp="1" rt="Y" image="default" output="anchor" /]');
				break;
			case "C":
				$button = do_shortcode('[s2Member-Pro-AliPay-Button level="1" ccaps="" desc="无限托管" custom="93hosting.com" ra="999" rp="1" rt="Y" image="default" output="anchor" /]');
				break;
			default:
				$error .= "出错了! 支付的 package 丢失!";
				break;
		}

	} else if ($pay == "Paypal") {
		switch ($package) {
			case "A":
				break;
			case "B":
				break;
			case "C":
				break;
			default:
				$error .= "Something is wrong! Package in payment method is missing";
				break;

		}

	} //Finish Evaluating Payment Method

} else {
	$error .= "One of the variables are missing. Please return to the form and try again."
}

switch ($package) {
	case "A":
		$table_pack = "Hosting Plan A";
		break;
	case "B":
		$table_pack = "Hosting Plan B";
		break;
	case "C":
		$table_pack = "Unlimited Hosting";
		break;
}

if ($lang == "cn") { $table_lang = "Chinese"; } else if ($lang == "en") { $table_lang = "English"; }

	$output = '<table>
		<tbody>
		<tr>
			<td>Customer ID</td>
			<td>' . $cid . '</td>
		</tr>
		<tr>
			<td>Plan</td>
			<td>' . $table_pack . '</td>
		</tr>
		<tr>
			<td>Language</td>
			<td>' . $table_lang . '</td>
		</tr>
		<tr>
			<td>Button</td>
			<td>' . $button . '</td>
		</tr>
		</tbody>
		</table>';

return $output;