Blink

Blink

    ›Objects

    Getting started

    • Overview
    • Quick Start
    • Environments
    • Support

    Panels

    • Basics
    • Panel options
    • Custom content

    User Journeys

    • The basics
    • Conditions
    • Actions
    • Throttles
    • Journey Groups
    • Complete Examples

    Guides

    • How to enable donations

    Blink Javascript SDK

    • Load the SDK
    • Blink managed functions
    • Blink managed variables
    • Reference

      • showDonationModal()
      • promptDonationPopup()
      • promptSubscriptionPopup()
      • isSubscribed()
      • getSubscription()
      • onSubscriptionChange()

    Blink notifications

    • Webhooks
    • Events

      • Subscription created
      • Subscription canceled
      • Subscription reactivated
      • Subscription unpaid
      • Subscription finished
      • Payment created
      • Payment refunded

      Objects

      • Event
      • Subscription
      • Donation
      • Payment
      • Amount
      • User
      • Merchant

    Event Object

    Example

    {
      "event": {
          "type": "donation_created",
          "timestamp": "2020-11-19T17:11:58.708926Z"
          ... other infromation about the event ...
      },
      "signature": {
        "algorithm": "ed25519",
        "encoding": "base16",
        "publicKey": "7745859AD1E4C2230CFB5BF72F5DCCAA263E8560F6F6673A9FCD8434B92A7896",
        "signature": "3BCC7143161CFD5ABC2210A09768345C3CF89728FD2D834D6F8429FB6AB5FD7240C3AE2E494B936451601ECA9278A344173466FCA1EC2D180421FAB8401AC004"
      }
    }
    

    Description

    Every event contains a signature over the json object present under the key event in a JWT format (canonical form) and all necessary information to verify the signature under the json key signature.

    nametypealways presentdescription
    eventObject☑JSON representation of the event
    event.typeString☑String describing the event type
    event.timestampinteger☑Standard timestamp value in seconds

    The fields present inside the signature key have the following meaning:

    nametypealways presentdescription
    algorithmString☑algorithm used for the digital signature (currently, is always ed25519)
    encodingString☑the encoding type of the publicKey and signature fields (currently, is always base16)
    publicKeyString☑the public key used to sign the notification event, in a format described by encoding
    signatureString☑the signature over the notification event, in a format described by encoding

    All event types

    namedetails
    subscription_createdSubscription Created
    subscription_canceledSubscription Canceled
    subscription_reactivatedSubscription Reactivated
    subscription_finishedSubscription Finished
    subscription_unpaidSubscription Unpaid
    payment_createdPayment Created
    payment_refundedPayment Refunded
    ← Payment refundedSubscription →
    Blink
    Docs
    Getting StartedPublic API
    Integration
    Donation
    Blink
    Copyright © 2021 Blink Ledger Systems Inc. All rights reserved