The cardpay SDK will automatically obtain the latest API version that works with the on-chain contracts. In order to obtain an API you need to leverage the getSDK() function and pass to it the API that you wish to work with, as well as any parameters necessary for obtaining an API (usually just an instance of Web3).
The cardpay SDK will automatically obtain the latest API version that works with the on-chain contracts. In order to obtain an API you need to leverage the
getSDK()
function and pass to it the API that you wish to work with, as well as any parameters necessary for obtaining an API (usually just an instance of Web3).Returns
a promise for the requested API.
Example