UNPKG

wayforpay-ts-integration

Version:

Library for forms to go to the Wayforpay payment page.

19 lines (18 loc) 694 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const __1 = require(".."); const test_merchant_1 = __importDefault(require("./test-merchant")); describe('Wayforpay.checkStatus', () => { let wayforpay; beforeEach(() => { wayforpay = new __1.Wayforpay(test_merchant_1.default); }); it('should return the transaction', async () => { const transaction = await wayforpay.checkStatus('5889_woo_w4p_1731157495'); console.log(transaction); expect(transaction).toBeTruthy(); }); });