فهرست منبع

chore: Add note to multivendor example service

Michael Bromley 1 سال پیش
والد
کامیت
2a817cb96b
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      packages/dev-server/example-plugins/multivendor-plugin/service/mv.service.ts

+ 3 - 0
packages/dev-server/example-plugins/multivendor-plugin/service/mv.service.ts

@@ -113,6 +113,9 @@ export class MultivendorService {
         const seller = await this.sellerService.create(ctx, {
         const seller = await this.sellerService.create(ctx, {
             name: input.shopName,
             name: input.shopName,
             customFields: {
             customFields: {
+                // This simulates a connection to a payment provider,
+                // which would supply the connected account ID.
+                // In this case we just use a pseudo-random string
                 connectedAccountId: Math.random().toString(30).substring(3),
                 connectedAccountId: Math.random().toString(30).substring(3),
             },
             },
         });
         });