@tax1driver/ts-payu
    Preparing search index...

    Class PayU

    Index

    Constructors

    • Creates an instance of PayU.

      Parameters

      • clientId: number

        client id for merchant

      • clientSecret: string

        client secret from panel

      • merchantPosId: number

        pos id from panel

      • secondKey: string

        second key from panel

      • Optionaloptions: PayUOptions = ...

        additional options

      Returns PayU

      PayU

    Methods

    • Delete a saved payment token

      Parameters

      • token: string

        Token value to delete

      Returns Promise<void>

      PayU

    • Get access token

      Returns Promise<string>

      PayU

    • Get specific refund details

      Parameters

      • orderId: string

        PayU order id

      • refundId: string

        Refund id

      Returns Promise<RefundResponse>

      PayU

    • Retrieve shop data including balance

      Parameters

      • shopId: string

        Shop identifier

      Returns Promise<ShopResponse>

      PayU

    • Validates the IP address with PayU servers

      Parameters

      • ip: string

        ip address

      Returns boolean

      PayU

    • Refunds a PayU order

      Parameters

      • orderId: string

        payu order id

      • description: string

        description for refund

      Returns Promise<RefundResponse>

      PayU

    • Verify notification result with signature

      Parameters

      • payuHeader: string

        header string from OpenPayu-Signature

      • jsonNotification: string

        notification body as a string

      Returns boolean

      PayU