Skip to content

Commit 0fb7e3d

Browse files
Updated VTCPay gateway.
1 parent 7fbdf51 commit 0fb7e3d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/Facades/VTCPay/Gateway.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use Illuminate\Support\Facades\Facade;
1212

1313
/**
14+
* @method static \Omnipay\VtcPay\Message\PurchaseRequest purchase(array $options = [])
15+
* @method static \Omnipay\VtcPay\Message\CompletePurchaseRequest completePurchase(array $options = [])
16+
*
1417
* @author Vuong Minh <vuongxuongminh@gmail.com>
1518
* @since 1.0.0
1619
*/
@@ -21,6 +24,20 @@ class Gateway extends Facade
2124
*/
2225
protected static function getFacadeAccessor()
2326
{
24-
return static::$app['omnipay']->gateway('vtcpay');
27+
return static::$app['omnipay']->gateway('VTCPay');
28+
}
29+
30+
/**
31+
* Create a request to accept notification.
32+
*
33+
* This is an alias of [[acceptNotification()]] for sync with style standard of another gateway.
34+
*
35+
* @param array $options
36+
*
37+
* @return \Omnipay\VtcPay\Message\AcceptNotificationRequest
38+
*/
39+
public function notification(array $options = [])
40+
{
41+
return static::getFacadeAccessor()->acceptNotification($options);
2542
}
2643
}

0 commit comments

Comments
 (0)