How to enable Stripe?

Hello guys,
It seems that the version 7.2 includes Stripe now, but I cannot find anyway to configure it in the admin panel. No reference to it.

I’ve added few lines in the config.yml but I’m not sure it is correct.

How did you installed and enable Stripe?

Thank you

Hello, I had same problem too.

So I try any code excute in rails console.
I referred ↓ file.
features/support/feature_tests/data.rb.

List of I did:

  1. Add pry-rails gem to Gemfile
  2. bundle
  3. rails c
  4. TransactionService::API::Api.settings.provision(community_id: 1, payment_gateway: :stripe, payment_process: :preauthorize, active: true)
  5. FeatureFlagService::API::Api.features.enable(community_id: 1, features: [:stripe])

*4,5: community_id is maybe 1. but if not 1, change the value.

Now, you can show “Payment Settings” in your admin panel.

After, you can try ↓ document.
https://help.sharetribe.com/payments-and-transactions/online-payments-with-stripe/how-to-configure-your-stripe-account-and-get-api-keys-for-your-marketplace

It’s working on my local enviroment. But I don’t know it’s correct method…(´・ω・`)

Thanks for sharing.
I’m doing slightly different now.

I run:
bundle exec rails c -e production

Then:
TransactionService::API::Api.processes.create(community_id: 1, process: :preauthorize, author_is_seller: true)

TransactionService::API::Api.settings.provision( community_id: 1, payment_gateway: :stripe, payment_process: :preauthorize, active: true)

And in your config.yml you need:
stripe_private_key_pattern: "sk_(test|live).{24}"
stripe_publishable_key_pattern: "pk
(test|live)_.{24}"
app_encryption_key: “somethingRandomAndLongAndUniqueAndSecret”

Then start your instance.

It works well in production now.

2 Likes

Thank you for “TransactionService::API::Api.processes.create”. d(`・ω・´)b
I don’t know the step…and so we still need official method with document… :memo: :see_no_evil:

Thank you all for reporting!

Indeed the upgrade to 7.2.0 was supposed to enable Stripe automatically, but the conditions were a bit too strict and some manual steps can be required.

We’ve now updated the Readme file to share the commands you should run, and clarified a bit the encryption key instructions.
You can find them at https://github.com/sharetribe/sharetribe/blob/master/README.md#enable-stripe

It’s true that it isn’t perfect, as the updated instructions are in the master branch but not in the Release 7.2.0. The work in progress prevents us to do a new release right now but following the instructions at https://github.com/sharetribe/sharetribe/blob/master/README.md#enable-stripe will work for the time being!

1 Like

@karibu Your encryption key should remain secret, it’s best not to share it as someone could use it to read this data, so be careful not to share it in the future :wink: