Tabby Payment Gateway
Last updated
Was this helpful?
Was this helpful?
src/app/[commerce]/[locale]/[currency]/payment-gateway/tabby/page.tsximport { TabbyPaymentGateway } from '@akinon/pz-tabby-extension';
const TabbyGateway = async ({
searchParams: { sessionId },
params: { currency, locale }
}: {
searchParams: Record<string, string>;
params: { currency: string; locale: string };
}) => {
return (
<TabbyPaymentGateway
sessionId={sessionId}
currency={currency}
locale={locale}
extensionUrl={process.env.TABBY_EXTENSION_URL}
hashKey={process.env.TABBY_HASH_KEY}
/>
);
};
export default TabbyGateway;{
salt: string,
hash: string,
shipping_address: {
city: string,
address: string,
zip: string
},
order_items: Array<{
unit_price: number,
title: string,
quantity: number,
category: string
}>,
buyer_history: {
registered_since: string,
loyalty_level: number,
wishlist_count: number,
is_email_verified: boolean,
is_social_networks_connected: boolean,
is_phone_number_verified: boolean
},
order_history: Array<{
purchased_at: string,
amount: number,
payment_method: string,
status: string,
buyer: {
phone: string,
email: string,
name: string
},
shipping_address: {
city: string,
address: string,
zip: string
},
order_items: object
}>
}