Function buildVisaPaymentRequired

  • Build a Visa-flavored X402PaymentRequired object.

    This is the Visa counterpart of buildPaymentRequired (which builds NVM-flavored ones).

    Parameters

    • options: {
          amount: string;
          asset?: string;
          description?: string;
          endpoint?: string;
          maxTimeoutSeconds?: number;
          merchantCountryCode?: string;
          merchantName?: string;
          merchantUrl?: string;
          payTo: string;
      }
      • amount: string
      • Optional asset?: string
      • Optional description?: string
      • Optional endpoint?: string
      • Optional maxTimeoutSeconds?: number
      • Optional merchantCountryCode?: string
      • Optional merchantName?: string
      • Optional merchantUrl?: string
      • payTo: string

    Returns VisaPaymentRequired