Payments
A key can read which payment providers are active on its branch. There is no endpoint to charge, capture or refund a payment.
GET/v1/payment-providers
GET/v1/payment-providers/:id
List active providers
bash$
curl https://dineharbor.com/api/v1/payment-providers \
-H "Authorization: Bearer $DH_API_KEY"json$
{
"providers": [
{
"id": 1,
"provider": "stripe",
"environment": "live",
"display_name": "Stripe",
"status": "active",
"is_default": true,
"webhook_configured": true,
"metadata": {
"name": "Stripe",
"supports_hosted_checkout": true,
"supports_webhook_auto_setup": true,
"payment_methods": ["card"]
}
}
]
}Providers
Stripe, PayPal, Mollie, Adyen, Revolut and Square are supported as hosted-checkout gateways, plus Cash on Delivery for orders with no online payment step. Actually charging a customer happens through the storefront checkout or the POS, not through this API.