@easypayment/medusa-paypal 0.3.1 → 0.3.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.
@@ -321,7 +321,7 @@ function AdvancedCardPaymentsTab() {
321
321
  SectionCard$1,
322
322
  {
323
323
  title: "Advanced Card Payments",
324
- description: "Control card checkout settings, 3D Secure behavior, and card saving.",
324
+ description: "Control card checkout settings and 3D Secure behavior.",
325
325
  right: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
326
326
  /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: onSave, disabled: saving || loading, className: "rounded-md bg-ui-button-neutral px-4 py-2 text-sm font-medium text-ui-fg-on-color shadow-sm hover:opacity-90 disabled:opacity-60", children: saving ? "Saving..." : "Save settings" }),
327
327
  loading ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-ui-fg-subtle", children: "Loading..." }) : null
@@ -351,7 +351,7 @@ function AdvancedCardPaymentsTab() {
351
351
  )
352
352
  ] }) });
353
353
  }
354
- function PayPalApplePayPage() {
354
+ function PayPalGooglePayPage() {
355
355
  return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: "/settings/paypal/connection", replace: true });
356
356
  }
357
357
  const config = adminSdk.defineRouteConfig({
@@ -938,7 +938,7 @@ function PayPalConnectionPage() {
938
938
  ` })
939
939
  ] });
940
940
  }
941
- function PayPalGooglePayPage() {
941
+ function PayPalApplePayPage() {
942
942
  return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: "/settings/paypal/connection", replace: true });
943
943
  }
944
944
  function PayPalPayLaterMessagingPage() {
@@ -1185,7 +1185,7 @@ function PayPalSettingsTab() {
1185
1185
  SectionCard,
1186
1186
  {
1187
1187
  title: "PayPal Settings",
1188
- description: "Enable PayPal and configure checkout title/description.",
1188
+ description: "Enable PayPal and configure checkout title.",
1189
1189
  right: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
1190
1190
  /* @__PURE__ */ jsxRuntime.jsx(
1191
1191
  "button",
@@ -1220,15 +1220,6 @@ function PayPalSettingsTab() {
1220
1220
  className: "w-full rounded-md border border-ui-border-base bg-ui-bg-base px-3 py-2 text-sm text-ui-fg-base outline-none focus:ring-2 focus:ring-ui-border-interactive",
1221
1221
  placeholder: "PayPal"
1222
1222
  }
1223
- ) }),
1224
- /* @__PURE__ */ jsxRuntime.jsx(FieldRow, { label: "Description", children: /* @__PURE__ */ jsxRuntime.jsx(
1225
- "textarea",
1226
- {
1227
- value: form.description,
1228
- onChange: (e) => setForm((p) => ({ ...p, description: e.target.value })),
1229
- className: "min-h-[84px] w-full resize-y rounded-md border border-ui-border-base bg-ui-bg-base px-3 py-2 text-sm text-ui-fg-base outline-none focus:ring-2 focus:ring-ui-border-interactive",
1230
- placeholder: "Pay via PayPal..."
1231
- }
1232
1223
  ) })
1233
1224
  ] })
1234
1225
  }
@@ -1361,16 +1352,16 @@ const routeModule = {
1361
1352
  path: "/settings/paypal/advanced-card-payments"
1362
1353
  },
1363
1354
  {
1364
- Component: PayPalApplePayPage,
1365
- path: "/settings/paypal/apple-pay"
1355
+ Component: PayPalGooglePayPage,
1356
+ path: "/settings/paypal/google-pay"
1366
1357
  },
1367
1358
  {
1368
1359
  Component: PayPalConnectionPage,
1369
1360
  path: "/settings/paypal/connection"
1370
1361
  },
1371
1362
  {
1372
- Component: PayPalGooglePayPage,
1373
- path: "/settings/paypal/google-pay"
1363
+ Component: PayPalApplePayPage,
1364
+ path: "/settings/paypal/apple-pay"
1374
1365
  },
1375
1366
  {
1376
1367
  Component: PayPalPayLaterMessagingPage,
@@ -320,7 +320,7 @@ function AdvancedCardPaymentsTab() {
320
320
  SectionCard$1,
321
321
  {
322
322
  title: "Advanced Card Payments",
323
- description: "Control card checkout settings, 3D Secure behavior, and card saving.",
323
+ description: "Control card checkout settings and 3D Secure behavior.",
324
324
  right: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
325
325
  /* @__PURE__ */ jsx("button", { type: "button", onClick: onSave, disabled: saving || loading, className: "rounded-md bg-ui-button-neutral px-4 py-2 text-sm font-medium text-ui-fg-on-color shadow-sm hover:opacity-90 disabled:opacity-60", children: saving ? "Saving..." : "Save settings" }),
326
326
  loading ? /* @__PURE__ */ jsx("span", { className: "text-sm text-ui-fg-subtle", children: "Loading..." }) : null
@@ -350,7 +350,7 @@ function AdvancedCardPaymentsTab() {
350
350
  )
351
351
  ] }) });
352
352
  }
353
- function PayPalApplePayPage() {
353
+ function PayPalGooglePayPage() {
354
354
  return /* @__PURE__ */ jsx(Navigate, { to: "/settings/paypal/connection", replace: true });
355
355
  }
356
356
  const config = defineRouteConfig({
@@ -937,7 +937,7 @@ function PayPalConnectionPage() {
937
937
  ` })
938
938
  ] });
