Create Payment Link

Method: POSTPath: /v1/gaming/payment_links Environments

Header Parameters

ParameterTypeRequiredDescriptionX-API-KEYstring✅Your secret API key. Used to authenticate server-to-server requests.X-PUBLISHABLE-KEYstring✅Your publishable API key. Identifies your merchant account in client-facing and server requests.

Body Parameters

ParameterTypeRequiredDescriptiongame_idstring❌Identifier for the game.user_idstring❌Your platform’s user ID.redirect_urlstring❌URL or deep link to redirect the shopper after checkout.**item (object)**✅Product shown on the hosted checkout.item.namestring✅Item name (e.g., “Gems Pack”).item.priceinteger✅Price in minor units (e.g., 699 = $6.99).item.currencystring✅ISO 4217 currency code (e.g., USD).item.image_urlstring✅Public URL of the item image.**metadata (object)**object | JSON❌Arbitrary key/value pairs to store with the payment link. Must be valid JSON.

Example Request

cURL

Example Response

JSON