fix(payment): expose provider type for named gateways

This commit is contained in:
Clintchiz committed 2026-08-28 10:02:42 +05:30
1 parent 2e770f7e3e
commit 1b470402c7
5 files changed
+8 -1

No files matched your search

+1
View File
@@ -28,6 +28,7 @@ test("configuration creates any number of named provider gateways", () => {
expect(options.default).toBe("india");
expect(options.adapters.map((adapter) => adapter.id)).toEqual(["india", "global"]);
expect(options.adapters.map((adapter) => adapter.provider)).toEqual(["razorpay", "stripe"]);
expect(options.webhookSecrets).toEqual({ india: "razorpay-hook", global: "stripe-hook" });
});