@vaultsaas/core 0.1.1 → 0.1.3
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.
- package/README.md +2 -4
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,10 +54,7 @@ try {
|
|
|
54
54
|
currency: 'USD',
|
|
55
55
|
paymentMethod: {
|
|
56
56
|
type: 'card',
|
|
57
|
-
|
|
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/dist/index.cjs
CHANGED
|
@@ -3016,6 +3016,12 @@ var VaultClient = class {
|
|
|
3016
3016
|
idempotencyStore;
|
|
3017
3017
|
idempotencyTtlMs;
|
|
3018
3018
|
transactionProviderIndex = /* @__PURE__ */ new Map();
|
|
3019
|
+
async close() {
|
|
3020
|
+
if (this.platformConnector) {
|
|
3021
|
+
await this.platformConnector.flush();
|
|
3022
|
+
this.platformConnector.close();
|
|
3023
|
+
}
|
|
3024
|
+
}
|
|
3019
3025
|
constructor(config) {
|
|
3020
3026
|
validateVaultConfig(config);
|
|
3021
3027
|
this.config = config;
|