@easypayment/medusa-paypal 0.4.2 → 0.4.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.
|
@@ -325,9 +325,6 @@ 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
|
-
}
|
|
331
328
|
const config = adminSdk.defineRouteConfig({
|
|
332
329
|
label: "PayPal Connection",
|
|
333
330
|
hide: true
|
|
@@ -767,13 +764,8 @@ function PayPalConnectionPage() {
|
|
|
767
764
|
href: finalUrl || "#",
|
|
768
765
|
"data-paypal-onboard-complete": "onboardingCallback",
|
|
769
766
|
onClick: handleConnectClick,
|
|
770
|
-
className: "btn-paypal",
|
|
767
|
+
className: "btn-paypal inline-flex items-center justify-center rounded-full bg-[#FFC439] px-6 py-2 text-sm font-semibold text-[#111827] no-underline shadow-sm transition hover:bg-[#f7b916]",
|
|
771
768
|
style: {
|
|
772
|
-
borderRadius: "50px",
|
|
773
|
-
textDecoration: "none",
|
|
774
|
-
display: "inline-block",
|
|
775
|
-
fontWeight: "bold",
|
|
776
|
-
border: "none",
|
|
777
769
|
cursor: onboardingInProgress ? "not-allowed" : "pointer",
|
|
778
770
|
opacity: onboardingInProgress ? 0.6 : 1,
|
|
779
771
|
pointerEvents: onboardingInProgress ? "none" : "auto"
|
|
@@ -853,13 +845,42 @@ function PayPalConnectionPage() {
|
|
|
853
845
|
}
|
|
854
846
|
)
|
|
855
847
|
] }),
|
|
856
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "md:col-span-2 text-sm text-ui-fg-subtle", children: [
|
|
857
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", {
|
|
858
|
-
/* @__PURE__ */ jsxRuntime.
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
848
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "md:col-span-2 rounded-md border border-ui-border-base bg-ui-bg-subtle p-4 text-sm text-ui-fg-subtle", children: [
|
|
849
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium text-ui-fg-base", children: "Get your Client ID and Client Secret in 3 steps:" }),
|
|
850
|
+
/* @__PURE__ */ jsxRuntime.jsxs("ol", { className: "mt-2 list-decimal space-y-2 pl-5", children: [
|
|
851
|
+
/* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
852
|
+
"Open",
|
|
853
|
+
" ",
|
|
854
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
855
|
+
"a",
|
|
856
|
+
{
|
|
857
|
+
href: "https://developer.paypal.com/dashboard/",
|
|
858
|
+
target: "_blank",
|
|
859
|
+
rel: "noreferrer",
|
|
860
|
+
className: "text-ui-fg-interactive underline",
|
|
861
|
+
children: "Log in to Dashboard"
|
|
862
|
+
}
|
|
863
|
+
),
|
|
864
|
+
" ",
|
|
865
|
+
"and sign in or create an account."
|
|
866
|
+
] }),
|
|
867
|
+
/* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
868
|
+
"Select ",
|
|
869
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-ui-fg-base", children: "Apps & Credentials" }),
|
|
870
|
+
", then choose ",
|
|
871
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-ui-fg-base", children: "Create App" }),
|
|
872
|
+
" if you need a new project."
|
|
873
|
+
] }),
|
|
874
|
+
/* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
875
|
+
"Copy your app's ",
|
|
876
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-ui-fg-base", children: "Client ID" }),
|
|
877
|
+
" and ",
|
|
878
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-ui-fg-base", children: "Client Secret" }),
|
|
879
|
+
", paste them above, then click ",
|
|
880
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-ui-fg-base", children: "Save credentials" }),
|
|
881
|
+
"."
|
|
882
|
+
] })
|
|
883
|
+
] })
|
|
863
884
|
] }),
|
|
864
885
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "md:col-span-2 flex items-center gap-2 mt-2", children: [
|
|
865
886
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -905,6 +926,9 @@ function PayPalConnectionPage() {
|
|
|
905
926
|
` })
|
|
906
927
|
] });
|
|
907
928
|
}
|
|
929
|
+
function PayPalGooglePayPage() {
|
|
930
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
931
|
+
}
|
|
908
932
|
function PayPalPayLaterMessagingPage() {
|
|
909
933
|
return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
910
934
|
}
|
|
@@ -1222,14 +1246,14 @@ const routeModule = {
|
|
|
1222
1246
|
Component: PayPalApplePayPage,
|
|
1223
1247
|
path: "/settings/paypal/apple-pay"
|
|
1224
1248
|
},
|
|
1225
|
-
{
|
|
1226
|
-
Component: PayPalGooglePayPage,
|
|
1227
|
-
path: "/settings/paypal/google-pay"
|
|
1228
|
-
},
|
|
1229
1249
|
{
|
|
1230
1250
|
Component: PayPalConnectionPage,
|
|
1231
1251
|
path: "/settings/paypal/connection"
|
|
1232
1252
|
},
|
|
1253
|
+
{
|
|
1254
|
+
Component: PayPalGooglePayPage,
|
|
1255
|
+
path: "/settings/paypal/google-pay"
|
|
1256
|
+
},
|
|
1233
1257
|
{
|
|
1234
1258
|
Component: PayPalPayLaterMessagingPage,
|
|
1235
1259
|
path: "/settings/paypal/pay-later-messaging"
|
|
@@ -324,9 +324,6 @@ 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
|
-
}
|
|
330
327
|
const config = defineRouteConfig({
|
|
331
328
|
label: "PayPal Connection",
|
|
332
329
|
hide: true
|
|
@@ -766,13 +763,8 @@ function PayPalConnectionPage() {
|
|
|
766
763
|
href: finalUrl || "#",
|
|
767
764
|
"data-paypal-onboard-complete": "onboardingCallback",
|
|
768
765
|
onClick: handleConnectClick,
|
|
769
|
-
className: "btn-paypal",
|
|
766
|
+
className: "btn-paypal inline-flex items-center justify-center rounded-full bg-[#FFC439] px-6 py-2 text-sm font-semibold text-[#111827] no-underline shadow-sm transition hover:bg-[#f7b916]",
|
|
770
767
|
style: {
|
|
771
|
-
borderRadius: "50px",
|
|
772
|
-
textDecoration: "none",
|
|
773
|
-
display: "inline-block",
|
|
774
|
-
fontWeight: "bold",
|
|
775
|
-
border: "none",
|
|
776
768
|
cursor: onboardingInProgress ? "not-allowed" : "pointer",
|
|
777
769
|
opacity: onboardingInProgress ? 0.6 : 1,
|
|
778
770
|
pointerEvents: onboardingInProgress ? "none" : "auto"
|
|
@@ -852,13 +844,42 @@ function PayPalConnectionPage() {
|
|
|
852
844
|
}
|
|
853
845
|
)
|
|
854
846
|
] }),
|
|
855
|
-
/* @__PURE__ */ jsxs("div", { className: "md:col-span-2 text-sm text-ui-fg-subtle", children: [
|
|
856
|
-
/* @__PURE__ */ jsx("p", {
|
|
857
|
-
/* @__PURE__ */
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
847
|
+
/* @__PURE__ */ jsxs("div", { className: "md:col-span-2 rounded-md border border-ui-border-base bg-ui-bg-subtle p-4 text-sm text-ui-fg-subtle", children: [
|
|
848
|
+
/* @__PURE__ */ jsx("p", { className: "font-medium text-ui-fg-base", children: "Get your Client ID and Client Secret in 3 steps:" }),
|
|
849
|
+
/* @__PURE__ */ jsxs("ol", { className: "mt-2 list-decimal space-y-2 pl-5", children: [
|
|
850
|
+
/* @__PURE__ */ jsxs("li", { children: [
|
|
851
|
+
"Open",
|
|
852
|
+
" ",
|
|
853
|
+
/* @__PURE__ */ jsx(
|
|
854
|
+
"a",
|
|
855
|
+
{
|
|
856
|
+
href: "https://developer.paypal.com/dashboard/",
|
|
857
|
+
target: "_blank",
|
|
858
|
+
rel: "noreferrer",
|
|
859
|
+
className: "text-ui-fg-interactive underline",
|
|
860
|
+
children: "Log in to Dashboard"
|
|
861
|
+
}
|
|
862
|
+
),
|
|
863
|
+
" ",
|
|
864
|
+
"and sign in or create an account."
|
|
865
|
+
] }),
|
|
866
|
+
/* @__PURE__ */ jsxs("li", { children: [
|
|
867
|
+
"Select ",
|
|
868
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-ui-fg-base", children: "Apps & Credentials" }),
|
|
869
|
+
", then choose ",
|
|
870
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-ui-fg-base", children: "Create App" }),
|
|
871
|
+
" if you need a new project."
|
|
872
|
+
] }),
|
|
873
|
+
/* @__PURE__ */ jsxs("li", { children: [
|
|
874
|
+
"Copy your app's ",
|
|
875
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-ui-fg-base", children: "Client ID" }),
|
|
876
|
+
" and ",
|
|
877
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-ui-fg-base", children: "Client Secret" }),
|
|
878
|
+
", paste them above, then click ",
|
|
879
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-ui-fg-base", children: "Save credentials" }),
|
|
880
|
+
"."
|
|
881
|
+
] })
|
|
882
|
+
] })
|
|
862
883
|
] }),
|
|
863
884
|
/* @__PURE__ */ jsxs("div", { className: "md:col-span-2 flex items-center gap-2 mt-2", children: [
|
|
864
885
|
/* @__PURE__ */ jsx(
|
|
@@ -904,6 +925,9 @@ function PayPalConnectionPage() {
|
|
|
904
925
|
` })
|
|
905
926
|
] });
|
|
906
927
|
}
|
|
928
|
+
function PayPalGooglePayPage() {
|
|
929
|
+
return /* @__PURE__ */ jsx(Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
930
|
+
}
|
|
907
931
|
function PayPalPayLaterMessagingPage() {
|
|
908
932
|
return /* @__PURE__ */ jsx(Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
909
933
|
}
|
|
@@ -1221,14 +1245,14 @@ const routeModule = {
|
|
|
1221
1245
|
Component: PayPalApplePayPage,
|
|
1222
1246
|
path: "/settings/paypal/apple-pay"
|
|
1223
1247
|
},
|
|
1224
|
-
{
|
|
1225
|
-
Component: PayPalGooglePayPage,
|
|
1226
|
-
path: "/settings/paypal/google-pay"
|
|
1227
|
-
},
|
|
1228
1248
|
{
|
|
1229
1249
|
Component: PayPalConnectionPage,
|
|
1230
1250
|
path: "/settings/paypal/connection"
|
|
1231
1251
|
},
|
|
1252
|
+
{
|
|
1253
|
+
Component: PayPalGooglePayPage,
|
|
1254
|
+
path: "/settings/paypal/google-pay"
|
|
1255
|
+
},
|
|
1232
1256
|
{
|
|
1233
1257
|
Component: PayPalPayLaterMessagingPage,
|
|
1234
1258
|
path: "/settings/paypal/pay-later-messaging"
|
package/package.json
CHANGED
|
@@ -588,13 +588,8 @@ export default function PayPalConnectionPage() {
|
|
|
588
588
|
href={finalUrl || "#"}
|
|
589
589
|
data-paypal-onboard-complete="onboardingCallback"
|
|
590
590
|
onClick={handleConnectClick}
|
|
591
|
-
className="btn-paypal"
|
|
591
|
+
className="btn-paypal inline-flex items-center justify-center rounded-full bg-[#FFC439] px-6 py-2 text-sm font-semibold text-[#111827] no-underline shadow-sm transition hover:bg-[#f7b916]"
|
|
592
592
|
style={{
|
|
593
|
-
borderRadius: "50px",
|
|
594
|
-
textDecoration: "none",
|
|
595
|
-
display: "inline-block",
|
|
596
|
-
fontWeight: "bold",
|
|
597
|
-
border: "none",
|
|
598
593
|
cursor: onboardingInProgress ? "not-allowed" : "pointer",
|
|
599
594
|
opacity: onboardingInProgress ? 0.6 : 1,
|
|
600
595
|
pointerEvents: onboardingInProgress ? "none" : "auto",
|
|
@@ -688,13 +683,26 @@ export default function PayPalConnectionPage() {
|
|
|
688
683
|
/>
|
|
689
684
|
</div>
|
|
690
685
|
|
|
691
|
-
<div className="md:col-span-2 text-sm text-ui-fg-subtle">
|
|
692
|
-
<p
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
<
|
|
696
|
-
|
|
697
|
-
|
|
686
|
+
<div className="md:col-span-2 rounded-md border border-ui-border-base bg-ui-bg-subtle p-4 text-sm text-ui-fg-subtle">
|
|
687
|
+
<p className="font-medium text-ui-fg-base">
|
|
688
|
+
Get your Client ID and Client Secret in 3 steps:
|
|
689
|
+
</p>
|
|
690
|
+
<ol className="mt-2 list-decimal space-y-2 pl-5">
|
|
691
|
+
<li>
|
|
692
|
+
Open{" "}
|
|
693
|
+
<a
|
|
694
|
+
href="https://developer.paypal.com/dashboard/"
|
|
695
|
+
target="_blank"
|
|
696
|
+
rel="noreferrer"
|
|
697
|
+
className="text-ui-fg-interactive underline"
|
|
698
|
+
>
|
|
699
|
+
Log in to Dashboard
|
|
700
|
+
</a>{" "}
|
|
701
|
+
and sign in or create an account.
|
|
702
|
+
</li>
|
|
703
|
+
<li>Select <span className="font-medium text-ui-fg-base">Apps & Credentials</span>, then choose <span className="font-medium text-ui-fg-base">Create App</span> if you need a new project.</li>
|
|
704
|
+
<li>Copy your app's <span className="font-medium text-ui-fg-base">Client ID</span> and <span className="font-medium text-ui-fg-base">Client Secret</span>, paste them above, then click <span className="font-medium text-ui-fg-base">Save credentials</span>.</li>
|
|
705
|
+
</ol>
|
|
698
706
|
</div>
|
|
699
707
|
|
|
700
708
|
<div className="md:col-span-2 flex items-center gap-2 mt-2">
|