src/Gateways/Wechat.php 1 location
|
@@ 364-375 (lines=12) @@
|
361 |
|
* |
362 |
|
* @return Response|Collection |
363 |
|
*/ |
364 |
|
protected function makePay($gateway) |
365 |
|
{ |
366 |
|
$app = new $gateway(); |
367 |
|
|
368 |
|
if ($app instanceof GatewayInterface) { |
369 |
|
return $app->pay($this->gateway, array_filter($this->payload, function ($value) { |
370 |
|
return $value !== '' && !is_null($value); |
371 |
|
})); |
372 |
|
} |
373 |
|
|
374 |
|
throw new InvalidGatewayException("Pay Gateway [{$gateway}] Must Be An Instance Of GatewayInterface"); |
375 |
|
} |
376 |
|
} |
377 |
|
|
src/Gateways/Alipay.php 1 location
|
@@ 338-349 (lines=12) @@
|
335 |
|
* |
336 |
|
* @return Response|Collection |
337 |
|
*/ |
338 |
|
protected function makePay($gateway) |
339 |
|
{ |
340 |
|
$app = new $gateway(); |
341 |
|
|
342 |
|
if ($app instanceof GatewayInterface) { |
343 |
|
return $app->pay($this->gateway, array_filter($this->payload, function ($value) { |
344 |
|
return $value !== '' && !is_null($value); |
345 |
|
})); |
346 |
|
} |
347 |
|
|
348 |
|
throw new InvalidGatewayException("Pay Gateway [{$gateway}] Must Be An Instance Of GatewayInterface"); |
349 |
|
} |
350 |
|
} |
351 |
|
|