@reevit/react 0.3.6 → 0.3.7

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.d.mts CHANGED
@@ -115,6 +115,15 @@ interface PaymentIntent {
115
115
  clientSecret: string;
116
116
  /** PSP's public key for client-side SDK initialization */
117
117
  pspPublicKey?: string;
118
+ /** PSP-specific credentials for client-side checkout (e.g., Hubtel's merchantAccount, basicAuth) */
119
+ pspCredentials?: {
120
+ /** Hubtel merchant account number */
121
+ merchantAccount?: string | number;
122
+ /** Hubtel basic auth header value */
123
+ basicAuth?: string;
124
+ /** Any other PSP-specific credential fields */
125
+ [key: string]: unknown;
126
+ };
118
127
  /** Amount in smallest currency unit */
119
128
  amount: number;
120
129
  /** Currency code */
package/dist/index.d.ts CHANGED
@@ -115,6 +115,15 @@ interface PaymentIntent {
115
115
  clientSecret: string;
116
116
  /** PSP's public key for client-side SDK initialization */
117
117
  pspPublicKey?: string;
118
+ /** PSP-specific credentials for client-side checkout (e.g., Hubtel's merchantAccount, basicAuth) */
119
+ pspCredentials?: {
120
+ /** Hubtel merchant account number */
121
+ merchantAccount?: string | number;
122
+ /** Hubtel basic auth header value */
123
+ basicAuth?: string;
124
+ /** Any other PSP-specific credential fields */
125
+ [key: string]: unknown;
126
+ };
118
127
  /** Amount in smallest currency unit */
119
128
  amount: number;
120
129
  /** Currency code */
package/dist/index.js CHANGED
@@ -1721,13 +1721,14 @@ function ReevitCheckout({
1721
1721
  return /* @__PURE__ */ jsxRuntime.jsx(
1722
1722
  HubtelBridge,
1723
1723
  {
1724
- merchantAccount: pspKey,
1724
+ merchantAccount: paymentIntent?.pspCredentials?.merchantAccount || pspKey,
1725
1725
  amount: paymentIntent?.amount ?? amount,
1726
1726
  currency: paymentIntent?.currency ?? currency,
1727
1727
  reference: paymentIntent?.reference || reference,
1728
1728
  email,
1729
1729
  phone: momoData?.phone || phone,
1730
1730
  description: `Payment ${paymentIntent?.reference || reference || ""}`,
1731
+ basicAuth: paymentIntent?.pspCredentials?.basicAuth,
1731
1732
  onSuccess: handlePSPSuccess,
1732
1733
  onError: (err) => handlePSPError(err),
1733
1734
  onClose: handlePSPClose