Hi everyone ! Has someone tried to use solidus_str...
# support
s
Hi everyone ! Has someone tried to use solidus_stripe with the starter frontend ? I tried to follow the steps on this link https://github.com/solidusio/solidus_stripe but it’s not working I put the following env variables in a .env file SOLIDUS_STRIPE_API_KEY=“my test stripe_api_key” SOLIDUS_STRIPE_PUBLISHABLE_KEY=“my test stripe_publishable_key” In spree.rb: config.static_model_preferences.add( Spree:PaymentMethod:StripeCreditCard, ‘stripe_env_credentials’, secret_key: ENV[‘SOLIDUS_STRIPE_API_KEY’], publishable_key: ENV[‘SOLIDUS_STRIPE_PUBLISHABLE_KEY’], server: Rails.env.production? ? ‘production’ : ‘test’, test_mode: !Rails.env.production? ) config.static_model_preferences.add( Spree:PaymentMethod:StripeCreditCard, ‘stripe_env_credentials’, secret_key: ENV[‘SOLIDUS_STRIPE_SECRET_KEY’], publishable_key: ENV[‘SOLIDUS_STRIPE_PUBLISHABLE_KEY’], stripe_country: ‘BE’, v3_elements: false, v3_intents: false ) I ’m using rails 6 so I can’t use bin/dev as was mentioned in the readme. “Visit
/admin/payments
and create a new Stripe payment using the static preferences.” /admin/payments => no route ...Do you mean
/admin/payments_methods ?
k
Hey there, did you consider this banner?
it’s on the README, just asking to understand if you switched to the linked branch before trying. Maybe we missed something in the other branch readme
s
Hey Kenny, No I haven’t. I use the source for solidus_stripe v5
Hello Kenny, I have a few questions concerning solidus_stripe. Do we need Rails 7 to use solidus_stripe with the starter frontend ?Because it’s mentioned in https://github.com/solidusio/solidus_stripe that we use run bin/dev to start both the sandbox rail server and the file watcher through Foreman. Thank you very much
Actually I’m very disappointed by Solidus. Telling me to use the new starter frontend to tell me afterwards that solidus_stripe doesn’t work with it. Finally now it ’s supposed to work but I follow the doc and it doesn’t. I ask a question on support and you just reply : did you consider this banner ? I respond and then nothing ! What’s going on ? I’m tired of waiting. I have a business. I know you don’t care. But I have to tell my customer to pay me in another way. What do I do ? PLEASE
k
Hey @Sébastien Ternest, where did we say that now Stripe is supposed to work with the starter frontend? The solidus installer at the moment only presents paypal as a payment option, which is the only one we converted already. We are actively working on Stripe these days, so it’s pretty normal that it doesn’t work yet.
I’m sorry that this might be frustrating, and I think it’s our fault not communicating better that it’s better not to use stripe with the starter frontend yet.
BTW, I didn’t try but I think that you can still use it with the old branch (v4) and the starter frontend. Maybe there will be some work to do, which I can help troubleshooting. If possibile I suggest to wait for v5 which is a total rewrite of the integration.
s
Thanks Kenny ! I’ll try to use the v4 . The banner says that solidus_stripe only supports integration with a single Stripe account. I thought you were talking about the v5
k
Yes, it’s not clear, we should rephrase that
it should be: just use v4
and in v4 README there should be some instructions for how to use it with the starter. If you want to help building the instructions when you try, that would be appreciated
Again, I can help with any issue you find
s
Thank you Kenny ! Sure I can be of assistance for the instructions. But keep in mind that I’m just a entry level programmer 😉
Hello, I tried solidus_stripe v4.4, I Run from the command line:
Copy code
bundle add solidus_stripe
bundle exec rails g solidus_stripe:install
I navigated to Settings > Payments > Payment Methods in the admin panel and created a new payment method that uses Stripe by selecting
Stripe credit card
under Type in the New Payment Method form and saving. Configure via database configuration I ve stored my Stripe credentials in the database and filled the new fields in the form, selecting
custom
(default) in the Preference Source field. Here is how I created my payments method.. It’s not working. When I push on the button => I get “Payment source can’t be blank
k
can you check if there are JS erros on the page?
s
Uncaught ReferenceError: $ is not defined at stripe-payment-request-button-shared.source.js71 at stripe-payment-request-button-shared.source.js1601
k
Ok, that’s because the new starter doesn’t have jquery as dependency, while solidus_stripe requires it
You should add in your
vendor/assets/javascripts/spree/frontend/all.js
, before `//= require spree/frontend/solidus_stripe`:
Copy code
//= require jquery
Hello @Sébastien Ternest, can you help me understand if this is fixed? I’d like to add some notes in the v4 README about how to make the extension work with the starter frontend.