Custom Gate Provider
In cases when technical integration with the provider through the SDK system is not implemented (or is outside the SDK system), but there is a need to account transactions and commissions for their execution, it is possible to configure a Custom provider within the system. This allows to configure commissions and calculate them when processing such operations (by specifying a custom provider without integration).
Use Case
Technical integration with the provider may be outside the scope of the SDK system. However, the calculation of commissions and accounting is performed within the system, with consideration of the user’s wallet balance.
For this purpose, a custom provider is created in the SDK and commissions for operations of this provider are configured. After adding a third-party provider to the system it should be linked to the custom gate if integration is not required. One gate provider can be linked to one gate, but one gate can be linked to many gate providers.
When a transaction is performed through real integration with the provider, the external system makes a call to the SDK API to create a transaction within the SDK system. The SDK system creates a transaction related to this custom provider (it goes through the balance of the user’s wallet), calculates commissions for it according to the contract, and accounting is performed. The transaction is available in the user`s transaction history within the specified custom provider.
APIs that can be used for this use case
Gate Product
Gate products are products which users can buy from third-party providers integrated with the platform. To buy gate products operation Purchase via provider should be used.
Full API reference with description to manage Gate product
Ability to delete the Vendor (for Custom and Not Custom vendors)
- only vendors without any operations performed can be deleted (including operations in transit status)
- deleted vendors should not be visible and available for any action to service users (via UI and API)
- all operations via deleted vendors are not allow