Licensing Settings

The Licensing settings screen configures how Amore connects to Stripe to process license purchases for your app.

Stripe Integration

Secret Key

Your Stripe secret key (sk_live_...) allows Amore to create checkout sessions and manage subscriptions on your behalf. You can find it in your Stripe dashboard.

If you prefer a restricted key, grant these permissions:

  • Checkout Sessions — Read + Write
  • Prices — Read
  • Products — Read
  • Subscriptions — Read

Webhook Secret

The webhook signing secret (whsec_...) is used to verify that incoming webhook events are genuinely from Stripe. You'll get this after creating the webhook endpoint in Stripe.

Webhook URL

Amore generates a webhook URL for your app:

https://api.amore.computer/v1/webhooks/stripe/{bundleID}

Copy this URL and add it as an endpoint in your Stripe dashboard.

Stripe Managed Payments

When enabled, Stripe acts as the merchant of record for your sales. Learn more about Stripe managed payments.

Setting Up the Stripe Webhook

  1. Go to your Stripe dashboard
  2. Click Add endpoint
  3. Paste the webhook URL from Amore
  4. Select the following events:
    • checkout.session.completed
    • invoice.paid
    • customer.subscription.deleted
    • customer.subscription.paused
    • customer.subscription.resumed
    • customer.subscription.updated
  5. Click Add endpoint
  6. Copy the signing secret and paste it into the Webhook Secret field in Amore

For more details, see the Stripe webhook documentation.

Integration Code

After your first product is created, the Licensing screen shows a copyable code snippet with your public key and bundle identifier:

let licensing = try AmoreLicensing(
    publicKey: "your-public-key",
    bundleIdentifier: "com.example.myapp"
)

Use this snippet to initialize the AmoreLicensing SDK in your app.