payment-kit 1.20.16 → 1.20.17
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/api/src/routes/vendor.ts +3 -2
- package/blocklet.yml +1 -1
- package/package.json +6 -5
package/api/src/routes/vendor.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { CheckoutSession, Invoice, Subscription } from '../store/models';
|
|
|
15
15
|
import { ProductVendor } from '../store/models/product-vendor';
|
|
16
16
|
|
|
17
17
|
const authAdmin = authenticate<CheckoutSession>({ component: true, roles: ['owner', 'admin'] });
|
|
18
|
+
const loginAuth = authenticate<CheckoutSession>({ component: true, ensureLogin: true, mine: true });
|
|
18
19
|
|
|
19
20
|
const createVendorSchema = Joi.object({
|
|
20
21
|
vendor_key: Joi.string().max(50).required(),
|
|
@@ -539,8 +540,8 @@ const ensureVendorAuth = middleware.ensureVendorAuth((vendorPk: string) =>
|
|
|
539
540
|
);
|
|
540
541
|
|
|
541
542
|
// FIXME: Authentication not yet added, awaiting implementation @Pengfei
|
|
542
|
-
router.get('/order/:sessionId/status', validateParams(sessionIdParamSchema), getVendorFulfillmentStatus);
|
|
543
|
-
router.get('/order/:sessionId/detail', validateParams(sessionIdParamSchema), getVendorFulfillmentDetail);
|
|
543
|
+
router.get('/order/:sessionId/status', loginAuth, validateParams(sessionIdParamSchema), getVendorFulfillmentStatus);
|
|
544
|
+
router.get('/order/:sessionId/detail', loginAuth, validateParams(sessionIdParamSchema), getVendorFulfillmentDetail);
|
|
544
545
|
|
|
545
546
|
router.get('/subscription/:sessionId/redirect', handleSubscriptionRedirect);
|
|
546
547
|
router.get('/subscription/:sessionId', ensureVendorAuth, getVendorSubscription);
|
package/blocklet.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payment-kit",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.17",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "blocklet dev --open",
|
|
6
6
|
"lint": "tsc --noEmit && eslint src api/src --ext .mjs,.js,.jsx,.ts,.tsx",
|
|
@@ -56,8 +56,9 @@
|
|
|
56
56
|
"@blocklet/error": "^0.2.5",
|
|
57
57
|
"@blocklet/js-sdk": "^1.16.52-beta-20250912-112002-e3499e9c",
|
|
58
58
|
"@blocklet/logger": "^1.16.52-beta-20250912-112002-e3499e9c",
|
|
59
|
-
"@blocklet/payment-
|
|
60
|
-
"@blocklet/payment-
|
|
59
|
+
"@blocklet/payment-broker-client": "1.20.17",
|
|
60
|
+
"@blocklet/payment-react": "1.20.17",
|
|
61
|
+
"@blocklet/payment-vendor": "1.20.17",
|
|
61
62
|
"@blocklet/sdk": "^1.16.52-beta-20250912-112002-e3499e9c",
|
|
62
63
|
"@blocklet/ui-react": "^3.1.41",
|
|
63
64
|
"@blocklet/uploader": "^0.2.12",
|
|
@@ -126,7 +127,7 @@
|
|
|
126
127
|
"devDependencies": {
|
|
127
128
|
"@abtnode/types": "^1.16.52-beta-20250912-112002-e3499e9c",
|
|
128
129
|
"@arcblock/eslint-config-ts": "^0.3.3",
|
|
129
|
-
"@blocklet/payment-types": "1.20.
|
|
130
|
+
"@blocklet/payment-types": "1.20.17",
|
|
130
131
|
"@types/cookie-parser": "^1.4.9",
|
|
131
132
|
"@types/cors": "^2.8.19",
|
|
132
133
|
"@types/debug": "^4.1.12",
|
|
@@ -173,5 +174,5 @@
|
|
|
173
174
|
"parser": "typescript"
|
|
174
175
|
}
|
|
175
176
|
},
|
|
176
|
-
"gitHead": "
|
|
177
|
+
"gitHead": "20e9d7519327cb4df0c93375ff85783303fc99d6"
|
|
177
178
|
}
|