Scan your whole stack
From OX Research Newsroom
Are you using @reevit/vue?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.14.2
@reevit/vue was last scanned on 25 Nov 2026 at version 0.14.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.14.2 LATEST | 25 Nov 2026 | No rules fired |
| 0.14.1 | 25 Nov 2026 | No rules fired |
| 0.11.0 | 24 Sep 2026 | No rules fired |
Findings for v0.14.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.14.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Vue 3 SDK for integrating Reevit unified payments into your application.
npm install @reevit/vue
@reevit/core is a regular dependencies entry of this package — npm installs
it for you. Do not add it to your own package.json unless you import it
directly.
@reevit/vue |
Requires @reevit/core |
|---|---|
| 0.11.x | ^0.9.1 (>=0.9.1 <0.10.0) |
| 0.10.x | ^0.9.1 (>=0.9.1 <0.10.0) |
| 0.9.x | ^0.9.0 (>=0.9.0 <0.10.0) |
On a 0.x package a caret range pins the minor, not the major:
^0.9.0 resolves to >=0.9.0 <0.10.0. A future @reevit/core 0.10.0 is
therefore not picked up automatically — the React, Vue and Svelte manifests
have to be bumped together in the same release.
The simplest way to integrate Reevit is using the ReevitCheckout component.
<script setup lang="ts">
import { ReevitCheckout } from '@reevit/vue';
import '@reevit/vue/styles.css';
const handleSuccess = (result: any) => {
console.log('Payment success!', result);
};
const handleError = (error: any) => {
console.error('Payment failed:', error);
};
</script>
<template>
<ReevitCheckout
publicKey="pfk_test_xxx"
:amount="10000"
currency="GHS"
email="customer@example.com"
idempotencyKey="order_12345"
@success="handleSuccess"
@error="handleError"
>
<template #default="{ open, isLoading }">
<button
class="my-pay-button"
:disabled="isLoading"
@click="open"
>
{{ isLoading ? 'Loading...' : 'Pay GHS 100.00' }}
</button>
</template>
</ReevitCheckout>
</template>
For production checkouts, create the payment session on your backend with a
server SDK, then pass the returned session_secret to Vue. The browser never
creates the payment intent directly, so amount and currency are not needed —
they come from the session.
<ReevitCheckout
:sessionSecret="checkoutSession.session_secret"
:paymentMethods="['card', 'mobile_money']"
@success="handleSuccess"
@error="handleError"
/>
Keep the session secret in the browser, but never expose your private Reevit API key.
Provide an idempotencyKey tied to your order/cart to avoid duplicate intent creation and enable safe retries.
<ReevitCheckout
publicKey="pfk_test_xxx"
:amount="10000"
currency="GHS"
idempotencyKey="order_12345"
/>
You can control the open state yourself.
<script setup>
const open = ref(false);
</script>
<template>
<ReevitCheckout
publicKey="pfk_test_your_key"
:amount="10000"
currency="GHS"
:isOpen="open"
@close="open = false"
/>
</template>
By default, the checkout shows a success screen for 5 seconds before calling @success and closing. Override with successDelayMs (set to 0 for immediate close).
<ReevitCheckout :successDelayMs="0" />
<ReevitCheckout
:theme="{
primaryColor: '#00D1B2',
backgroundColor: '#FFFFFF',
darkMode: false,
borderRadius: '4px'
}"
publicKey="pfk_test_xxx"
:amount="5000"
currency="GHS"
>
<button>Pay Now</button>
</ReevitCheckout>
For full control over the payment flow, use the useReevit composable.
<script setup lang="ts">
import { useReevit } from '@reevit/vue';
const {
status,
initialize,
selectMethod,
isLoading
} = useReevit({
config: {
publicKey: 'pfk_test_xxx',
amount: 5000,
currency: 'GHS',
},
onSuccess: (res) => console.log('Payment done!', res),
});
</script>
<template>
<button @click="initialize">Start Payment</button>
<div v-if="status === 'ready'">
<button @click="selectMethod('card')">Card</button>
<button @click="selectMethod('mobile_money')">Mobile Money</button>
</div>
</template>
| Prop | Type | Description |
|---|---|---|
publicKey |
string |
Your project's public key (required for API-created intents; optional when using sessionSecret or paymentLinkCode) |
sessionSecret |
string |
Secret of a server-created checkout session. Preferred for production; supplies the amount and currency |
amount |
number |
Amount in the smallest unit (e.g., 500 for 5.00). Required unless sessionSecret, paymentLinkCode or initialPaymentIntent is given |
currency |
string |
3-letter ISO currency code (GHS, NGN, USD, etc.). Required unless sessionSecret, paymentLinkCode or initialPaymentIntent is given |
idempotencyKey |
string |
Order-scoped key that makes intent creation safe to retry |
email |
string |
Customer's email address |
phone |
string |
Customer's phone number (recommended for Mobile Money) |
customerName |
string |
Customer name (used in payment links and some PSPs) |
reference |
string |
Your own unique transaction reference |
metadata |
object |
Key-value pairs to store with the transaction |
customFields |
object |
Custom fields for payment links |
paymentLinkCode |
string |
Hosted payment link code (uses the public link checkout flow) |
paymentMethods |
PaymentMethod[] |
Enabled methods: card, mobile_money, bank_transfer, apple_pay, google_pay (PSP/country dependent) |
initialPaymentIntent |
PaymentIntent |
Use an existing intent instead of creating a new one |
isOpen |
boolean |
Controlled open state |
theme |
ReevitTheme |
Customization options for the widget |
apiBaseUrl |
string |
Override API base URL (self-hosted/testing) |
successDelayMs |
number |
Delay before calling @success and closing (default 5000) |
returnUrl |
string |
Flutterwave only. Where Flutterwave sends the payer when its window is done. When set, Flutterwave navigates there instead of calling @success; confirm the payment on that page |
| Field | Description |
|---|---|
primaryColor |
Primary text/brand color |
primaryForegroundColor |
Text color on primary brand surfaces |
backgroundColor |
Background color for the modal |
borderColor |
Border and divider color |
borderRadius |
Border radius for inputs and buttons |
darkMode |
Force dark mode when true |
logoUrl |
Logo URL shown in the header |
companyName |
Brand name shown in the header |
selectedBackgroundColor |
Background color for selected provider/methods |
selectedTextColor |
Primary text color for selected items |
selectedDescriptionColor |
Description/muted text color for selected items |
selectedBorderColor |
Border color for selected items |
pspSelectorBgColor |
PSP selector background color (where supported) |
pspSelectorTextColor |
PSP selector text color (where supported) |
pspSelectorBorderColor |
PSP selector border color (where supported) |
pspSelectorUseBorder |
Use border-only PSP selector styling |
| Event | Payload | Description |
|---|---|---|
@success |
PaymentResult |
Called on successful payment |
@error |
PaymentError |
Called on error |
@close |
void |
Called when widget is closed |
For advanced use cases, you can use PSP bridge functions directly to open payment modals.
import { createStripeInstance, confirmStripePayment } from '@reevit/vue';
// Create Stripe instance
const stripe = await createStripeInstance('pk_test_xxx');
const elements = stripe.elements({ clientSecret: 'pi_xxx_secret_xxx' });
const paymentElement = elements.create('payment');
paymentElement.mount('#payment-element');
// Later, confirm the payment
await confirmStripePayment({
publishableKey: 'pk_test_xxx',
clientSecret: 'pi_xxx_secret_xxx',
elements,
onSuccess: (result) => console.log('Paid:', result.paymentIntentId),
onError: (err) => console.error(err.message),
});
import { openMonnifyModal } from '@reevit/vue';
await openMonnifyModal({
apiKey: 'MK_TEST_xxx',
contractCode: '1234567890',
amount: 5000,
currency: 'NGN',
reference: 'TXN_12345',
customerName: 'John Doe',
customerEmail: 'john@example.com',
onSuccess: (result) => console.log('Paid:', result.transactionReference),
onClose: () => console.log('Closed'),
});
M-Pesa uses STK Push: the customer approves a prompt on their phone. ReevitCheckout asks for the number, creates the payment with it (that is what sends the prompt), then waits. It checks the payment every 4 seconds and finishes only when the payment has succeeded or has failed, or after 2 minutes with no approval.
If you build your own screen, render MPesaBridge for a payment that already exists. It does not send the prompt, it only waits for the result.
<MPesaBridge
:payment-id="intent.id"
:client-secret="intent.clientSecret"
phone-number="254712345678"
can-retry
@success="(result) => console.log('Paid', result.pspReference)"
@error="(err) => console.error(err.code, err.message)"
@retry="createAnotherPayment"
/>
Popup providers can report success before Reevit's own confirmation lands. The checkout then shows "Confirming your payment" (no Try again, closing is allowed and does not cancel the payment) and keeps checking for up to 2 minutes. success is emitted only on succeeded. If it is still pending after 2 minutes the checkout shows "We're still confirming this payment" with Done, emits neither success nor error, and stateChange reports confirming then pending.
| Provider | Countries | Payment Methods |
|---|---|---|
| Paystack | NG, GH, ZA, KE | Card, Mobile Money, Bank Transfer |
| Flutterwave | NG, GH, KE, ZA + | Card, Mobile Money, Bank Transfer |
| Hubtel | GH | Mobile Money |
| Stripe | Global (50+) | Card, Apple Pay, Google Pay |
| Monnify | NG | Card, Bank Transfer, USSD |
| M-Pesa | KE, TZ | Mobile Money (STK Push) |
@reevit/core dependency to v0.9.0MIT © Reevit
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.