Digistore24

Connect Digistore24 as a payment provider in PayGlue. One API key, PayGlue sets up the IPN connection for you.

A
André
Written By AndréLast updated 9 days ago

Digistore24 is a reseller for digital products, courses and memberships: it is the buyer's contract partner, charges and pays the VAT for the buyer's country and pays you out. When a reader buys a product, cancels or gets a refund in Digistore24, PayGlue creates or updates the matching Ghost member.

Digistore24 sends its notifications through what it calls an IPN connection. PayGlue sets that connection up in your Digistore24 account for you, so all you enter in PayGlue is one API key. How it came about and how we tested it: Digistore24 now works with Ghost.

Prerequisites

  • A Digistore24 vendor account with at least one product
  • A Ghost blog connected in PayGlue (Connect Ghost)

Digistore24 pays out only to businesses, and sellers in Europe need a VAT ID or tax number. See Digistore24's own help center for the details.

Steps

1. Create an API key in Digistore24

In Digistore24, go to Settings > Account access > API keys and click New API key.

  • Name: anything that tells you what it is for, for example PayGlue
  • API permissions: Full access. PayGlue needs it to create the IPN connection. A read-only key can be saved, but the connection cannot be set up with it.
  • Allowed IPs: leave empty
  • Active and Only allow secure authentication: leave on Yes
Creating an API key with full access in Digistore24

Click Save. Digistore24 shows the key after saving. Copy it.

2. Save the key in PayGlue

In your PayGlue dashboard, go to Connections > Digistore24, paste the key into API Key and click Save credentials.

The Digistore24 connection page in PayGlue, webhook key blurred

PayGlue checks the key and creates an IPN connection named PayGlue in your Digistore24 account: for all your products, for order events, and with a passphrase that only PayGlue and Digistore24 know. The page confirms it with Webhook events registered automatically. Afterwards the key field shows dots. Use Update to replace the key.

The webhook URL on the page is for reference only. You do not need to enter it anywhere.

3. Check the connection in Digistore24 (optional)

Under Settings > Integrations (IPN) you now see the connection PayGlue with the type Digistore API. Leave it as it is: if you change its passphrase or events, deliveries can fail. Clicking Save credentials in PayGlue again sets it up anew.

The PayGlue connection in Digistore24's IPN settings, other connections blurred

4. Offer your products

Go to Features > Buttons, Paywall or Pricing Table, choose Digistore24 and pick your product. Choose One-time or Subscription, whether to subscribe the buyer to your newsletter, and which welcome email to send, then save. That creates the mapping PayGlue uses when the purchase arrives. The link URL is filled in with the product's Digistore24 order form.

In Digistore24, monthly and yearly are two payment plans of one product. Pick the same product for both in a pricing table: one mapping covers both plans.

A PayGlue buy button with a Digistore24 product selected

5. Make a test purchase

Open your product's order form and pay with Testpay. This works only in the same browser window in which you are logged in to Digistore24, not in a private or incognito window, and it works before Digistore24 has approved the product.

Open Analytics > Webhook Events in PayGlue: the purchase should show as Processed, and the buyer should appear in Ghost Admin with the payglue-test label. Test subscriptions keep running in Digistore24 until you pause them in the order details.

Supported events

Digistore24 event

PayGlue action

on_payment

Grant access, for the first payment and every renewal

on_rebill_cancelled

Nothing yet: access continues until the paid period ends

last_paid_day

End access when the paid period is over

on_refund

End access right away

on_chargeback

End access right away

on_payment_missed

Nothing: Digistore24 retries and reminds the buyer

on_rebill_resumed

Nothing: access follows with the next payment

The events that change nothing still appear in the event log as Skipped, with the reason. Failed payments never remove anybody, see Member lifecycle.

Troubleshooting

"The webhook could not be set up" after saving

The message after the colon is Digistore24's own. The most common causes:

  • The key does not have full access. Create a new key with full access and save it in PayGlue.
  • The key has Allowed IPs set. Remove them, PayGlue's servers are not on that list.

A delivery shows as Failed in PayGlue

PayGlue rejects any delivery whose signature does not match the passphrase. That happens when the passphrase of the PayGlue connection in Digistore24 was changed by hand. Click Save credentials in PayGlue again to set the connection up anew.

In Digistore24, Reports > Integrations (IPN) shows every delivery and lets you send one again.

Ghost member is not created after a purchase

Check that the product is offered in a buy button, paywall or pricing table. Without a mapping, PayGlue receives the event but has nothing to grant.


IPN signature verification

Digistore24 signs every IPN with the field sha_sign: a SHA-512 over all non-empty fields, sorted by name, each written as name=value followed by the passphrase. PayGlue verifies it with the passphrase it created, answers with the plain text OK Digistore24 expects, and processes each transaction only once, even when Digistore24 sends it again.

Was this helpful?

Your feedback shapes what we write next.