Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

518 B
Raw Blame
  export type RazorpayCredentials = {
      keyID: string;
      keySecret: string;
  };

  export const generateRazorpayAuthHeader = (credentials: RazorpayCredentials): Promise<{ Authorization: string }> => {
    const { keyID, keySecret } = credentials;
    const encodedCredentials = Buffer.from(`${keyID}:${keySecret}`).toString('base64');
    return Promise.resolve({
      Authorization: `Basic ${encodedCredentials}`,
    });
  };


  export const razorpayURL = {
    apiURL: 'https://api.razorpay.com/v1/'
  };