UNPKG

zarinpal-checkout

Version:

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

10 lines (7 loc) 215 B
import ZarinpalCheckout from '../src/index'; const zarinpal = ZarinpalCheckout.create( 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', false, 'IRT' ); console.log('Client created for merchant:', zarinpal.merchant);