Stripe allows businesses to accept payments, manage their transactions, and facilitate commerce operations online. Its powerful API lets you integrate payment processing easily.
👩🏻‍💻 Usage
Important: The feature is not enabled by default. Reach out to your customer success manager to enable it.
To enable Stripe as a payment option, log in as Admin, navigate to Access Management, and select your package under Packages. Go to Payment in the Booking Workflow, open the dropdown menu, and select “Stripe”.
Generate API keys for integrating Stripe with your platform securely.
Adding the API and webhook keys needs to be done only once, even if you manage varies packages.
Create the Stripe Secret API Key and Publishable API Key:
Log in to Stripe:Go to stripe.com and log in to your account. Navigate to API Keys:In the Stripe Dashboard, click on “Developers” in the left sidebar.Under the Developers section, click on “API keys”. Create Secret API Key:Under the Standard keys section, you will see the Secret key and Publishable key.Click “Create secret key” if you need to generate a new one.“Copy” the Secret key displayed (e.g., sk_test_4eC39HqLyjWDarjtT1zdp7dc) and paste the API key in your LoftOS application. Retrieve Publishable API Key:The Publishable key is listed in the same section.If a key is not available, click “Create key” to generate one.“Copy” the Publishable key displayed (e.g., pk_test_TYooMQauvdEDq54NiTphI7jx) and “paste” the API key in your LoftOS application. Create the Webhook Secret Key:
Navigate to Webhooks:In the Stripe Dashboard, click on “Developers” in the left sidebar.Under the Developers section, click on “Webhooks” and “Copy” the Hosted Endpoint link. Click “Add endpoint” and select “All Events”. You have now created the webhook for this event. Enter the URL where you want to receive the webhook events.Retrieve Webhook Secret:After creating the endpoint, click on the endpoint URL listed in the Webhooks section.Scroll down to the Signing secret section.Click the Reveal button to view your Webhook Secret key (e.g., whsec_xxx).Copy the Webhook Secret key on your platform. Create the Product ID:
Select “Product Catalogue” from the Stripe Navigation bar: “Add Product”. On the top right hand side you find a Product ID and below you see a Price ID. Copy the Product ID key and the Product Price ID and paste both in your LoftOS application.Summary:
Secret API Key: Used for sensitive operations like creating charges.Publishable API Key: Used for operations that don't require high security, like loading Stripe.js.Webhook Secret Key: Used to verify that webhook events sent to your endpoint are from Stripe.