@reevit/react 0.2.0 → 0.2.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.
package/dist/index.mjs CHANGED
@@ -83,7 +83,7 @@ var API_BASE_URL_PRODUCTION = "https://api.reevit.io";
83
83
  var API_BASE_URL_SANDBOX = "https://sandbox-api.reevit.io";
84
84
  var DEFAULT_TIMEOUT = 3e4;
85
85
  function isSandboxKey(publicKey) {
86
- return publicKey.startsWith("pk_test_") || publicKey.startsWith("pk_sandbox_");
86
+ return publicKey.startsWith("pk_test_") || publicKey.startsWith("pk_sandbox_") || publicKey.startsWith("pfk_test_") || publicKey.startsWith("pfk_sandbox_");
87
87
  }
88
88
  function createPaymentError(response, errorData) {
89
89
  return {
@@ -737,7 +737,8 @@ function ReevitCheckout({
737
737
  // UI
738
738
  children,
739
739
  autoOpen = false,
740
- theme
740
+ theme,
741
+ apiBaseUrl
741
742
  }) {
742
743
  const [isOpen, setIsOpen] = useState(autoOpen);
743
744
  const [showPSPBridge, setShowPSPBridge] = useState(false);
@@ -757,6 +758,7 @@ function ReevitCheckout({
757
758
  isComplete
758
759
  } = useReevit({
759
760
  config: { publicKey, amount, currency, email, phone, reference, metadata, paymentMethods },
761
+ apiBaseUrl,
760
762
  onSuccess: (result2) => {
761
763
  onSuccess?.(result2);
762
764
  setTimeout(() => {
@@ -918,7 +920,14 @@ function ReevitCheckout({
918
920
  "aria-modal": "true",
919
921
  children: [
920
922
  /* @__PURE__ */ jsxs("div", { className: "reevit-modal__header", children: [
921
- /* @__PURE__ */ jsx("div", { className: "reevit-modal__branding", children: /* @__PURE__ */ jsx("span", { className: "reevit-modal__logo", children: "Reevit" }) }),
923
+ /* @__PURE__ */ jsx("div", { className: "reevit-modal__branding", children: /* @__PURE__ */ jsx(
924
+ "img",
925
+ {
926
+ src: "https://i.imgur.com/bzUR5Lm.png",
927
+ alt: "Reevit",
928
+ className: "reevit-modal__logo"
929
+ }
930
+ ) }),
922
931
  /* @__PURE__ */ jsx(
923
932
  "button",
924
933
  {