UNPKG

@offrain/montonio-api

Version:
13 lines (11 loc) 412 B
import { makePaymentUrl, getMethods } from './methods'; import { Credentials, CountryCode, UserOpts } from './types'; export const montonioApi = ({ secrectKey, accessKey, sandbox, }: Credentials) => ({ getPaymentUrl: (options: UserOpts) => makePaymentUrl({ secrectKey, accessKey, sandbox }, options), paymentMethods: (lang:CountryCode) => getMethods({ secrectKey, accessKey, sandbox }, lang), });