Skip to content

Commit

Permalink
Remove Secret Key
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansourkira committed Feb 13, 2023
1 parent 8a1acec commit 27326dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,5 +1,5 @@
{
"name": "@sikka/hajar",
"name": "@sikka/hajar0",
"version": "1.0.21",
"description": "Toolkit to create SaaS applications",
"main": "dist/Hajar.cjs.min.js",
Expand Down
5 changes: 2 additions & 3 deletions test/stripe.spec.js
Expand Up @@ -3,8 +3,7 @@ import * as Stripe from "stripe";

describe("initializeStripe", () => {
it("initializes a Stripe instance with the provided secret key", () => {
const secretKey =
"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";
const secretKey = "";
const stripe = Hajar.Stripe.initializeStripe(secretKey);

expect(stripe).not.toBeNull();
Expand All @@ -17,7 +16,7 @@ describe("initializeStripe", () => {
amount: 1000,
currency: "usd",
token:
"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",
"",
};
const charge = await Hajar.Stripe.ProcessPayment(paymentData);
Expand Down

0 comments on commit 27326dc

Please sign in to comment.