@easypayment/medusa-paypal 0.5.9 → 0.6.0
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.
|
@@ -325,6 +325,9 @@ function AdvancedCardPaymentsTab() {
|
|
|
325
325
|
function PayPalApplePayPage() {
|
|
326
326
|
return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
327
327
|
}
|
|
328
|
+
function PayPalGooglePayPage() {
|
|
329
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
330
|
+
}
|
|
328
331
|
const config = adminSdk.defineRouteConfig({
|
|
329
332
|
label: "PayPal Connection",
|
|
330
333
|
hide: true
|
|
@@ -683,7 +686,7 @@ function PayPalConnectionPage() {
|
|
|
683
686
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
684
687
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-xl font-semibold", children: "PayPal Gateway By Easy Payment" }),
|
|
685
688
|
/* @__PURE__ */ jsxRuntime.jsx(PayPalTabs, {}),
|
|
686
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-
|
|
689
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl border border-ui-border-base bg-ui-bg-base shadow-sm", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-y-6 p-4 md:grid-cols-[260px_1fr] md:items-start", children: [
|
|
687
690
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium pt-2", children: "Environment" }),
|
|
688
691
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-xl", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
689
692
|
"select",
|
|
@@ -757,7 +760,7 @@ function PayPalConnectionPage() {
|
|
|
757
760
|
href: finalUrl || "#",
|
|
758
761
|
"data-paypal-onboard-complete": "onboardingCallback",
|
|
759
762
|
onClick: handleConnectClick,
|
|
760
|
-
className: "inline-flex items-center justify-center rounded-md bg-ui-button-neutral px-4 py-2 text-sm font-medium text-ui-fg-
|
|
763
|
+
className: "inline-flex items-center justify-center rounded-md border border-ui-border-base bg-ui-button-neutral px-4 py-2 text-sm font-medium text-ui-fg-base no-underline shadow-sm transition-opacity hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ui-border-interactive disabled:opacity-60",
|
|
761
764
|
style: {
|
|
762
765
|
cursor: onboardingInProgress ? "not-allowed" : "pointer",
|
|
763
766
|
opacity: onboardingInProgress ? 0.6 : 1,
|
|
@@ -919,9 +922,6 @@ function PayPalConnectionPage() {
|
|
|
919
922
|
` })
|
|
920
923
|
] });
|
|
921
924
|
}
|
|
922
|
-
function PayPalGooglePayPage() {
|
|
923
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
924
|
-
}
|
|
925
925
|
function PayPalPayLaterMessagingPage() {
|
|
926
926
|
return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
927
927
|
}
|
|
@@ -1217,14 +1217,14 @@ const routeModule = {
|
|
|
1217
1217
|
Component: PayPalApplePayPage,
|
|
1218
1218
|
path: "/settings/paypal/apple-pay"
|
|
1219
1219
|
},
|
|
1220
|
-
{
|
|
1221
|
-
Component: PayPalConnectionPage,
|
|
1222
|
-
path: "/settings/paypal/connection"
|
|
1223
|
-
},
|
|
1224
1220
|
{
|
|
1225
1221
|
Component: PayPalGooglePayPage,
|
|
1226
1222
|
path: "/settings/paypal/google-pay"
|
|
1227
1223
|
},
|
|
1224
|
+
{
|
|
1225
|
+
Component: PayPalConnectionPage,
|
|
1226
|
+
path: "/settings/paypal/connection"
|
|
1227
|
+
},
|
|
1228
1228
|
{
|
|
1229
1229
|
Component: PayPalPayLaterMessagingPage,
|
|
1230
1230
|
path: "/settings/paypal/pay-later-messaging"
|
|
@@ -324,6 +324,9 @@ function AdvancedCardPaymentsTab() {
|
|
|
324
324
|
function PayPalApplePayPage() {
|
|
325
325
|
return /* @__PURE__ */ jsx(Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
326
326
|
}
|
|
327
|
+
function PayPalGooglePayPage() {
|
|
328
|
+
return /* @__PURE__ */ jsx(Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
329
|
+
}
|
|
327
330
|
const config = defineRouteConfig({
|
|
328
331
|
label: "PayPal Connection",
|
|
329
332
|
hide: true
|
|
@@ -682,7 +685,7 @@ function PayPalConnectionPage() {
|
|
|
682
685
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
683
686
|
/* @__PURE__ */ jsx("h1", { className: "text-xl font-semibold", children: "PayPal Gateway By Easy Payment" }),
|
|
684
687
|
/* @__PURE__ */ jsx(PayPalTabs, {}),
|
|
685
|
-
/* @__PURE__ */ jsx("div", { className: "rounded-
|
|
688
|
+
/* @__PURE__ */ jsx("div", { className: "rounded-xl border border-ui-border-base bg-ui-bg-base shadow-sm", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-y-6 p-4 md:grid-cols-[260px_1fr] md:items-start", children: [
|
|
686
689
|
/* @__PURE__ */ jsx("div", { className: "text-sm font-medium pt-2", children: "Environment" }),
|
|
687
690
|
/* @__PURE__ */ jsx("div", { className: "max-w-xl", children: /* @__PURE__ */ jsxs(
|
|
688
691
|
"select",
|
|
@@ -756,7 +759,7 @@ function PayPalConnectionPage() {
|
|
|
756
759
|
href: finalUrl || "#",
|
|
757
760
|
"data-paypal-onboard-complete": "onboardingCallback",
|
|
758
761
|
onClick: handleConnectClick,
|
|
759
|
-
className: "inline-flex items-center justify-center rounded-md bg-ui-button-neutral px-4 py-2 text-sm font-medium text-ui-fg-
|
|
762
|
+
className: "inline-flex items-center justify-center rounded-md border border-ui-border-base bg-ui-button-neutral px-4 py-2 text-sm font-medium text-ui-fg-base no-underline shadow-sm transition-opacity hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ui-border-interactive disabled:opacity-60",
|
|
760
763
|
style: {
|
|
761
764
|
cursor: onboardingInProgress ? "not-allowed" : "pointer",
|
|
762
765
|
opacity: onboardingInProgress ? 0.6 : 1,
|
|
@@ -918,9 +921,6 @@ function PayPalConnectionPage() {
|
|
|
918
921
|
` })
|
|
919
922
|
] });
|
|
920
923
|
}
|
|
921
|
-
function PayPalGooglePayPage() {
|
|
922
|
-
return /* @__PURE__ */ jsx(Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
923
|
-
}
|
|
924
924
|
function PayPalPayLaterMessagingPage() {
|
|
925
925
|
return /* @__PURE__ */ jsx(Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
926
926
|
}
|
|
@@ -1216,14 +1216,14 @@ const routeModule = {
|
|
|
1216
1216
|
Component: PayPalApplePayPage,
|
|
1217
1217
|
path: "/settings/paypal/apple-pay"
|
|
1218
1218
|
},
|
|
1219
|
-
{
|
|
1220
|
-
Component: PayPalConnectionPage,
|
|
1221
|
-
path: "/settings/paypal/connection"
|
|
1222
|
-
},
|
|
1223
1219
|
{
|
|
1224
1220
|
Component: PayPalGooglePayPage,
|
|
1225
1221
|
path: "/settings/paypal/google-pay"
|
|
1226
1222
|
},
|
|
1223
|
+
{
|
|
1224
|
+
Component: PayPalConnectionPage,
|
|
1225
|
+
path: "/settings/paypal/connection"
|
|
1226
|
+
},
|
|
1227
1227
|
{
|
|
1228
1228
|
Component: PayPalPayLaterMessagingPage,
|
|
1229
1229
|
path: "/settings/paypal/pay-later-messaging"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easypayment/medusa-paypal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Industry-standard PayPal integration for Medusa v2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./.medusa/server/src/index.js",
|
|
@@ -66,10 +66,8 @@
|
|
|
66
66
|
"url": "https://github.com/easypayment/medusa-paypal.git"
|
|
67
67
|
},
|
|
68
68
|
"keywords": [
|
|
69
|
-
"medusa",
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"ecommerce",
|
|
73
|
-
"plugin"
|
|
69
|
+
"medusa-plugin-integration",
|
|
70
|
+
"medusa-v2",
|
|
71
|
+
"medusa-plugin-payment"
|
|
74
72
|
]
|
|
75
73
|
}
|
|
@@ -492,8 +492,8 @@ export default function PayPalConnectionPage() {
|
|
|
492
492
|
<PayPalTabs />
|
|
493
493
|
|
|
494
494
|
{/* Main container */}
|
|
495
|
-
<div className="rounded-
|
|
496
|
-
<div className="grid grid-cols-1 gap-y-6 md:grid-cols-[260px_1fr] md:items-start">
|
|
495
|
+
<div className="rounded-xl border border-ui-border-base bg-ui-bg-base shadow-sm">
|
|
496
|
+
<div className="grid grid-cols-1 gap-y-6 p-4 md:grid-cols-[260px_1fr] md:items-start">
|
|
497
497
|
{/* Environment */}
|
|
498
498
|
<div className="text-sm font-medium pt-2">Environment</div>
|
|
499
499
|
<div className="max-w-xl">
|
|
@@ -581,7 +581,7 @@ export default function PayPalConnectionPage() {
|
|
|
581
581
|
href={finalUrl || "#"}
|
|
582
582
|
data-paypal-onboard-complete="onboardingCallback"
|
|
583
583
|
onClick={handleConnectClick}
|
|
584
|
-
className="inline-flex items-center justify-center rounded-md bg-ui-button-neutral px-4 py-2 text-sm font-medium text-ui-fg-
|
|
584
|
+
className="inline-flex items-center justify-center rounded-md border border-ui-border-base bg-ui-button-neutral px-4 py-2 text-sm font-medium text-ui-fg-base no-underline shadow-sm transition-opacity hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ui-border-interactive disabled:opacity-60"
|
|
585
585
|
style={{
|
|
586
586
|
cursor: onboardingInProgress ? "not-allowed" : "pointer",
|
|
587
587
|
opacity: onboardingInProgress ? 0.6 : 1,
|