Macaly’s Stripe integration enables you to accept one-time payments directly within your project. A fully functional test environment is provisioned automatically, so you can start building and testing without a Stripe account. When you’re ready to go live, connect your Stripe account and switch to live mode.Documentation Index
Fetch the complete documentation index at: https://www.macaly.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Adding payments to your project
Describe your payment needs to the agent in the chat. For example:| Field | Value |
|---|---|
| Card number | 4242 4242 4242 4242 |
| Expiry | Any future date (e.g. 01/30) |
| CVC | Any 3 digits (e.g. 111) |
| ZIP | Any value (e.g. 11000) |
Activating your secure testing area
When Macaly creates your test environment, it provisions a Stripe sandbox. This sandbox works right away and lets you test payments, but it is not linked to any Stripe account. Unclaimed sandboxes expire after 60 days. Claiming the sandbox connects it to your Stripe account. Once claimed, the sandbox is yours to keep and you can manage it directly in the Stripe Dashboard. You can claim the sandbox in two ways: from the Payments tab in your project, or through the email that Stripe sends you after the test environment is created. Claiming is also the first step toward accepting real payments. To go live, you will need to claim the sandbox, verify your business with Stripe, and enter your live API keys.Open the Payments tab
Click Claim your Stripe sandbox
Provide your business details
- Business name and location. Enter your business name and select your country. Click Continue.
- Business website and description. Provide your website URL and a brief description of your products or services. This step can be skipped by clicking Skip.
- Intended use of Stripe. Select the payment types relevant to your business (e.g. non-recurring payments). This step can also be skipped.
Complete the sandbox setup
Switching to Live mode
When you’re ready to accept real payments, you need to activate your Stripe account and connect your live API keys to Macaly.Activate your Stripe account
Before you can access live API keys, Stripe requires you to verify your business. This is a standard onboarding process that happens entirely on Stripe’s side.Open the Stripe Dashboard
Complete the setup guide
- Business details (legal name, address, type of business)
- Personal identity verification
- Bank account or payout details for receiving funds
Enter your live API keys
Once your Stripe account is verified, copy your live keys into Macaly.Copy your keys from the Stripe Dashboard
- Publishable key begins with
pk_live_. - Secret key begins with
sk_live_.
Add your keys in Macaly
pk_live_ and sk_live_), not test keys (pk_test_ and sk_test_).Switch to Live mode
Managing your integration
All payment settings are accessible from the Payments tab:- Open Stripe opens the Stripe Dashboard where you can review transactions, issue refunds, and track payouts.
- Switch to Live mode / Switch to test mode allows you to toggle between environments at any time without affecting your project code.
- Manage Stripe connection allows you to update your live API keys after the initial configuration.
- Test payments displays the test card details for reference while in test mode.
Troubleshooting
What is a sandbox and how is it different from my Stripe account?
What is a sandbox and how is it different from my Stripe account?
Test payments are not going through
Test payments are not going through
What is the difference between Test mode and Live mode?
What is the difference between Test mode and Live mode?
I can't find live API keys in my Stripe Dashboard
I can't find live API keys in my Stripe Dashboard
pk_test_ and sk_test_), your account has not been fully verified yet.Macaly still shows Test mode after I verified my Stripe account
Macaly still shows Test mode after I verified my Stripe account
Live payments are not going through
Live payments are not going through
- Did you publish your project? Live payments are only processed on the published site, not in preview.
- Are your keys correct? Verify that you entered your Publishable key (beginning with
pk_live_) and Secret key (beginning withsk_live_). If you accidentally pasted test keys, click Manage Stripe connection and update them. - Is your Stripe account fully verified? Open the Stripe Dashboard and check for any pending steps in the setup guide. Stripe may require additional documents before processing live payments.
What happens when my sandbox expires?
What happens when my sandbox expires?
Good to know
- Stripe fees apply. Macaly does not charge additional fees for payments. Standard Stripe processing fees apply to each transaction (see stripe.com/pricing).
- Sandbox expiry. Unclaimed test environments expire after 60 days. If this occurs, open the Payments tab and click Set up new sandbox to provision a new one.
- Webhooks are managed automatically. Macaly configures and maintains all webhook endpoints. No manual setup is required in the Stripe Dashboard.
- Test and live environments are isolated. Test transactions do not appear in your live Stripe account, and no real charges are incurred.