Shopify Integration

Configure automatic access code delivery for purchases

Webhook Endpoint
Add this URL to your Shopify webhook settings for "Order payment" events
Required Environment Variables
These must be configured in your Manus project settings

The webhook signing secret from Shopify (found in webhook settings)

The Shopify product ID or variant ID for your Gut Health Mastery curriculum

Your Resend API key for sending access code emails

The public URL of your curriculum (e.g., https://learn.theurbanmonk.com)

Setup Instructions
Follow these steps to complete the Shopify integration
  1. Get your Shopify product ID:
    • • Go to Shopify Admin → Products
    • • Click on your "Gut Health Mastery" product
    • • The product ID is in the URL: /products/[PRODUCT_ID]
  2. Create a Resend account:
    • • Visit resend.com
    • • Sign up and verify your sending domain (theurbanmonk.com)
    • • Generate an API key from the dashboard
  3. Configure environment variables:
    • • Go to Manus project settings → Secrets
    • • Add all four required environment variables listed above
  4. Set up Shopify webhook:
    • • Go to Shopify Admin → Settings → Notifications
    • • Scroll to "Webhooks" section
    • • Click "Create webhook"
    • • Event: "Order payment"
    • • Format: JSON
    • • URL: Copy the webhook endpoint from above
    • • Save and copy the webhook signing secret
    • • Add the signing secret to your environment variables
  5. Test the integration:
    • • Make a test purchase in Shopify (use test mode)
    • • Check your email for the access code
    • • Verify the code works on the curriculum site
Email Template
Customers will receive this email with their access code

Subject:

Welcome to Gut Health Mastery - Your Access Code Inside

From:

Dr. Pedram Shojai <[email protected]>

Content includes:

  • • Personalized greeting with customer's first name
  • • Large, prominent access code display
  • • Step-by-step instructions to get started
  • • Pro tip for daily consistency
  • • Signature from Dr. Pedram Shojai