Skip to content

@pesepay/angular

Every public export of @pesepay/angular, generated from its type declarations. @pesepay/angular on npm.

NameDescription
injectElementsThe elements group the enclosing <pesepay-elements> created, as a signal. null while Pesepay loads and during server rendering. Read an element off it to pay with: elements()?.getElement("card"). Call it in an injection context, such as a constructor or a field initialiser.
injectPesepayThe Pesepay instance the enclosing <pesepay-elements> was given, as a signal. null while it loads and during server rendering. Call it in an injection context, such as a constructor or a field initialiser.
NameDescription
CardElementVisa card fields in a Pesepay frame. Pay with confirmPayment() and elements()?.getElement("card").
CheckoutElementThe payment element with its own Pay button. It runs every step of the payment; listen for (finished). A new referenceNumber replaces the element.
ElementsCreates one elements group for the element components inside it, and destroys it when it is destroyed.
HostedCardElementThe card provider’s form for Mastercard and Zimswitch. One per page.
MobileElementEcoCash or O’mari phone number, and O’mari’s SMS code.
PaymentElementEvery method the transaction can be paid with. A new referenceNumber replaces the element.
PesepayElementDirectiveWhat every element component shares: it creates its element in the enclosing group once Pesepay has loaded, mounts it into its own host element, re-emits its events, passes changed options to update(), and destroys it with the component.
ScanElementThe InnBucks or PayGo code the customer scans.