Deprecated
Use platform_id for Lightning payments in Checkout
almost 2 years ago by CoinGate
To take a Lightning Network payment through Checkout, send the Lightning platform_id instead of the lightning_network flag. The flag is deprecated.
| Before | Now |
|---|---|
lightning_network: true | platform_id: the ID of the Lightning platform |
Get the Lightning platform's ID from List platforms. It's the platform with id_name lightning_btc.
curl -X POST https://api.coingate.com/v2/orders/{order_id}/checkout \
-H "Authorization: Token YOUR_API_KEY" \
-d pay_currency=BTC \
-d platform_id={lightning_platform_id}
Update your integration
lightning_networkstill works for now, but it will be removed in a future API version. Switch toplatform_idso your integration keeps working.
