Go live
Your code doesn’t change when you go live: only the keys do. Work through this list once your website works end to end with a test key.
Before you switch
Section titled “Before you switch”- Be on Business. Live keys come with the Business plan: upgrade in Settings › Plan & Billing. Test keys keep working beside live ones.
- Show the right products. Each product your website sells needs Show on your website turned on, an accurate price, and stock in your first open store, which is where website orders sell from.
- Check your selling rules in Settings › Stores. With Stop the sale, a website order
that needs more than the store’s count fails with
INSUFFICIENT_STOCK.
Make the live key
Section titled “Make the live key”- In Settings › Developer › API keys, press New key, choose Live, and tick only what your website uses. A website that shows products, checks codes and places orders needs Read the catalogue, Check promo codes, Place and cancel orders and Read orders.
- Under Websites that may use the publishable key, list your live site, such as
https://yourshop.comandhttps://www.yourshop.com. While the list is empty, browsers can’t use the publishable key at all. - Under Only from these addresses, list your servers’ IP addresses, if they’re fixed.
- Copy the secret key into your server’s environment (
SABIWAVE_SECRET_KEY=sk_live_…), and the publishable key into your website’s code.
Add a live webhook endpoint
Section titled “Add a live webhook endpoint”- In Settings › Developer › Webhooks, press Add endpoint. Give its
https://address, choose Live and pick the events you use. Copy the signing secret into your server’s environment (SABIWAVE_WEBHOOK_SECRET=whsec_…): it’s shown once. - Press Send a test ping. The Delivery log shows what your server answered:
200means it’s reachable and your signature check passed.
Check it
Section titled “Check it”- Place one real order from your website. Find it in Sabiwave’s order list, then cancel it there
or with
POST /orders/{id}/cancel. - Keep an eye on the Delivery log for the first days. An endpoint that fails 20 times in a row is switched off: see Retries and switch-off.