Blink

Blink

    ›Reference

    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

    blinkSDK.showDonationModal()

    Displays the donations panel in a modal dialog. This is similar to blinkSDK.promptDonationPopup(), but displays an additional panel before showing the login or donation form.

    Calling this function will display the donations panel in a modal dialog. This panel contains configurable text, images and other website-specific branding, and a call-to-action button that starts the donations flow. Clicking the call-to-action button will seamlessly transform the contents of the modal dialog into a form.

    • When the user is authenticated, it will display the donation form.
    • When the user is not authenticated, it will display the login/signup form. After the user logs in (or signs up), the contents transforms into the donation form.

    Usage

    <body>
        <button onclick="window.blinkSDK.showDonationModal()">Donate</button>
    </body> 
    

    Signature

        blinkSDK.showDonationModal()
    

    Parameters

    none

    Returns

    void

    ← Blink managed variablespromptDonationPopup() →
    • Usage
    • Signature
    • Parameters
    • Returns
    Blink
    Docs
    Getting StartedPublic API
    Integration
    Donation
    Blink
    Copyright © 2021 Blink Ledger Systems Inc. All rights reserved