For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Build beautiful, accessible payment UIs with Mercoa’s React component library. Our components are designed to work seamlessly with your existing React applications and provide a consistent, professional experience for your users.
Basic Usage
1
import '@mercoa/react/dist/style.css'
2
import { MercoaSession } from '@mercoa/react'
3
export default function Index() {
4
const token = 'YOUR_ENTITY_TOKEN' // See https://docs.mercoa.com/api-reference/entity/user/get-token
5
return <MercoaSession token={token} /> // The Mercoa Session Context without any children will render the full entity portal
6
}
Using Components
1
import '@mercoa/react/dist/style.css'
2
import { MercoaSession, PayableDetails } from '@mercoa/react'
3
export default function Index() {
4
const token = 'YOUR_ENTITY_TOKEN' // See https://docs.mercoa.com/api-reference/entity/user/get-token