@vaultsaas/core 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +2 -4
  2. package/package.json +2 -4
package/README.md CHANGED
@@ -54,10 +54,7 @@ try {
54
54
  currency: 'USD',
55
55
  paymentMethod: {
56
56
  type: 'card',
57
- number: '4242424242424242',
58
- expMonth: 12,
59
- expYear: 2030,
60
- cvc: '123',
57
+ token: 'pm_card_visa',
61
58
  },
62
59
  customer: {
63
60
  email: 'buyer@example.com',
@@ -104,6 +101,7 @@ STRIPE_API_KEY=sk_test_xxx bun quickstart.ts
104
101
  ```
105
102
 
106
103
  Note: if you include `customer.name` for Stripe shipping details, also include `customer.address` to avoid provider validation errors.
104
+ For Stripe test mode, use test tokens/payment methods (for example `pm_card_visa`) instead of raw card numbers unless Stripe has explicitly enabled raw card data APIs on your account.
107
105
 
108
106
  ## Documentation
109
107
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaultsaas/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Open-source core SDK for VaultSaaS payments orchestration",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,9 +14,7 @@
14
14
  "require": "./dist/index.cjs"
15
15
  }
16
16
  },
17
- "files": [
18
- "dist"
19
- ],
17
+ "files": ["dist"],
20
18
  "scripts": {
21
19
  "lint": "biome check .",
22
20
  "format": "biome format --write .",