BaseChangeEvent | Sent when the customer changes the input. A field nobody has typed in is empty, not invalid, so you need not show “required” before the customer starts. error is the one message to show. |
BaseElementOptions | Options shared by every element. Events are not options: listen with element.on("change", handler). |
CardChangeEvent | The card element’s change event. |
CardCheckout | What opens the provider’s hosted card form. |
CardElement | Card number, expiry and CVC fields for Visa, in a frame on a Pesepay origin. Pay with confirmCardPayment(). |
CheckoutChangeEvent | The checkout element’s change event: the payment element’s, sent as "checkout". |
CheckoutElement | The payment element with its own Pay button. It runs every step itself: the O’mari code, the wait for an EcoCash approval or a scanned code, and the result when the customer comes back from 3-D Secure or the card form. Listen for finished. It is not passed to confirmPayment(). |
CheckoutFinishedEvent | Sent once, when the checkout element’s payment has ended. Confirm the result on your server before you fulfil the order. |
ConfirmCardPaymentData | A card that needs 3-D Secure always navigates the browser to the customer’s bank. Your page never holds the card, so it cannot do that step itself. |
ConfirmHostedCardPaymentData | The hosted card form holds the card, the checkout already fixes the method, and the provider takes no customer details or metadata, so this takes only the element. |
ConfirmMobilePaymentData | What confirmMobilePayment() takes. |
ConfirmPaymentElementData | The payment element pays with whichever method the customer chose, so it takes no options that only some methods can use. |
ConfirmPaymentOptionsMap | The options each element’s payment can use, by element type. |
ConfirmScanPaymentData | What confirmScanPayment() takes. |
ContactChangeEvent | The mobile element’s change event. |
CustomerDetails | The customer paying, sent with the payment. |
ElementEscapeEvent | Sent when the customer presses Escape inside the element. |
ElementFocusEvent | Sent when a field in the element gains focus. |
ElementLoadErrorEvent | Sent when the element could not load. Show error, or send the customer to fallbackUrl. |
ElementMap | The element each ElementType creates. |
ElementOptionsMap | The options each element type takes, by ElementType. |
ElementReadyEvent | Sent once the element has rendered and can take input. |
Elements | A group of elements that share a theme and fonts. |
ElementsOptions | Options applied to every element in a group. |
ElementStatusEvent | Sent by the mobile and payment elements as a mobile money payment progresses. |
FontSource | A web font for the card fields. |
HandleRedirectOptions | Options for handleRedirectResult(). |
HostedCardElement | The card provider’s own form, for Mastercard and Zimswitch. It renders in your page; the card number and CVV stay in the provider’s iframes. One per page: creating a second throws. |
HostedCardElementOptions | Options for elements.create("hostedCard"). |
LoadOptions | Options for loadPesepay(): the config, plus where and how long to load the runtime. |
MobileElement | A phone number field for EcoCash or O’mari. Pay with confirmMobilePayment(). |
MobileElementOptions | Options for elements.create("mobile"). |
PayableAmount | What the customer pays with the selected method. |
PaymentChangeEvent | empty until the customer picks a method. complete once the method is priced and its fields are filled in. |
PaymentElement | Every method the transaction can be paid with, grouped as mobile money, card and scan to pay. The chosen method shows its fields and the total with its fee. Pay with confirmPayment(). It renders in your page; card numbers stay in Pesepay’s or the card provider’s frames. |
PaymentElementOptions | Options for elements.create("payment"). |
PaymentMethod | A payment method Pesepay offers for a transaction’s currency. |
Pesepay | What loadPesepay() resolves to. |
PesepayConfig | Options for loadPesepay(). |
PesepayElementBase | What every element can do: mount, update, focus, clear and send events. create() does not mount, so you can set an element up before its container exists. Each element’s page lists the events it sends. |
PesepayError | The shape of result.error. An interface, not a class — the class ships in the CDN runtime. Narrow on code, not instanceof. |
PesepayTheme | How elements look. Set it in loadPesepay(), in elements() or on one element: each layer overrides the one before. |
RedirectingPaymentData | Options for a confirm that may need the customer to leave the page. |
ScanCode | What the customer pays with in the provider’s app. |
ScanElement | Shows the QR code and short code the customer pays with in the InnBucks or PayGo app. It has no input: it is empty until confirmScanPayment() returns the code. |
ScanElementOptions | Options for elements.create("scan"). |
Transaction | A Pesepay transaction, as the SDK reads it. |
TransactionAmount | A transaction’s amount. |
WaitForTransactionOptions | Options for waitForTransaction(). |