Completed
Push — master ( c1c0f9...a9f775 )
by Nicolaas
01:45
created
code/DpsPxPayComs.php 1 patch
Doc Comments   +28 added lines patch added patch discarded remove patch
@@ -51,18 +51,30 @@  discard block
 block discarded – undo
51 51
     * order details
52 52
     **/
53 53
     protected $AmountInput = 0;
54
+
55
+    /**
56
+     * @param double $v
57
+     */
54 58
     public function setAmountInput($v)
55 59
     {
56 60
         $this->AmountInput = $v;
57 61
     }
58 62
 
59 63
     protected $MerchantReference = "";
64
+
65
+    /**
66
+     * @param integer $v
67
+     */
60 68
     public function setMerchantReference($v)
61 69
     {
62 70
         $this->MerchantReference = $v;
63 71
     }
64 72
 
65 73
     protected $CurrencyInput = "NZD";
74
+
75
+    /**
76
+     * @param string $v
77
+     */
66 78
     public function setCurrencyInput($v)
67 79
     {
68 80
         $this->CurrencyInput = $v;
@@ -84,11 +96,19 @@  discard block
 block discarded – undo
84 96
     * details of the redirection
85 97
     **/
86 98
     protected $UrlFail = "";
99
+
100
+    /**
101
+     * @param false|string $v
102
+     */
87 103
     public function setUrlFail($v)
88 104
     {
89 105
         $this->UrlFail = $v;
90 106
     }
91 107
     protected $UrlSuccess = "";
108
+
109
+    /**
110
+     * @param false|string $v
111
+     */
92 112
     public function setUrlSuccess($v)
93 113
     {
94 114
         $this->UrlSuccess = $v;
@@ -98,11 +118,19 @@  discard block
 block discarded – undo
98 118
      * Details to use stored cards
99 119
      */
100 120
     protected $EnableAddBillCard = 0;
121
+
122
+    /**
123
+     * @param integer $v
124
+     */
101 125
     public function setEnableAddBillCard($v)
102 126
     {
103 127
         $this->EnableAddBillCard = $v;
104 128
     }
105 129
     protected $BillingId = 0;
130
+
131
+    /**
132
+     * @param string $v
133
+     */
106 134
     public function setBillingId($v)
107 135
     {
108 136
         $this->BillingId = $v;
Please login to merge, or discard this patch.
code/DpsPxPayStoredPayment.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -123,6 +123,9 @@
 block discarded – undo
123 123
 
124 124
 
125 125
 
126
+    /**
127
+     * @param OrderForm $form
128
+     */
126 129
     public function processViaPostRatherThanPxPay($data, $form, $cardToUse)
127 130
     {
128 131
 
Please login to merge, or discard this patch.
code/DpsPxPost.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * @see DPSPayment->getPaymentFormRequirements() for an example on how
117 117
      * this is implemented.
118 118
      *
119
-     * @return array
119
+     * @return FieldList
120 120
      */
121 121
     public function getPaymentFormRequirements()
122 122
     {
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     /**
227 227
      * are you running in test mode?
228 228
      *
229
-     * @return Boolean
229
+     * @return boolean|null
230 230
      */
231 231
     protected function isTest()
232 232
     {
Please login to merge, or discard this patch.
code/thirdparty/PxPay_Curl.inc.php 1 patch
Doc Comments   +30 added lines patch added patch discarded remove patch
@@ -35,6 +35,10 @@  discard block
 block discarded – undo
35 35
   # Return the value of the specified top-level attribute.
36 36
   # This method can only return attributes of the root element.
37 37
   # If the attribute is not found, return "".
38
+
39
+  /**
40
+   * @param string $attribute
41
+   */
38 42
   function get_attribute($attribute)
39 43
   {
40 44
     $attributes = $this->xml_value_[0]["attributes"];
@@ -46,6 +50,10 @@  discard block
 block discarded – undo
46 50
   # For example, "Link/ServerOk" refers to the ServerOk element
47 51
   # nested in the Link element (nested in the root element).
48 52
   # If the element is not found, return "".
53
+
54
+  /**
55
+   * @param string $element
56
+   */
49 57
   function get_element_text($element)
50 58
   {
51 59
     $index = $this->get_element_index($element, 0);
@@ -128,6 +136,10 @@  discard block
 block discarded – undo
128 136
 	#******************************************************************************
129 137
 	# Create a request for the PxPay interface
130 138
 	#******************************************************************************
139
+
140
+	/**
141
+	 * @param PxPayRequest $request
142
+	 */
131 143
 	function makeRequest($request)
132 144
 	{
133 145
 		#Validate the Request
@@ -203,6 +215,9 @@  discard block
 block discarded – undo
203 215
 		
204 216
 	}
205 217
 	
218
+	/**
219
+	 * @param integer $EnableBillAddCard
220
+	 */
206 221
 	function setEnableAddBillCard($EnableBillAddCard){
207 222
 	 $this->EnableAddBillCard = $EnableBillAddCard;
208 223
 	}
@@ -286,6 +301,9 @@  discard block
 block discarded – undo
286 301
 	
287 302
 	}
288 303
 
304
+	/**
305
+	 * @param integer $BillingId
306
+	 */
289 307
 	function setBillingId($BillingId){
290 308
 		$this->BillingId = $BillingId;
291 309
 	}
@@ -298,6 +316,10 @@  discard block
 block discarded – undo
298 316
 	function getTxnType(){
299 317
 		return $this->TxnType;
300 318
 	}
319
+
320
+	/**
321
+	 * @param string $CurrencyInput
322
+	 */
301 323
 	function setCurrencyInput($CurrencyInput){
302 324
 		$this->CurrencyInput = $CurrencyInput;
303 325
 	}
@@ -307,6 +329,10 @@  discard block
 block discarded – undo
307 329
 	function setMerchantReference($MerchantReference){
308 330
 		$this->MerchantReference = $MerchantReference;
309 331
 	}
332
+
333
+	/**
334
+	 * @return integer
335
+	 */
310 336
 	function getMerchantReference(){
311 337
 		return $this->MerchantReference;
312 338
 	}
@@ -334,6 +360,10 @@  discard block
 block discarded – undo
334 360
 	function setTxnData3($TxnData3){
335 361
 		$this->TxnData3 = $TxnData3;
336 362
 	}
363
+
364
+	/**
365
+	 * @param string $TxnId
366
+	 */
337 367
 	function setTxnId( $TxnId)
338 368
 	{
339 369
 		$this->TxnId = $TxnId;
Please login to merge, or discard this patch.