@siglume/direct-request-payment 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,4 +14,12 @@ const setup = await merchant.setupCheckout({
14
14
  create_webhook_subscription: Boolean(process.env.SIGLUME_DIRECT_PAYMENT_WEBHOOK_URL),
15
15
  });
16
16
 
17
- console.log(JSON.stringify(setup, null, 2));
17
+ // setup.env contains the merchant key PLUS the challenge and webhook secrets.
18
+ // Store these in your server-side secret manager. Never log the secret values —
19
+ // log only non-secret confirmation.
20
+ const env = setup.env ?? {};
21
+ console.log("Merchant configured:", {
22
+ merchant: env.SIGLUME_DIRECT_PAYMENT_MERCHANT,
23
+ challenge_secret: env.SIGLUME_DIRECT_PAYMENT_CHALLENGE_SECRET ? "****" : undefined,
24
+ webhook_secret: env.SIGLUME_WEBHOOK_SECRET ? "****" : undefined,
25
+ });
package/package.json CHANGED
@@ -1,13 +1,18 @@
1
1
  {
2
2
  "name": "@siglume/direct-request-payment",
3
- "version": "0.3.4",
4
- "description": "Merchant SDK for Siglume Direct Request Payment checkout integrations",
3
+ "version": "0.3.6",
4
+ "description": "SDK for the Siglume Direct Request Payment SDRP payment protocol",
5
5
  "keywords": [
6
6
  "siglume",
7
+ "sdrp",
8
+ "direct-request-payment",
7
9
  "payment",
8
- "checkout",
9
- "external-402",
10
+ "micropayments",
11
+ "metered-billing",
10
12
  "wallet",
13
+ "jpyc",
14
+ "usdc",
15
+ "checkout",
11
16
  "sdk"
12
17
  ],
13
18
  "license": "MIT",