Get Vendors

Get all vendors

This function call retrieves a list of all vendors associated with the connected project. It does not take any parameters.

Example usage

import { usePartpay } from '@partpay/sdk';

const YourComponent = () => {
const { vendor } = usePartpay();

const fetchVendors = async () => {
const vendors = await vendor.getVendors();
console.log(vendors);
};

useEffect(() => {
fetchVendors();
}, []);

return (
<div>
Your build
</div>
);
}

export default YourComponent;