@maib/merchants
v0.1.3
Published
Umbrella SDK for all maib merchant APIs — checkout, e-commerce, RTP, and MIA QR payments
Maintainers
Readme
@maib/merchants
Umbrella SDK for all maib merchant APIs. Installs and re-exports everything from the individual packages in a single import.
Install
npm install @maib/merchantsUsage
import {
CheckoutClient,
EcommerceClient,
RtpClient,
MiaClient,
Currency,
MaibError,
} from "@maib/merchants";Everything from the individual packages is available:
| Package | What you get |
| --- | --- |
| @maib/checkout | CheckoutClient, CheckoutStatus, PaymentStatus, RefundStatus |
| @maib/ecommerce | EcommerceClient, Currency, TransactionStatus, ThreeDsStatus |
| @maib/rtp | RtpClient, RtpStatus |
| @maib/mia | MiaClient, QrType, AmountType, QrStatus, MiaPaymentStatus |
| @maib/core | BaseClient, MaibError, MaibNetworkError, Language, signature helpers |
Where type names collide between packages, they are aliased with a prefix:
import type {
CheckoutRefundRequest, // from @maib/checkout
EcommerceRefundRequest, // from @maib/ecommerce
CheckoutListPaymentsParams,
MiaListPaymentsParams,
} from "@maib/merchants";If you only need one API, install the individual package instead for a smaller dependency footprint.
