Store gateway config in database
Payum allows you store gateway configuration and credentials in your database. Later you may provide a backoffice so the admin can modify gateway through it. Payum Laravel Package contains Eloquent GatewayConfig model, which we are going to reuse in this example.
The database schema could be generated like this
The gateway config storage should be registered like this:
Supporting Payum
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:
Last updated