Every public export of @pesepay/react, generated from its type declarations. @pesepay/react on npm.
| 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; handle onFinished. 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. |
useElements | The elements group <Elements> created, or null while Pesepay loads and during server rendering. Read an element off it to pay with: elements.getElement("card"). |
usePesepay | The Pesepay instance <Elements> was given, or null while it loads and during server rendering. |