UNPKG

zarinpal-checkout

Version:

Type-safe ZarinPal checkout client for Node.js with modern tooling and backwards-compatible API methods.

15 lines (10 loc) 341 B
import ZarinpalCheckout from '../src/index'; async function run(): Promise<void> { const zarinpal = ZarinpalCheckout.create('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'); const response = await zarinpal.RefreshAuthority({ Authority: '000000000000000000000000000000000000', Expire: 1800 }); console.log(response); } void run();