Every public export of @pesepay/vue, generated from its type declarations. @pesepay/vue on npm.
| Name | Description |
|---|
useElements | The elements group <Elements> created. null while Pesepay loads and during server rendering. Read an element off it to pay with: elements.value?.getElement("card"). |
usePesepay | The Pesepay instance <Elements> was given. null while it loads and during server rendering. |
| Name | Description |
|---|
ElementsProps | Props for <Elements>. |
ElementsSlotProps | What the default slot receives, so the component that renders <Elements> can pay without a child component. Both are null until Pesepay loads. |
| Name | Description |
|---|
ElementComponent | An element component. |
ElementEmits | The events an element component emits. loadError is written @load-error in a template. |
ElementFinishedEmits | finished, on the checkout element: its payment has ended. |
ElementProps | Props of an element component. options is required where the element needs one: cardCheckout for hostedCard, referenceNumber for payment and checkout. id and class pass through to the container the element mounts into. |
ElementsSlots | The slots <Elements> takes. |
ElementStatusEmits | status, on the elements that report a sent payment’s progress: mobile and payment. |
| Name | Description |
|---|
CardElement | Visa card fields in a Pesepay frame. Pay with confirmPayment() and elements.getElement("card"). |
CheckoutElement | The payment element with its own Pay button. It runs every step of the payment; listen for @finished. A new referenceNumber replaces the element. |
Elements | Creates one elements group for the components inside it, and destroys it when it unmounts. |
HostedCardElement | The card provider’s form for Mastercard and Zimswitch. One per page. |
MobileElement | EcoCash or O’mari phone number, and O’mari’s SMS code. |
PaymentElement | Every method the transaction can be paid with. A new referenceNumber replaces the element. |
ScanElement | The InnBucks or PayGo code the customer scans. |