Money Button Documentation

Money Button Documentation

  • Money Button
  • API
  • Examples
  • Paymail
  • bsv

›API v2

Money Button

  • Money Button Overview
  • HTML
  • Javascript
  • React
  • Crypto Operations
  • Invisible Money Button
  • Paymail Signatures
  • Paymail Encryption
  • Simple Fabriik Protocol for Tokens

API

  • API Overview
  • Apps
  • Webhooks
  • Tokens
  • Currencies
  • Javascript Client
  • Authentication

    • Authentication Overview
    • OAuth
    • OAuth With JS Client

    API v1

    • Get User Identity
    • Get User Profile
    • Get User Balance
    • Get Payments
    • Get Payment By ID

    API v2

    • Get User Balances
    • Get Payments
    • Get Payment By ID
    • Get Assets
    • Create Asset
    • Modify Asset

Examples

  • Examples Overview
  • OP_RETURN Scripts
  • Assets

Paymail

  • Paymail Overview
  • Paymail Video Series
  • Paymail Introduction
  • BRFC Specifications
  • Specification Documents
  • BRFC ID Assignment
  • Service Discovery
  • Host Discovery
  • Capability Discovery
  • Public Key Infrastructure
  • Payment Addressing
  • Payment Addressing (Basic Address Resolution)
  • Payment Addressing (Payer Validation)
  • Payment Addressing (Payee Approvals)
  • Payment Addressing (PayTo Protocol Prefix)
  • Verify Public Key Owner
  • P2P Transactions
  • P2P Payment Destination
  • Recommendations

Bitcoin SV Library (bsv)

  • Bitcoin SV Library (bsv)
  • Big Numbers
  • Points (Elliptic Curves)
  • Hash Functions
  • Base 58
  • Private Keys
  • Public Keys
  • Addresses
  • ECDSA
  • Bitcoin Signed Messages
  • Signatures
  • HD Private Keys (BIP32)
  • HD Public Keys (BIP32)
  • Mnemonics (BIP39)
  • Script

Get Payment By ID

Retrieves the data related to a specific payment.

Facts

AttributeValue
urlhttps://www.moneybutton.com/api/v2/me/payments/{:paymentId}
http verbGET
Required scopepayments:read or application_access:write

Attributes

URL

  • paymentId: The id of the required payment. This is not a txid, it's a Money Button id for the payment object.

Response

{
  "payment": {
    "id": "5",
    "createdAt": "2020-12-21T20:48:33.957Z",
    "updatedAt": "2020-12-21T20:48:34.873Z",
    "userId": "5",
    "txid": null,
    "normalizedTxid": "ec0b3eb780e88fc50c05b257ea2256a7ae1edf1db9b8f484edc6b7b9082f573f",
    "amount": "0.0018793385216172912",
    "currency": "USD",
    "satoshis": "1092",
    "transactionId": null,
    "status": "FAILED",
    "statusDescription": "16: mandatory-script-verify-flag-failed (Script failed an OP_VERIFY operation)",
    "clientId": null,
    "buttonId": null,
    "buttonData": null,
    "referrerUrl": "",
    "browserUserAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0",
    "amountUsd": "0.0018793385216172912",
    "inputAmountUsd": "3.4397402164707396",
    "inputAmountSatoshis": "1998680",
    "spendAmountUsd": "0.004040922022671612",
    "spendAmountSatoshis": "2348",
    "feeAmountUsd": "0.0021615835010543203",
    "feeAmountSatoshis": "1256",
    "changeAmountUsd": "3.4366389637088766",
    "changeAmountSatoshis": "1996878",
    "rawtx": {
      "type": "Buffer",
      "data": [<Buffer>]
    },
    "cryptoOperations": [<cryptoOperations>],
    "source": "INTERNAL",
    "senderSignature": "IKiNGlqV0vHLjrmKrISabL7drcAhCuPp5x3Z2TxPGL9DKs84MbMGDP2VoNiuunhV8MR7ReaD8F7HgCJexvL4gqM=",
    "senderPaymail": "5@buttonofmoney.com",
    "signaturePubkey": "022e5fd9234bbd554ca3a8eac278ffa3fc6f0871fd39e298792a740b992815ac93",
    "preserveOrder": false,
    "paymentOutputs": [<paymentOutputs>],
    "app": null
  },
  "paymentOutputs": [<paymentOutputs>]
}
← Get PaymentsGet Assets →
  • Facts
  • Attributes
    • URL
  • Response
Money Button Documentation
Docs
Money ButtonAPIDesignbsv
Community
redditYoutubeTelegramTwitter
More
BlogInstagramGitHubStar
See an error in our documentation? Issue a pull request to fix it.
Copyright © 2021 Yours Inc.