Work with the AuthNetCap in a common way for iOS, Android, and web
Work with the AuthNetCap in a common way for iOS, Android, and web
``bash`
npm install auth-net-cap
npx cap sync
* echo(...)
* dispatchData(...)
`typescript`
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
--------------------
`typescript`
dispatchData(options: { env: string; clientName: string; clientKey: string; cardNumber: string; expirationMonth: string; expirationYear: string; cardCode: string; zipCode: string; cardHolderName: string; }) => Promise<{ value: string; descriptor: string; }>
| Param | Type |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| options` | { env: string; clientName: string; clientKey: string; cardNumber: string; expirationMonth: string; expirationYear: string; cardCode: string; zipCode: string; cardHolderName: string; } |
Returns: Promise<{ value: string; descriptor: string; }>
--------------------