Sarraf API
    Preparing search index...

    Class FawryProvider

    Implements

    • PaymentProvider<"fawry">
    Index
    • Parameters

      • options: {
            baseUrl?: string;
            confirmWithStatusQuery?: boolean;
            environment?: "staging" | "production";
            language?: "en-gb" | "ar-eg";
            merchantCode: string;
            secureKey: string;
        }
        • OptionalbaseUrl?: string
        • OptionalconfirmWithStatusQuery?: boolean

          After a valid notification signature, re-query the payment status before trusting it. Default true until the V2 signature recipe is verified against real notifications.

        • Optionalenvironment?: "staging" | "production"
        • Optionallanguage?: "en-gb" | "ar-eg"

          Language for APIs that take one.

        • merchantCode: string
        • secureKey: string

          Secret appended to every signature (plain SHA-256, not HMAC).

      Returns FawryProvider

    capabilities: Capabilities = ...
    config: FawryConfig
    id: "fawry" = ...
    • ⚠️ Beta. Cancel an unpaid reference code.

      Parameters

      • lookup: PaymentLookup
      • ctx: Ctx

      Returns Promise<Payment>

    • Parameters

      • input: CreateCheckoutInput<"fawry">
      • ctx: Ctx

      Returns Promise<Checkout>

    • Status v2 looks up by merchant reference.

      Parameters

      • lookup: PaymentLookup
      • ctx: Ctx

      Returns Promise<Payment>

    • Parameters

      • req: RawWebhookRequest

      Returns Promise<WebhookInspection>

    • Parameters

      • verified: VerifiedWebhook
      • ctx: Ctx

      Returns Promise<SarrafEvent>

    • ⚠️ Beta. providerPaymentId is the Fawry reference number.

      Parameters

      • input: RefundInput
      • ctx: Ctx

      Returns Promise<Refund>

    • Throws WEBHOOK_SIGNATURE_INVALID when the signature does not match.

      Parameters

      • req: RawWebhookRequest

      Returns Promise<VerifiedWebhook>