Connecting Stripe as a payment provider
Stripe is an online payment provider for customers and businesses that is supported in 46 countries. You can check if your country is in the list.
1. Sign up with Stripe by clicking Start now.
Fill in the registration form and click Create account.
2. After signing up you'll receive an email. Open the email and confirm the registration.
3. Go to the Stripe dashboard and open the Developers → API keys. You'll need three keys to integrate Stripe with Flexbe.
4. Copy Publishable key. Then click Reveal test key and copy the Secret key.
NOTE: use any tool to save copied keys in one place before entering them.
NOTE: use any tool to save copied keys in one place before entering them.
5. Now you need to copy the third key. To do that, go to the Webhooks tab and click Add an endpoint.
6. Enter https://{mysite.com}/mod/pay/stripe/result/ with your site's name in braces.
Then select two events:
— charge.failed
— charge.succeeded
— charge.failed
— charge.succeeded
Now click Add endpoint.
7. To get the Signing secret key, click Reveal and the key value.
8. Go to your site Settings, open the Payments tab and paste the copied keys (Publishable key, Secret key and Signing secret) to the appropriate fields. Then click Save.
Sripe is successfully connected, and you are ready to accept payments.