@reevit/vue 0.5.9 → 0.7.0

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
@@ -5,7 +5,7 @@ Vue 3 SDK for integrating Reevit unified payments into your application.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install @reevit/vue@0.5.0 @reevit/core@0.5.0
8
+ npm install @reevit/vue @reevit/core
9
9
  ```
10
10
 
11
11
  ## Quick Start
@@ -32,6 +32,7 @@ const handleError = (error: any) => {
32
32
  :amount="10000"
33
33
  currency="GHS"
34
34
  email="customer@example.com"
35
+ idempotencyKey="order_12345"
35
36
  @success="handleSuccess"
36
37
  @error="handleError"
37
38
  >
@@ -48,6 +49,19 @@ const handleError = (error: any) => {
48
49
  </template>
49
50
  ```
50
51
 
52
+ ## Idempotency
53
+
54
+ Provide an `idempotencyKey` tied to your order/cart to avoid duplicate intent creation and enable safe retries.
55
+
56
+ ```vue
57
+ <ReevitCheckout
58
+ publicKey="pk_test_xxx"
59
+ :amount="10000"
60
+ currency="GHS"
61
+ idempotencyKey="order_12345"
62
+ />
63
+ ```
64
+
51
65
  ## Controlled Modal
52
66
 
53
67
  You can control the open state yourself.
@@ -248,6 +262,13 @@ const result = await initiateMPesaSTKPush(
248
262
  | Monnify | NG | Card, Bank Transfer, USSD |
249
263
  | M-Pesa | KE, TZ | Mobile Money (STK Push) |
250
264
 
265
+ ## Release Notes
266
+
267
+ ### v0.7.0
268
+
269
+ - Updated `@reevit/core` dependency to v0.7.0
270
+ - Version alignment across all Reevit SDKs
271
+
251
272
  ## License
252
273
 
253
274
  MIT © Reevit