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

    Amount

    Describes an amount of money. It is used to describe a payment, for example when an user makes a donation. The amount includes the Blink fee and the payment processor fees.

    Example

    {
            "currency": "usd",        
            "amount": "2.00",
            "amountInSubunits": 200,        
            "amountPrecise": 2000000,
            "amountPreciseExponent": 6
    }
    

    Description

    nametypealways presentdescription
    currencyString☑currency ISO 4217 code (i.e. usd/gbp/eur)
    amountString☑amount expressed in currency units
    amountInSubunitsNumber☑amount expressed in currency subunits
    amountPreciseNumber☑amount expressed with more precision :
    amount x 10 ᵃᵐᵒᵘⁿᵗᴾʳᵉᶜⁱˢᵉᴱˣᵖᵒⁿᵉⁿᵗ
    amountPreciseExponentNumber☑the power of 10 used to define amountPrecise
    ← PaymentUser →
    Blink
    Docs
    Getting StartedPublic API
    Integration
    Donation
    Blink
    Copyright © 2021 Blink Ledger Systems Inc. All rights reserved