zarinpal-checkout
Version:
Type-safe ZarinPal checkout client for Node.js with modern tooling and backwards-compatible API methods.
15 lines (10 loc) • 344 B
text/typescript
import ZarinpalCheckout from '../src/index';
async function run(): Promise<void> {
const zarinpal = ZarinpalCheckout.create('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
const response = await zarinpal.PaymentVerification({
Amount: 1000,
Authority: '000000000000000000000000000000000000'
});
console.log(response);
}
void run();