ich Setup die payum Paypal Rest. Credit card purchase in meine Laravel App für die Zahlung mit Kreditkarte haben, ist alles festgelegt ist, aber es ist mir gegeben Ausnahme wie:Laravel payum und paypal Rest
Speicher für Modell Payum \ Paypal \ Erholung \ Model \ PaymentDetails wurde nicht registriert. Es gibt Speicher für das nächste Modell: Payum \ Core \ Modell \ Payment, Payum \ Core \ Modell \ Arrayobject, Payum \ Core \ Modell \ Auszahlung.
AppServiceProvider.php
//For payment gateway...
$this->app->resolving('payum.builder', function(\Payum\Core\PayumBuilder $payumBuilder) {
$payumBuilder
// this method registers filesystem storages, consider to change them to something more
// sophisticated, like eloquent storage
->addDefaultStorages()
//->getPayum();
->addGateway('paypal_ec', [
'factory' => 'paypal_express_checkout',
'username' => config('payment.paypalusername'),
'password' => config('payment.paypalpassword'),
'signature' => config('payment.paypalsignature'),
'sandbox' => true
])
->addGateway('paypalRest', [
'factory' => 'paypal_rest',
'client_id' => config('payment.paypalclientid'),
'client_secret' => config('payment.paypalsecret'),
'config_path' => '%kernel.root_dir%/config/sdk_config.ini'
]);
});
prepare.php
$storage = $this->getPayum()->getStorage('Payum\Paypal\Rest\Model\PaymentDetails');
$payment = $storage->create();
.
.
.
Wo ich Speicher für Modell Payum\Paypal\Rest\Model\PaymentDetails
registrieren?