@reevit/react 0.1.0 → 0.2.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.
package/dist/index.mjs CHANGED
@@ -250,6 +250,7 @@ function mapToPaymentIntent(response, config) {
250
250
  return {
251
251
  id: response.id,
252
252
  clientSecret: response.client_secret,
253
+ pspPublicKey: response.psp_public_key,
253
254
  amount: response.amount,
254
255
  currency: response.currency,
255
256
  status: response.status,
@@ -856,10 +857,11 @@ function ReevitCheckout({
856
857
  ] });
857
858
  }
858
859
  if (showPSPBridge) {
860
+ const pspKey = paymentIntent?.pspPublicKey || publicKey;
859
861
  return /* @__PURE__ */ jsx(
860
862
  PaystackBridge,
861
863
  {
862
- publicKey,
864
+ publicKey: pspKey,
863
865
  email,
864
866
  amount,
865
867
  currency,
@@ -916,7 +918,14 @@ function ReevitCheckout({
916
918
  "aria-modal": "true",
917
919
  children: [
918
920
  /* @__PURE__ */ jsxs("div", { className: "reevit-modal__header", children: [
919
- /* @__PURE__ */ jsx("div", { className: "reevit-modal__branding", children: /* @__PURE__ */ jsx("span", { className: "reevit-modal__logo", children: "Reevit" }) }),
921
+ /* @__PURE__ */ jsx("div", { className: "reevit-modal__branding", children: /* @__PURE__ */ jsx(
922
+ "img",
923
+ {
924
+ src: "https://i.imgur.com/bzUR5Lm.png",
925
+ alt: "Reevit",
926
+ className: "reevit-modal__logo"
927
+ }
928
+ ) }),
920
929
  /* @__PURE__ */ jsx(
921
930
  "button",
922
931
  {