Sometime you asked to store payment gateway credentials to database. If this is your case read Configure payment in backend chapter. Here we would describe how you can add an api defined as service.
Api factory
First, we have to create an api factory. The factory would create the desired api using database or what ever else you want.
As you could see we use container to build paypal api. Feel free to change it to suit your needs. Now we have to create an api service which is created by the factory one:
Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider: