A single orchestration layer designed for both human and machine-to-machine (M2M) commerce. Flopay empowers AI agents to autonomously discover products, negotiate, and execute payments across any gateway—while giving developers the clean abstractions they need to build the future.
import { configureFlopay } from '@flopay/shared';
import { FloPayCheckout } from '@flopay/react';
configureFlopay({environment: 'staging'});
export default function Checkout() {
return (
<FloPayCheckout
createSession={checkoutParams}
layout="buttons"
onComplete={() => {
window.location.href = '/success';
}}
onError={(error) => {
console.error('Payment failed:', error.message);
}}
/>
);
}