jalendport / craft-stripecheckout

Bringing the power of Stripe Checkout to your Craft templates.
MIT License
43 stars 9 forks source link

Wrong database table when click on "Stripe Checkout" in CraftCMS 3 Admin #1

Closed landandwater closed 6 years ago

landandwater commented 6 years ago

When I click on Stripe Checkout in my Craft 3 admin, I get this error. It's looking for the wrong table name. I checked the database, and the transactions are in it, but the table name it should be looking for is 'uislthd_crafty.craft_stripecheckout_charges', and not 'uislthd_crafty.stripecheckout_charges'

Internal Server Error SQLSTATE[42S02]: Base table or view not found: 1146 Table 'uislthd_crafty.stripecheckout_charges' doesn't exist The SQL being executed was: SELECT * FROM stripecheckout_charges ORDER BY dateCreated DESC

lukeyouell commented 6 years ago

@landandwater looks like I may have missed something here, but I'm unable to replicate your error.

Please can you replace:

stripecheckout_charges

on lines 27 & 32 of services/RecordService.php with:

{{%stripecheckout_charges}}

and see if that does the trick?

landandwater commented 6 years ago

@lukeyouell Works, Thank you!

lukeyouell commented 6 years ago

@landandwater good to hear! I'll have the fix released at some point tomorrow.