emreacar / Stripe-Payment-For-Opencart-3.x

Stripe payment module for opencart 3.x
http://www.stripe.com
30 stars 30 forks source link

Table Not Found #21

Open aarti1697 opened 3 years ago

aarti1697 commented 3 years ago

The table oc_stripe_customer not Found

Please let us know the table structure for this table.

yakkatv commented 2 years ago

same here any help please modification/system/engine/action.php(79): ControllerExtensionPaymentStripe->index() in /home/xxxx/domains/xxxx/public_html/system/library/db/mysqli.php on line 48

codelovercc commented 1 year ago

I just use the SQL in the /upload/admin/model/extension/payment/stripe.php method Install to create these tables manually. I don't know why the method Install has not been called, my opencart version is 3.0.0.8

codelovercc commented 1 year ago

After reading and debugging the source code. I've found that this issue is caused by the controller permission check in the file upload/admin/controller/extension/payment/stripe.php line 199 and line 207. if ($this->user->hasPermission('modify', 'extension/extension')) should be if ($this->user->hasPermission('modify', 'extension/payment/stripe')). By changing extension/extension to extension/payment/stripe, this issue is solved. The tables are created correctly when installing and will be deleted while uninstalling.