@reevit/react 0.7.0 → 0.8.1

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/README.md CHANGED
@@ -19,7 +19,7 @@ import '@reevit/react/styles.css';
19
19
  function App() {
20
20
  return (
21
21
  <ReevitCheckout
22
- publicKey="pk_test_your_key"
22
+ publicKey="pfk_test_your_key"
23
23
  amount={10000} // Amount in smallest unit (e.g., pesewas for GHS)
24
24
  currency="GHS"
25
25
  email="customer@example.com"
@@ -44,7 +44,7 @@ Provide an `idempotencyKey` tied to your order/cart to avoid duplicate intent cr
44
44
 
45
45
  ```tsx
46
46
  <ReevitCheckout
47
- publicKey="pk_test_your_key"
47
+ publicKey="pfk_test_your_key"
48
48
  amount={10000}
49
49
  currency="GHS"
50
50
  idempotencyKey="order_12345"
@@ -73,7 +73,7 @@ You can control the open state yourself.
73
73
  const [open, setOpen] = useState(false);
74
74
 
75
75
  <ReevitCheckout
76
- publicKey="pk_test_your_key"
76
+ publicKey="pfk_test_your_key"
77
77
  amount={10000}
78
78
  currency="GHS"
79
79
  isOpen={open}
@@ -131,7 +131,7 @@ function CustomCheckout() {
131
131
  isLoading
132
132
  } = useReevit({
133
133
  config: {
134
- publicKey: 'pk_test_xxx',
134
+ publicKey: 'pfk_test_xxx',
135
135
  amount: 5000,
136
136
  currency: 'GHS',
137
137
  },
package/dist/index.d.mts CHANGED
@@ -183,6 +183,8 @@ interface PaymentIntent {
183
183
  recommendedPsp: 'paystack' | 'hubtel' | 'flutterwave' | 'monnify' | 'mpesa' | 'stripe';
184
184
  /** Available payment methods for this intent */
185
185
  availableMethods: PaymentMethod[];
186
+ /** Provider transaction reference returned by Reevit */
187
+ providerRefId?: string;
186
188
  /** Reference provided or generated */
187
189
  reference?: string;
188
190
  /** Organization ID (from Reevit backend, required for webhook routing) */
@@ -361,6 +363,7 @@ declare function openHubtelPopup(config: {
361
363
  amount: number;
362
364
  clientReference?: string;
363
365
  callbackUrl?: string;
366
+ apiBaseUrl?: string;
364
367
  customerPhoneNumber?: string;
365
368
  basicAuth?: string;
366
369
  preferredMethod?: PaymentMethod;
@@ -623,6 +626,7 @@ interface PaymentIntentResponse {
623
626
  org_id?: string;
624
627
  connection_id: string;
625
628
  provider: string;
629
+ provider_ref_id?: string;
626
630
  status: string;
627
631
  client_secret: string;
628
632
  psp_public_key?: string;
package/dist/index.d.ts CHANGED
@@ -183,6 +183,8 @@ interface PaymentIntent {
183
183
  recommendedPsp: 'paystack' | 'hubtel' | 'flutterwave' | 'monnify' | 'mpesa' | 'stripe';
184
184
  /** Available payment methods for this intent */
185
185
  availableMethods: PaymentMethod[];
186
+ /** Provider transaction reference returned by Reevit */
187
+ providerRefId?: string;
186
188
  /** Reference provided or generated */
187
189
  reference?: string;
188
190
  /** Organization ID (from Reevit backend, required for webhook routing) */
@@ -361,6 +363,7 @@ declare function openHubtelPopup(config: {
361
363
  amount: number;
362
364
  clientReference?: string;
363
365
  callbackUrl?: string;
366
+ apiBaseUrl?: string;
364
367
  customerPhoneNumber?: string;
365
368
  basicAuth?: string;
366
369
  preferredMethod?: PaymentMethod;
@@ -623,6 +626,7 @@ interface PaymentIntentResponse {
623
626
  org_id?: string;
624
627
  connection_id: string;
625
628
  provider: string;
629
+ provider_ref_id?: string;
626
630
  status: string;
627
631
  client_secret: string;
628
632
  psp_public_key?: string;