TkxCheckout
import { TkxCheckout } from 'tekivex-ui';
<TkxCheckout cart={items} onComplete={(order) => console.log('paid', order)} paymentProviders={['stripe', 'razorpay']}/>A pre-assembled three-step checkout. Step 1 collects shipping address, step 2 takes payment details (delegated to your provider’s SDK), step 3 shows a review-and-confirm screen with line totals + tax.
| Prop | Type | Notes |
|---|---|---|
cart | CartItem[] | line-item array |
onComplete | (order) => void | fires after successful payment |
paymentProviders | ('stripe' | 'razorpay' | 'paypal')[] | order = display order |
currency | string | ISO-4217, default 'USD' |
taxRate | number | 0–1, default 0 |
country | string | ISO-3166, default 'IN' |
What it composes
Section titled “What it composes”TkxAddressInputfor step 1TkxPaymentButtonfor step 2TkxStepperfor step navigationTkxResultfor the success screen
Accessibility
Section titled “Accessibility”- Steps are a
<nav aria-label="Checkout progress">landmark - Going back is allowed; previously-entered values are preserved in form state
- The “Pay now” button is
disableduntil validation passes — never visually-only
Testing
Section titled “Testing”See tests/TkxCheckout.test.tsx — 7 tests covering step transitions and
provider switching.