Stripe connection error and order types enable payments online error in admin panel

  1. I have added the below Stripe keys in config.yml file
    stripe_private_key_pattern
    stripe_publishable_key_pattern
    app_encryption_key

i have runned the below queries
TransactionService::API::Api.processes.create(community_id: , process: :preauthorize, author_is_seller: true) and TransactionService::API::Api.settings.provision(community_id: , payment_gateway: :stripe, payment_process: :preauthorize, active: true).

The payment system got enabled in the admin panel and if i add my stripe keys to connect then it`s showing that the keys are not correct error

  1. In admin panel --> order types
    If i enable “Allow sellers to accept payments online” and after selecting the order type then the listing page is displaying blank

Thanks in advance!

Hi Kalyani,

I’ve just added Stripe following the README file from ST Github, “Enable Stripe” part :

Enable Stripe
Starting from release 7.2.0, Stripe is supported.

Stripe API keys will be encrypted when stored so it is important to configure your own random encryption key. You should fill the app_encryption_key variable in the config/config.yml file with a long random string, unique to your project.

Stripe can be configured from the admin panel, in the “Payment settings” section. Instructions on how to get Stripe API keys can be found there.

If Stripe isn’t automatically enabled in the admin panel after upgrading to 7.2.0, you should run the following commands in your Rails console, where is your marketplace ID (probably 1): TransactionService::API::Api.processes.create(community_id: <ID>, process: :preauthorize, author_is_seller: true) and TransactionService::API::Api.settings.provision(community_id: <ID>, payment_gateway: :stripe, payment_process: :preauthorize, active: true).

You can find more informations following this link :
https://help.sharetribe.com/payments-and-transactions/online-payments-with-stripe/how-to-configure-your-stripe-account-and-get-api-keys-for-your-marketplace

Hope it helps :slight_smile:
Regards

I have done the above mentioned even my version is 7.3.0 and i was trying to connect stripe in admin panel locally but its showing the error And i have been connected with the stripe keys in hosted it got connected but in open source its causing an issue

@kalyani From your earlier message, did you mean that you’ve edited the stripe_private_key_pattern and stripe_publishable_key_pattern values in the config.yml file?

If so, that’s probably why: these values should contain the pattern to identify if the key is a correct private/publishable key, and it shouldn’t be change for the time being.

Does it help?

No, I didnt edited the keys also, i have just added it in config.yml file and have runned those commands then payment system got enabled and then i tried to connect with the same keys in admin panel there its causing error in the above picture.

And i disabled and added again in hosted its working fine but in open source its causing error.

In my case, I’ve only added the app_encryption_key to config.yml without adding stripe_private_key_pattern and stripe_publishable_key_pattern.
Then i’ve added Secret and Publishable keys directly from the admin panel.

PS: I’m also running v7.3.0

This must be a config error … the instr are very elaborate and works correctly … have done over 100s of intsl in devp., and productions

From your screenshot, seems you are trying to use live Stripe keys for development mode.
Default config has following patterns, active in development mode, which require test keys:

 stripe_private_key_pattern: "\\Ask_test_.{24}\\z"
 stripe_publishable_key_pattern: "\\Apk_test_.{24}\\z"

If you still want to use production stripe keys with development server, only then you should change patterns to match live or live and test keys.