Create a Payment Button
Once your account is verified at Level 2, you can create a payment button from the ApoloPay dashboard. This generates the API keys you'll need for integration.
Creating the Button
- Log in to the ApoloPay Dashboard
- Navigate to the Configuration section
- Click "Create Button"
- Enter a name for your button (e.g. "My Online Store", "Checkout Page") — this is just for your reference to identify the button
- Click "Continue"
After clicking continue, ApoloPay will generate two keys for you:
| Key | Purpose | Where to use |
|---|---|---|
| Public Key | Identifies your button on the frontend | Passed as a prop to the SmartPay component |
| Private Key (Secret) | Authenticates your backend API calls | Used in the x-secret-key header when calling the API |
Never expose your Private Key in frontend code, public repositories, or client-side JavaScript. It should only be used on your server-side backend.
Configuring Webhooks (Optional)
After creating the button, you can optionally configure a webhook to receive real-time notifications when a payment is completed:
- In the button settings, find the Webhook section
- Enter your Webhook URL — the endpoint on your server that will receive payment notifications (e.g.
https://yourstore.com/api/webhooks/apolopay) - A Webhook Secret will be generated — use this to verify that incoming webhook requests are genuinely from ApoloPay
We highly recommend configuring webhooks for production environments. They provide reliable, server-to-server confirmation of payments, which is more secure than relying solely on frontend callbacks.
For more details on handling webhooks, see Webhooks →.
What You'll Need for Integration
After creating your button, you'll have everything needed to integrate SmartPay:
| Item | Status |
|---|---|
| ✅ Public Key | For the frontend SDK component |
| ✅ Private Key | For backend API calls (create preorders) |
| ✅ Webhook URL (optional) | To receive payment confirmations |
| ✅ Webhook Secret (optional) | To verify webhook authenticity |
Next Step
Choose your frontend framework and follow the integration guide: