Documentation is available at standard_shop_payment.obj.php
1 <?php
2 #IPW METAZO 2.0 OBJECT
3 $_objoldid = 314153;
4 function objfile_314153 () {
5 $obj = owNew('template');
6 $objdata['name'] = "standard_shop_payment";
7 $objdata['content'] = "{include file=\"standard_shop_orderdetails\" context=\"payment\"}
8 <P>
9 Her vil være indlejring af kreditkort-transaktion fra godkendt betalingsgateway efter eget valg.
10 <P>
11 Når betaling er gennemført, føres automatisk videre til ordreafslutning:<P>
12 <input class=\"extshopbutton\" type=\"button\" value=\"Gå til ordreafslutning\" onclick=\"location.href='{\$me}&_ext={\$_ext}&_extcf={\$_extcf}&_cmd=paymentaccept'\">
13
14 {*
15 {if \$result.paymentid == 313904}
16
17 {literal}
18 <script LANGUAGE=\"JavaScript\"><!--
19 newwin = null;
20 function doPopup(f) {
21 newwin = window.open('', 'Betaling','scrollbars,status,width=550,height=600');
22 newwin.focus();
23 if(!self.name) { self.name = 'shopwin'; }
24 if (!newwin.opener) { newwin.opener = self; }
25 f.opener.value = self.name;
26 return true;
27 }
28 //-->
29 </SCRIPT>
30 {/literal}
31 <p>Tryk på "betal" for at aktivere DIBS betalingsvindue.</p>
32 <p>For at teste en betaling kan følgende testkort informationer benyttes:</p>
33
34 <p>Kortnummer: 5019100000000000<br>
35 Udløbsdato: 06/05<br>
36 Kontrolværdi: 684</p>
37 <p>
38 <form method=\"post\" action=\"https://payment.architrade.com/cashreg.pfml\" onsubmit=\"return doPopup(this);\" target=\"Betaling\">
39 <input type=\"hidden\" name=\"test\" value=\"foo\">
40 <input type=\"hidden\" name=\"opener\" value=\"\">
41 <input type=\"hidden\" name=\"merchant\" value=\"4154645\">
42 <input type=\"hidden\" name=\"orderid\" value=\"1234\">
43
44 <input type=\"hidden\" name=\"lang\" value=\"da\">
45 <input type=\"hidden\" name=\"color\" value=\"blue\">
46 <input type=\"hidden\" name=\"amount\" value=\"128061\">
47 <input type=\"hidden\" name=\"currency\" value=\"208\">
48 <input type=\"hidden\" name=\"accepturl\" value=\"{\$me}&_ext={\$_ext}&_extcf={\$_extcf}&_cmd=paymentaccept\">
49 <!-- <input type=\"hidden\" name=\"callbackurl\" value=\"http://www.dibs.dk/index.php?id=290\">
50 <input type=\"hidden\" name=\"cancelurl\" value=\"http://www.dibs.dk/index.php?id=290\">-->
51 <input type=\"hidden\" name=\"delivery1.Navn\" value=\"Jens Hansen\">
52 <input type=\"hidden\" name=\"delivery2.Adresse\" value=\"Holger Danskes Vej 40b, 3\">
53 <input type=\"hidden\" name=\"delivery3.Postnummer\" value=\"2000\">
54 <input type=\"hidden\" name=\"delivery4.By\" value=\"Frederiksberg\">
55 <input type=\"hidden\" name=\"delivery5.Telefon\" value=\"70203077\">
56 <input type=\"hidden\" name=\"delivery6.Email\" value=\"info@dibs.dk\">
57
58 <input type=\"hidden\" name=\"ordline0-1\" value=\"Varenummer\">
59 <input type=\"hidden\" name=\"ordline0-2\" value=\"Beskrivelse\">
60 <input type=\"hidden\" name=\"ordline0-3\" value=\"Antal\">
61 <input type=\"hidden\" name=\"ordline0-4\" value=\"Pris (DKK)\">
62 <input type=\"hidden\" name=\"ordline1-1\" value=\"102\">
63 <input type=\"hidden\" name=\"ordline1-2\" value=\"Æblemost\">
64 <input type=\"hidden\" name=\"ordline1-3\" value=\"8\">
65 <input type=\"hidden\" name=\"ordline1-4\" value=\"100.13\">
66 <input type=\"hidden\" name=\"ordline2-1\" value=\"201\">
67 <input type=\"hidden\" name=\"ordline2-2\" value=\"Gyldne sko\">
68 <input type=\"hidden\" name=\"ordline2-3\" value=\"1\">
69 <input type=\"hidden\" name=\"ordline2-4\" value=\"50.12\">
70 <input type=\"hidden\" name=\"ordline3-1\" value=\"111\">
71 <input type=\"hidden\" name=\"ordline3-2\" value=\"Æbler\">
72 <input type=\"hidden\" name=\"ordline3-3\" value=\"8\">
73 <input type=\"hidden\" name=\"ordline3-4\" value=\"80.12\">
74
75 <input type=\"hidden\" name=\"ordline4-1\" value=\"864\">
76 <input type=\"hidden\" name=\"ordline4-2\" value=\"Ål\">
77 <input type=\"hidden\" name=\"ordline4-3\" value=\"10\">
78 <input type=\"hidden\" name=\"ordline4-4\" value=\"1000.12\">
79 <input type=\"hidden\" name=\"priceinfo1.Leveringsomkostninger\" value=\"50.12\">
80 <input type=\"hidden\" name=\"priceinfo2.Total\" value=\"1280.61\">
81 <input type=\"submit\" name=\"next\" value=\"Betal med kreditkort\">
82 </form>
83 {else}
84 <form action=\"{\$me}\" method=\"post\">
85 <input type=\"hidden\" name=\"_ext\" value=\"{\$_ext}\">
86 <input type=\"hidden\" name=\"_extcf\" value=\"{\$_extcf}\">
87 <input type=\"hidden\" name=\"_cmd\" value=\"processaccept\">
88 <input type=\"hidden\" name=\"_ext_goto\" value=\"finish\">
89 <input type=\"submit\" value=\"Godkend bestilling\">
90 </form>
91 {/if}
92
93 *}";
94 $objdata['param'] = "";
95 $objdata['setting'] = "";
96 $objdata['tpltype'] = "2";
97 $objdata['header'] = "";
98 $objdata['style'] = ".extshoptablebg {
99 BACKGROUND-COLOR: #a9b8c2
100 }
101 .extshopcolorcell {
102 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #dce1e5
103 }
104 .extshoplightcell {
105 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #ececec
106 }
107 .extshopdarkcell {
108 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #c0c8d0
109 }
110 .extshopheader {
111 PADDING-RIGHT: 4px; PADDING-LEFT: 4px; FONT-WEIGHT: bold; FONT-SIZE: 85%; BACKGROUND-IMAGE: url(img/design/standard/extbg.gif); COLOR: #ffffff; WHITE-SPACE: nowrap; HEIGHT: 24px; BACKGROUND-COLOR: #006699
112 }
113 .extshopbutton {
114 background-color: #c0c8d0; font-style: bold; font-size: 80%; font-weight: bold;
115 }";
116 $objdata['doctype'] = "0";
117 $obj->createObject($objdata);
118 return $obj;
119 }
120 ?>
Documentation generated on Thu, 9 Jun 2005 06:53:29 +0200 by phpDocumentor 1.2.3