939
939
  }
940
- function PayPalGooglePayPage() {
940
+ function PayPalApplePayPage() {
941
941
  return /* @__PURE__ */ jsx(Navigate, { to: "/settings/paypal/connection", replace: true });
942
942
  }
943
943
  function PayPalPayLaterMessagingPage() {
@@ -1184,7 +1184,7 @@ function PayPalSettingsTab() {
1184
1184
  SectionCard,
1185
1185
  {
1186
1186
  title: "PayPal Settings",
1187
- description: "Enable PayPal and configure checkout title/description.",
1187
+ description: "Enable PayPal and configure checkout title.",
1188
1188
  right: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
1189
1189
  /* @__PURE__ */ jsx(
1190
1190
  "button",
@@ -1219,15 +1219,6 @@ function PayPalSettingsTab() {
1219
1219
  className: "w-full rounded-md border border-ui-border-base bg-ui-bg-base px-3 py-2 text-sm text-ui-fg-base outline-none focus:ring-2 focus:ring-ui-border-interactive",
1220
1220
  placeholder: "PayPal"
1221
1221
  }
1222
- ) }),
1223
- /* @__PURE__ */ jsx(FieldRow, { label: "Description", children: /* @__PURE__ */ jsx(
1224
- "textarea",
1225
- {
1226
- value: form.description,
1227
- onChange: (e) => setForm((p) => ({ ...p, description: e.target.value })),
1228
- className: "min-h-[84px] w-full resize-y rounded-md border border-ui-border-base bg-ui-bg-base px-3 py-2 text-sm text-ui-fg-base outline-none focus:ring-2 focus:ring-ui-border-interactive",
1229
- placeholder: "Pay via PayPal..."
1230
- }
1231
1222
  ) })
1232
1223
  ] })
1233
1224
  }
@@ -1360,16 +1351,16 @@ const routeModule = {
1360
1351
  path: "/settings/paypal/advanced-card-payments"
1361
1352
  },
1362
1353
  {
1363
- Component: PayPalApplePayPage,
1364
- path: "/settings/paypal/apple-pay"
1354
+ Component: PayPalGooglePayPage,
1355
+ path: "/settings/paypal/google-pay"
1365
1356
  },
1366
1357
  {
1367
1358
  Component: PayPalConnectionPage,
1368
1359
  path: "/settings/paypal/connection"
1369
1360
  },
1370
1361
  {
1371
- Component: PayPalGooglePayPage,
1372
- path: "/settings/paypal/google-pay"
1362
+ Component: PayPalApplePayPage,
1363
+ path: "/settings/paypal/apple-pay"
1373
1364
  },
1374
1365
  {
1375
1366
  Component: PayPalPayLaterMessagingPage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easypayment/medusa-paypal",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Industry-standard PayPal integration for Medusa v2",
5
5
  "license": "MIT",
6
6
  "main": "./.medusa/server/src/index.js",
@@ -167,7 +167,7 @@ export default function AdvancedCardPaymentsTab() {
167
167
  <span className={toast.type === "success" ? "text-ui-fg-base" : "text-ui-fg-error"}>{toast.message}</span>
168
168
  </div>
169
169
  ) : null}
170
- <SectionCard title="Advanced Card Payments" description="Control card checkout settings, 3D Secure behavior, and card saving."
170
+ <SectionCard title="Advanced Card Payments" description="Control card checkout settings and 3D Secure behavior."
171
171
  right={(
172
172
  <div className="flex items-center gap-3">
173
173
  <button type="button" onClick={onSave} disabled={saving || loading} className="rounded-md bg-ui-button-neutral px-4 py-2 text-sm font-medium text-ui-fg-on-color shadow-sm hover:opacity-90 disabled:opacity-60">
@@ -335,7 +335,7 @@ export default function PayPalSettingsTab() {
335
335
  {/* PayPal Settings */}
336
336
  <SectionCard
337
337
  title="PayPal Settings"
338
- description="Enable PayPal and configure checkout title/description."
338
+ description="Enable PayPal and configure checkout title."
339
339
  right={(
340
340
  <div className="flex items-center gap-3">
341
341
  <button
@@ -372,15 +372,6 @@ export default function PayPalSettingsTab() {
372
372
  />
373
373
  </FieldRow>
374
374
 
375
- <FieldRow label="Description">
376
- <textarea
377
- value={form.description}
378
- onChange={(e) => setForm((p) => ({ ...p, description: e.target.value }))}
379
- className="min-h-[84px] w-full resize-y rounded-md border border-ui-border-base bg-ui-bg-base px-3 py-2 text-sm text-ui-fg-base outline-none focus:ring-2 focus:ring-ui-border-interactive"
380
- placeholder="Pay via PayPal..."
381
- />
382
- </FieldRow>
383
-
384
375
  </div>
385
376
  </SectionCard>
386
377