xsolla
Version:
A Node.js client for working with the Xsolla Merchant API
59 lines (47 loc) • 1.18 kB
text/typescript
export interface XsollaMerchantCredentials {
/**
* Xsolla merchant ID
*/
merchantId: XsollaID;
/**
* Xsolla Merchant API Key
*/
apiKey: string;
}
export interface XsollaProjectCredentials {
/**
* Xsolla Merchant ID
*/
merchantId: XsollaID;
/**
* Xsolla Project ID
*/
projectId: XsollaID;
/**
* Xsolla Project Secret
*/
secret: string;
}
/**
* Type used for Xsolla IDs
*/
export type XsollaID = number;
/**
* DRM platform used to distribute the game. Can be 'steam', 'playstation', 'xbox', 'uplay', 'origin', or 'drmfree'.
* Make sure to have configured the required DRM platforms in your Publisher Account. If not passed in the token,
* will be chosen by the user in the payment UI.
*/
export type DRM = 'steam' | 'playstation' | 'xbox' | 'uplay' | 'origin' | 'drmfree';
/**
* Currency and amount of a transaction.
*/
export interface CurrencyAndAmount {
amount: number;
currency: string;
}
/**
* Custom parameters as passed by the merchant.
*/
export interface CustomParameters {
[key: string]: any;
}