src/Gateways/Wechat.php 1 location
|
@@ 227-236 (lines=10) @@
|
| 224 |
|
* |
| 225 |
|
* @return Response |
| 226 |
|
*/ |
| 227 |
|
protected function makePay($gateway) |
| 228 |
|
{ |
| 229 |
|
$app = new $gateway($this->config); |
| 230 |
|
|
| 231 |
|
if ($app instanceof GatewayInterface) { |
| 232 |
|
return $app->pay($this->gateway, $this->payload); |
| 233 |
|
} |
| 234 |
|
|
| 235 |
|
throw new GatewayException("Pay Gateway [{$gateway}] Must Be An Instance Of GatewayInterface", 2); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
/** |
| 239 |
|
* Magic pay. |
src/Gateways/Alipay.php 1 location
|
@@ 217-226 (lines=10) @@
|
| 214 |
|
* |
| 215 |
|
* @return Response|Collection |
| 216 |
|
*/ |
| 217 |
|
protected function makePay($gateway) |
| 218 |
|
{ |
| 219 |
|
$app = new $gateway($this->config); |
| 220 |
|
|
| 221 |
|
if ($app instanceof GatewayInterface) { |
| 222 |
|
return $app->pay($this->gateway, $this->payload); |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
throw new GatewayException("Pay Gateway [{$gateway}] Must Be An Instance Of GatewayInterface", 2); |
| 226 |
|
} |
| 227 |
|
|
| 228 |
|
/** |
| 229 |
|
* Magic pay. |