Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement new payment gateways #115

Open
component6 opened this issue Apr 10, 2023 · 1 comment
Open

How to implement new payment gateways #115

component6 opened this issue Apr 10, 2023 · 1 comment
Labels

Comments

@component6
Copy link

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);

@fulopattila122
Copy link
Member

You need to call the above line in the boot method of your AppServiceProvider class.

For more info, see the gateway skeleton generator: https://github.com/vanilophp/payment-gateway-skeleton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants