@@ -75,7 +75,7 @@ |
||
| 75 | 75 | * @param string $network |
| 76 | 76 | * @param integer $amount |
| 77 | 77 | * @param string $client_ref |
| 78 | - * @param string $quantity |
|
| 78 | + * @param integer $quantity |
|
| 79 | 79 | * |
| 80 | 80 | * @return stdClass |
| 81 | 81 | */ |
@@ -82,13 +82,13 @@ discard block |
||
| 82 | 82 | public function pinbased($network, $amount, $client_ref, $quantity = 1) |
| 83 | 83 | { |
| 84 | 84 | $request = [ |
| 85 | - 'user' => $this->options['username'], |
|
| 86 | - 'pass' => $this->options['password'], |
|
| 87 | - "refno" => $client_ref, |
|
| 88 | - "network" => $network, |
|
| 89 | - "sellvalue" => $amount, |
|
| 90 | - "count" => $quantity, |
|
| 91 | - "extra" => "", |
|
| 85 | + 'user' => $this->options['username'], |
|
| 86 | + 'pass' => $this->options['password'], |
|
| 87 | + "refno" => $client_ref, |
|
| 88 | + "network" => $network, |
|
| 89 | + "sellvalue" => $amount, |
|
| 90 | + "count" => $quantity, |
|
| 91 | + "extra" => "", |
|
| 92 | 92 | ]; |
| 93 | 93 | $reply = $this->soapclient->placeOrder($request); |
| 94 | 94 | return ($reply); |
@@ -108,13 +108,13 @@ discard block |
||
| 108 | 108 | public function pinless($network, $msisdn, $amount, $client_ref) |
| 109 | 109 | { |
| 110 | 110 | $request = [ |
| 111 | - 'user' => $this->options['username'], |
|
| 112 | - 'pass' => $this->options['password'], |
|
| 113 | - "refno" => $client_ref, |
|
| 114 | - "network" => $network, |
|
| 115 | - "sellvalue" => $amount, |
|
| 116 | - "count" => 1, |
|
| 117 | - "extra" => $msisdn, |
|
| 111 | + 'user' => $this->options['username'], |
|
| 112 | + 'pass' => $this->options['password'], |
|
| 113 | + "refno" => $client_ref, |
|
| 114 | + "network" => $network, |
|
| 115 | + "sellvalue" => $amount, |
|
| 116 | + "count" => 1, |
|
| 117 | + "extra" => $msisdn, |
|
| 118 | 118 | ]; |
| 119 | 119 | $reply = $this->soapclient->placeOrder($request); |
| 120 | 120 | return ($reply); |
@@ -123,8 +123,8 @@ discard block |
||
| 123 | 123 | public function getBalance() |
| 124 | 124 | { |
| 125 | 125 | $request = [ |
| 126 | - 'user' => $this->options['username'], |
|
| 127 | - 'pass' => $this->options['password'], |
|
| 126 | + 'user' => $this->options['username'], |
|
| 127 | + 'pass' => $this->options['password'], |
|
| 128 | 128 | ]; |
| 129 | 129 | $reply = $this->soapclient->fetchBalance($request); |
| 130 | 130 | return ($reply); |
@@ -144,8 +144,8 @@ discard block |
||
| 144 | 144 | public function getProducts() |
| 145 | 145 | { |
| 146 | 146 | $request = [ |
| 147 | - 'user' => $this->options['username'], |
|
| 148 | - 'pass' => $this->options['password'], |
|
| 147 | + 'user' => $this->options['username'], |
|
| 148 | + 'pass' => $this->options['password'], |
|
| 149 | 149 | ]; |
| 150 | 150 | $reply = $this->soapclient->fetchProducts($request); |
| 151 | 151 | return ($reply); |