@@ -35,6 +35,10 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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; |