Store gateway config in database
<?php
Schema::create('payum_gateway_configs', function($table) {
/** @var \Illuminate\Database\Schema\Blueprint $table */
$table->bigIncrements('id');
$table->text('config');
$table->string('factoryName');
$table->string('gatewayName');
$table->timestamps();
});// bootstrap/start.php
use Payum\LaravelPackage\Storage\EloquentStorage;
use Payum\LaravelPackage\Model\GatewayConfig;
App::resolving('payum.builder', function(\Payum\Core\PayumBuilder $payumBuilder) {
$payumBuilder
->setGatewayConfigStorage(new EloquentStorage(GatewayConfig::class))
;
});Supporting Payum
Last updated