Skip to content

A self-hosted UPI & COD payment gateway with zero per-transaction platform fees, universal JavaScript checkout integration, dynamic QR payments, WhatsApp OTP authentication, and automated payment verification.

JavaScript

test(checkout): update QR generator import to @youpi/core in integration tests

ArunGupta1526bbaec6052cd1
diff --git a/apps/checkout-portal/src/__tests__/checkout-portal.test.js b/apps/checkout-portal/src/__tests__/checkout-portal.test.js
index c5b8d72..19f81b8 100644
--- a/apps/checkout-portal/src/__tests__/checkout-portal.test.js
+++ b/apps/checkout-portal/src/__tests__/checkout-portal.test.js
@@ -2,7 +2,7 @@ import { test, describe, before, after } from 'node:test';
import assert from 'node:assert/strict';
import http from 'node:http';
import { startCheckoutServer } from '../index.js';
-import { generateQrMatrix, generateQrSvg } from '../qr.js';
+import { generateQrMatrix, generateQrSvg } from '@youpi/core';
describe('Checkout Portal Integration Tests', () => {
let serverInstance;
diff --git a/packages/db/src/__tests__/auth-matrix.test.js b/packages/db/src/__tests__/auth-matrix.test.js
index 1c65c40..8241686 100644
--- a/packages/db/src/__tests__/auth-matrix.test.js
+++ b/packages/db/src/__tests__/auth-matrix.test.js
@@ -13,7 +13,7 @@ import { QueueEngine } from '@youpi/core';
import { TimingEngine } from '@youpi/core';
import { AttributionEngine } from '@youpi/core';
import { WebhookEngine } from '@youpi/core';
-import { generateQrSvg } from '../../../../apps/checkout-portal/src/qr.js';
+import { generateQrSvg } from '@youpi/core';
import {
buildUpiUri,
buildUpiIntentUri,