Payment
This event is emitted when a one-time payment is completed successfully. Note that the radomData
object changes according to the type of checkout.
id
string<uuid>webhookId
string<uuid>eventType
stringAllowed value:
managedPayment
eventData
objectmanagedPayment
objectpaymentMethod
objectnetwork
stringAllowed values:
BitcoinBitcoinTestnetLitecoinLitecoinTestnetCardanoMoneroDashDogecoinSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
token
string or null
discountPercentOff
number<float> or null
>= 0
amount
number<float>>= 0
alternativeMethodPayments
array[object] or null
paymentMethod
objectamount
number<float>>= 0
transactions
array[object] or null
network
stringAllowed values:
BitcoinBitcoinTestnetLitecoinLitecoinTestnetCardanoMoneroDashDogecoinSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetZcashZcashTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetFiat
transactionHash
stringtoken
string or null
amount
number<float>>= 0
blockTimestamp
string<date-time>ticker
string or null
senderAddresses
array[object] or null
address
stringdiscountCodeId
string<uuid> or null
discountAmount
number<float>>= 0
paymentSummary
object or null
currency
stringAllowed values:
USDCADGBPEURAEDINRSEKBRLNZDAUDHKDNOKDKKJPYCNYCHFSGDPLNMXNCZKHUFZARSARRUBTRYILSUSDCUSDTBTCETHBNBSOLTRXAVAXMATIC
grossAmount
number<float>>= 0
underpaidAmount
number<float>>= 0
overpaidAmount
number<float>>= 0
netAmount
number<float>>= 0
networkFeeAmount
number<float>>= 0
radomFeeAmount
number<float>>= 0
feeAmount
number<float>>= 0
conversionRates
array[object] or null
from
stringto
stringrate
number<float>>= 0
tokenDiscountAmount
number<float>>= 0
discountTotal
number<float>>= 0
radomData
paymentLink
objectpaymentLinkId
string<uuid>paymentLinkOrderId
string<uuid> or null
inputData
array[object] or null
label
stringvalue
string or null
Examples
- Payment link
- Checkout session
{
"id": "f01fa77a-6f71-45fd-884e-4212ec76e9e9",
"webhookId": "ad474121-b97e-479b-a180-60a21bda8532",
"eventType": "managedPayment",
"eventData": {
"managedPayment": {
"paymentMethod": {
"network": "SolanaDevnet",
"token": null
},
"amount": "0.05174000000",
"transactions": [
{
"network": "SolanaDevnet",
"transactionHash": "Biqv82rkELugxVFVUrcobxabNvUztxno9vCBDLdnQUzBqNmacbMKtuSAF9srJPQq8CWpA47rpL8skkt2MTEsZvk",
"token": null,
"amount": "0.0520",
"blockTimestamp": "2023-06-06T06:11:42Z"
}
]
}
},
"radomData": {
"paymentLink": {
"paymentLinkId": "9353ac9f-d44e-4acf-a18e-83189422363a",
"paymentLinkOrderId": "aa697c4e-c489-4dd4-813d-1f9e8ad19745",
"inputData": [
{
"label": "Name",
"value": "Adam"
},
{
"label": "Email address",
"value": "adam@example.com"
}
]
}
}
}
{
"id": "456c95b0-85a3-4415-b60f-0e21707a0774",
"webhookId": "69798cea-0be8-4176-9178-d83d4e00d158",
"eventType": "managedPayment",
"eventData": {
"managedPayment": {
"paymentMethod": {
"network": "SepoliaTestnet",
"token": "0xa4fce8264370437e718ae207805b4e6233638b9e"
},
"amount": "42.790671",
"transactions": [
{
"network": "SepoliaTestnet",
"transactionHash": "0xbd57aa3597e79fe97017842d42b9badb40cd881163c937f9a25311e338503ede",
"token": "0xa4fce8264370437e718ae207805b4e6233638b9e",
"amount": "43.50564900",
"blockTimestamp": "2024-02-05T16:53:48Z"
}
]
}
},
"radomData": {
"checkoutSession": {
"checkoutSessionId": "343d51bc-8ccb-4502-80e2-fc908291e768",
"metadata": [
{
"key": "test-metadata",
"value": "some-id"
}
]
}
}
}