@@ -36,12 +36,76 @@ public function getService()
3636 return $ this ->action ;
3737 }
3838
39+ public function getAccountType ()
40+ {
41+ return $ this ->getParameter ('accountType ' );
42+ }
43+
44+ /**
45+ * Set account type.
46+ *
47+ * This is ignored for all PAYPAL transactions.
48+ *
49+ * @param string $value E: Use the e-commerce merchant account. (default)
50+ * M: Use the mail/telephone order account. (if present)
51+ * C: Use the continuous authority merchant account. (if present)
52+ */
53+ public function setAccountType ($ value )
54+ {
55+ return $ this ->setParameter ('accountType ' , $ value );
56+ }
57+
58+ public function getApplyAVSCV2 ()
59+ {
60+ return $ this ->getParameter ('applyAVSCV2 ' );
61+ }
62+
63+ /**
64+ * Set the apply AVSCV2 checks.
65+ *
66+ * @param int $value 0: If AVS/CV2 enabled then check them. If rules apply, use rules. (default)
67+ * 1: Force AVS/CV2 checks even if not enabled for the account. If rules apply
68+ * use rules.
69+ * 2: Force NO AVS/CV2 checks even if enabled on account.
70+ * 3: Force AVS/CV2 checks even if not enabled for account but DON'T apply any
71+ * rules.
72+ */
73+ public function setApplyAVSCV2 ($ value )
74+ {
75+ return $ this ->setParameter ('applyAVSCV2 ' , $ value );
76+ }
77+
78+ public function getApply3DSecure ()
79+ {
80+ return $ this ->getParameter ('apply3DSecure ' );
81+ }
82+
83+ /**
84+ * Whether or not to apply 3D secure authentication.
85+ *
86+ * This is ignored for PAYPAL, EUROPEAN PAYMENT transactions.
87+ *
88+ * @param int $value 0: If 3D-Secure checks are possible and rules allow, perform the
89+ * checks and apply the authorisation rules. (default)
90+ * 1: Force 3D-Secure checks for this transaction if possible and
91+ * apply rules for authorisation.
92+ * 2: Do not perform 3D-Secure checks for this transactios and always
93+ * authorise.
94+ * 3: Force 3D-Secure checks for this transaction if possible but ALWAYS
95+ * obtain an auth code, irrespective of rule base.
96+ */
97+ public function setApply3DSecure ($ value )
98+ {
99+ return $ this ->setParameter ('apply3DSecure ' , $ value );
100+ }
101+
39102 protected function getBaseData ()
40103 {
41104 $ data = array ();
42105 $ data ['VPSProtocol ' ] = '2.23 ' ;
43106 $ data ['TxType ' ] = $ this ->action ;
44107 $ data ['Vendor ' ] = $ this ->getVendor ();
108+ $ data ['AccountType ' ] = $ this ->getAccountType () ?: 'E ' ;
45109
46110 return $ data ;
47111 }
0 commit comments