Blink

Blink

    ›Events

    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

    Payment created

    Webhook event triggered when a new payment occurs.

    Example

    {
        "event": {
          "type": "payment_created",
          "user": {
            "id": "360262021515577867",
            "email": "test_user@blink.net",
            "lastName": "",
            "createdAt": "2020-11-25T12:35:41.317225Z",
            "firstName": ""
          },
          "payment": {
            "id": "360262021448469001",
            "amount": {
              "amount": "0.05",
              "currency": "usd",
              "amountPrecise": 50000,
              "amountInSubunits": 5,
              "amountPreciseExponent": 6
            },
            "status": "succeeded",
            "createdAt": "2020-11-25T12:35:41.987661Z",
            "resource_id": "1234567890",
            "resource_type": "purchase"
          },
          "merchant": {
            "id": "20",
            "alias": "MERCHANT"
          },
          "timestamp": "2020-11-25T12:35:42.003900Z"
        }    
      }
    

    Description

    nametypealways presentdescription
    eventObject☑an object describing the new payment details: user, payment and merchant
    event.typeString☑always payment_created
    ← Subscription finishedPayment refunded →
    Blink
    Docs
    Getting StartedPublic API
    Integration
    Donation
    Blink
    Copyright © 2021 Blink Ledger Systems Inc. All rights reserved