@toluade/squad-pay-react
Version:
<p align="center"> <img title="Squad" height="200" src="https://squadco.com/assets/squadbyhabari.svg" width="50%"/> </p>
18 lines (17 loc) • 751 B
TypeScript
import React from "react";
import { SquadOtherParams } from "./useSquadPay";
type SquadContextType = {
squadPay: ({ amount, email, currency_code, pass_charge, params, onLoad, onClose, onSuccess, }: {
amount: number;
email: string;
} & SquadOtherParams) => void;
};
export declare const SquadContext: React.Context<SquadContextType>;
declare const useSquadContext: () => SquadContextType;
type SquadProviderProps = SquadOtherParams & {
publicKey: string;
children: React.ReactNode;
};
declare const SquadProvider: ({ publicKey, children, currency_code, pass_charge, redirect_link, params, onLoad, onClose, onSuccess, }: SquadProviderProps) => React.JSX.Element;
export { useSquadContext };
export default SquadProvider;