src/vnpayment/PaymentGateway.php 1 location
|
@@ 166-170 (lines=5) @@
|
| 163 |
|
$data = $requestData->get(); |
| 164 |
|
$data[0] = $commandUrls[$command]; |
| 165 |
|
|
| 166 |
|
if ($command === self::RC_PURCHASE) { |
| 167 |
|
return ['redirect_url' => $httpClient->createRequest()->setUrl($data)->getFullUrl()]; |
| 168 |
|
} else { |
| 169 |
|
return $httpClient->get($data)->send()->getData(); |
| 170 |
|
} |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
/** |
src/onepay/PaymentGateway.php 1 location
|
@@ 158-162 (lines=5) @@
|
| 155 |
|
$data = $requestData->get(); |
| 156 |
|
$data[0] = $commandUrls[$command]; |
| 157 |
|
|
| 158 |
|
if ($command === self::RC_PURCHASE) { |
| 159 |
|
return ['redirect_url' => $httpClient->createRequest()->setUrl($data)->getFullUrl()]; |
| 160 |
|
} else { |
| 161 |
|
return $httpClient->get($data)->send()->getData(); |
| 162 |
|
} |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
/** |