cartalyst / stripe-laravel

Cartalyst Stripe package integration for Laravel.
BSD 3-Clause "New" or "Revised" License
335 stars 57 forks source link

Use STRIPE_KEY from database. #65

Closed rtfmfm closed 3 years ago

rtfmfm commented 3 years ago

Hello! Thank you for the package! It's very useful and saves me a lot of headaches. I'd like to be able to change Stripe Credentials from the web interface so I need to put them in the database and use them this way. Is it possible to achieve this with this package?

Thank you in advance!

GrahamCampbell commented 3 years ago

Yes, this is possible. You don't need this package. Just use the upstream stripe package.

rtfmfm commented 3 years ago

Yes, this is possible. You don't need this package. Just use the upstream stripe package.

@GrahamCampbell, Thank you for your reply! Unfortunately I can not tell if it's irony, or answer that is trying to help me...

GrahamCampbell commented 3 years ago

I am being serious.

$ composer require cartalyst/stripe
$client = new Cartalyst\Stripe\Stripe('YOUR-API-KEY', '2020-08-27');
rtfmfm commented 3 years ago

Thank you very much, @GrahamCampbell ! It worked!

brunogaspar commented 3 years ago

Thanks @GrahamCampbell