OpenFabric
OpenFabric is a multi-tenanted platform that enables quick distribution and adoption of closed-loop consumer facing financial services (Wallets, BNPLs, Loyalty Platforms, etc.) for merchants by simplifying integration and operational requirements.
This integration is ideal for merchants who accept card as a payment method.
Getting Started
Authentication
We use API keys to authenticate your requests. They consist of ClientId
and ClientSecret
.
These keys will be provided to you as part of your merchant onboarding.
Environments
We provide 2 environments for you to integrate into.
- Sandbox
- Production
Sandbox is a Production-like environment which you can use to test your integration before you go live. We recommend you do this. Any transaction that you perform against the sandbox environment will not affect your live data.
Integration
Request auth token
Exchange ClientId
and ClientSecret
for access_token
by using client credentials flow.
Basic token is a base64-encoded string from the format <ClientID>:<ClientSecret>
Sample request:
http POST https://auth.sandbox.openfabric.co/oauth2/token \
"Authorization: Basic MnFxbzd0ajA1MWF0Y2Y4ZDFnZGpnOHUyamE6Y2dlbWNqc3FkZmFlaDBzb3AzOGxqdGhnbmRwbmpxM3MxNG41MzhhZ3Nua2xtajNsMGl2" \
grant_type=client_credentials \
scope="resources/transactions.read resources/transactions.create"
Sample response:
{
"access_token": "string",
"expires_in": 0,
"token_type": "string"
}
Note: URL would be https://auth.openfabric.co/oauth2/token
for production.
Flow types
To better help you in integration, refer to their sample project on Github.