You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use eloquent storage for my payments and my tables have another name, another columns titles but fully compatible with Payum. I implement my models like as Recca0120\LaravelPayum\Model\Payment::class and I attempted to redeclare in my service provider
(loaded after your):
then I tried run this payment and receive that error: "table [payum_payments] not found in database". That speaks about this fact - models are hardcoded into library and I can't use custom.
Solution:
LaravelPayumServiceProvider Add method, where I can set my $builder settings, and if they are not set, use by default from library. Then I extend ServiceProvider class and overwrite there him.
Method getStorage of PayumService class hardcoded library EloquentPayment model. Change it.
What do you think? Maybe I create PR?
The text was updated successfully, but these errors were encountered:
Hello,
I use eloquent storage for my payments and my tables have another name, another columns titles but fully compatible with Payum. I implement my models like as
Recca0120\LaravelPayum\Model\Payment::class
and I attempted to redeclare in my service provider(loaded after your):
then I tried run this payment and receive that error:
"table [payum_payments] not found in database"
. That speaks about this fact - models are hardcoded into library and I can't use custom.Solution:
$builder
settings, and if they are not set, use by default from library. Then I extend ServiceProvider class and overwrite there him.getStorage
ofPayumService
class hardcoded libraryEloquentPayment
model. Change it.What do you think? Maybe I create PR?
The text was updated successfully, but these errors were encountered: