v1

latestOpenAPI 3.1.02026-07-13570316.1 KB
Bridge

Create Payment

Create a payment to be executed. Users can complete the payment via hosted UI (link is returned), a transaction execution referencing the product ID, or embedded widgets with the product ID.

Authentication: This endpoint requires project authentication.

post/v1/bridge/payments

Request body

namestring required

The name of the product

descriptionstring required

The description of the product

imageUrlstring

The URL of the product image

recipientstring required

The wallet address or ENS name that will receive the payment for the product

{"stackTrail":"paths:/v1/bridge/payments:post:requestBody:content:application/json:schema:properties:purchaseData","oasType":"schema","type":"unknown","description":"App specific purchase data for this payment"}

Example request

{
  "name": "Course",
  "description": "The complete javascript course",
  "imageUrl": "https://example.com/course.png",
  "token": {
    "address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "chainId": 42161,
    "amount": "100"
  },
  "recipient": "0xEfc38EF8C09535b25e364b6d1a7C406D3972f2A9"
}

Response

Payment created successfully. Returns the ID and link to complete the payment.