conekta-plugin-capacitor

plugin conekta for connect payment

Install

npm install conekta-plugin-capacitor
npx cap sync

API

setPublicKey(...)

setPublicKey(params: { key: string; }) => Promise<void>
Param Type
params { key: string; }

getPublicKey()

getPublicKey() => Promise<{ key: string; }>

Returns: Promise<{ key: string; }>


setLanguage(...)

setLanguage(params: { language: string; }) => Promise<void>
Param Type
params { language: string; }

getLanguage()

getLanguage() => Promise<{ language: string; }>

Returns: Promise<{ language: string; }>


createToken(...)

createToken(card: { number: string; name: string; cvc: string; exp_month: string; exp_year: string; }) => Promise<any>
Param Type
card { number: string; name: string; cvc: string; exp_month: string; exp_year: string; }

Returns: Promise<any>


setApiVersion(...)

setApiVersion(params: { api_version: string; }) => Promise<void>
Param Type
params { api_version: string; }

getApiVersion()

getApiVersion() => Promise<{ api_version: string; }>

Returns: Promise<{ api_version: string; }>


deviceFingerPrint()

deviceFingerPrint() => Promise<{ fingerprint: string; }>

Returns: Promise<{ fingerprint: string; }>


getBaseUri()

getBaseUri() => Promise<{ uri: string; }>

Returns: Promise<{ uri: string; }>