POST
/
community
/
{id}
/
payment
curl --request POST \
  --url https://api.other.page/v1/community/{id}/payment \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "value": "100",
  "chainId": "11155111",
  "tokenSymbol": "USDC",
  "expiresAt": "2024-12-31T23:59:59Z",
  "callBackUrl": "https://callback.url",
  "metadata": {
    "key": "value"
  }
}'
{
    "chainId": "33111",
    "paymentRouterAddress": "0xdf09e96b86266ced8cf9c3e4dfa705dad9ddb11a",
    "expiresAt": "2025-03-06T22:07:20.746Z",
    "onchain": {
        "token": "0x0000000000000000000000000000000000000000",
        "value": "10000000000000000",
        "paymentId": "0xaec40bef",
        "deadline": "1741298840",
        "signature": "0x2f954dad8e031bad7d6c2ba0ac3358ed81cf9ccef42e77f5f3a896072a12b6cc577ed46777a32ba30c7ea4fca8147d180c4383dd20b0fe2ff89f4d7f0c012ca01b"
    }
}
{
    "chainId": "33111",
    "paymentRouterAddress": "0xdf09e96b86266ced8cf9c3e4dfa705dad9ddb11a",
    "expiresAt": "2025-03-06T22:07:20.746Z",
    "onchain": {
        "token": "0x0000000000000000000000000000000000000000",
        "value": "10000000000000000",
        "paymentId": "0xaec40bef",
        "deadline": "1741298840",
        "signature": "0x2f954dad8e031bad7d6c2ba0ac3358ed81cf9ccef42e77f5f3a896072a12b6cc577ed46777a32ba30c7ea4fca8147d180c4383dd20b0fe2ff89f4d7f0c012ca01b"
    }
}

To create Payment intents you first need to add a vault in your Portal community dashboard for each chain you want to accept payments on. View the Vault Documentation for more information.

Getting Started

To assist you in getting started with payments, we have a sample implementation of a payment flow using Next.js and Other Page Connect.

View the GitHub Repo for more information.

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Body

application/json
value
string
required

The payment value

Example:

"100"

chainId
string
required

The blockchain chain ID

Example:

"11155111"

tokenSymbol
string
required

The token symbol

Example:

"USDC"

expiresAt
string
required

The expiration date

Example:

"2024-12-31T23:59:59Z"

callBackUrl
string
required

The callback URL

Example:

"https://callback.url"

metadata
object

Additional metadata

Example:
{ "key": "value" }

Response

201

Payment intent created successfully