Open component6 opened 1 year ago
Greetings! I have a question about the implementation of new payment gateways
For example: I created a class app/CustomPayPaymentGateway.php that implements the interface PaymentGateway
Where and how can I register a new gateway? I don't understand the line: PaymentGateways::register('paypal', PaypalPaymentGateway::class);
PaymentGateways::register('paypal', PaypalPaymentGateway::class);
You need to call the above line in the boot method of your AppServiceProvider class.
AppServiceProvider
For more info, see the gateway skeleton generator: https://github.com/vanilophp/payment-gateway-skeleton
Greetings! I have a question about the implementation of new payment gateways
For example: I created a class app/CustomPayPaymentGateway.php that implements the interface PaymentGateway
Where and how can I register a new gateway? I don't understand the line:
PaymentGateways::register('paypal', PaypalPaymentGateway::class);