Charge

Charge Object save all information about charge.

Charge Object

Charge Object
{
  "id": "sub_c26WqxP13PEG0pIt2TvAGPmyK9kDnD4kGR4tri",
  "object": "subscription",
  "amount": 10.99,
  "blockchain": "ETH",
  "checkout_session_id": "cs_a1U7SSk86e6DUcjD9Zg7c26WqxP13PEG0pIt2TvAGPmyK9kDnD4kGR4tri",
  "created": 1671995248,
  "fee": 36.00,
  "from": "0x7C5E84A6b64435783D6A793Aeff1cd517fF8d246",
  "status": "active",
  "to": "0x7C5E84A6b64435783D6A793Aeff1cd517fF8d246",
  "token": "USDT",
  "transaction_hash": "0x0460f2b4ae63bfb2dfc91afb0abca1ca17097651caa145c7a9a6bfd0f1e2bd48"
}

Attributes

AttributeTypeDescription

id

string

Unique identifier for the object.

object

string

String representing the object’s type. Objects of the same type share the same value.

amount

number

Total amount of charge.

blockchain

string

Blockchain of subscription, one of ETH, BNB.

checkout_session_id

string

ID of Checkout Session for link between objects.

fee

number

Amount of Fanspay fee for this charge.

from

string

The address of customer.

status

string

The status of the Charge, one of succeeded or failed.

to

string

The address to which the subscription payment is made.

token

string

Token of subscription, one of USDT, USDC, DAI, BUSD.

transaction_hash

string

The transaction hash.

Last updated