Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Setting up a Stripe account

  1. Go to Stripe settings Developers → API keys and create new Secret key. Name it as you like. Copy secret key somewhere, you will need it on next step.

  2. Create webhook using following API call (from terminal/command line window):
    Replace secret-key with key from previous step, your-domain with your actual domain name including www (if applicable)

    curl https://api.stripe.com/v1/webhook_endpoints \
    -u <secret-key>: \
    -d url="https://<your-domain>/api/payment-systems/stripe/webhook" \
    -d "enabled_events[]"="invoice.paid" \
    -d "enabled_events[]"="payment_intent.succeeded" \
    -d "enabled_events[]"="customer.subscription.updated" \
    -d "api_version"="2020-08-27"

Setting up a Stripe account in the website settings

  1. In the website settings your-domain/admin/settings/payments add a new payment method Stripe

  2. Fill in:

    1. API Secret key (Use previously remembered secret key generated on Stripe API Keys page)

    2. Webhook secret key will be filled in automatically, this field is not editable

  3. Click “Save”. System is configured.

  • No labels