Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • HipayClient

Index

Constructors

constructor

  • Create a new HipayClient.

    Get your API credentials (login/password) from the dashboard Toolbox.

    Important: If you wan't to use the stage environment (for testing) use the sandbox site: test-professional.hipay.com! Test accounts are validated automatically, just enter random (but valid) information at each step (to validate bank information use Bank Name: "HSBC" and IBAN: "FR7630056009271234567890182").

    Parameters

    Returns HipayClient

Methods

cancelOrder

captureOrder

  • Capture an order.

    Instruct the payment gateway to capture a previously-authorized transaction, i.e. transfer the funds from the customer's bank account to the merchant's bank account. This transaction is always preceded by an authorization.

    HiPay documentation

    Parameters

    Returns Promise<HipayResponse<CaptureOrderResult>>

    • resolved with an HipayResponse when the request complete (with {@link HipayResponse.error an error} or {@link HipayResponse.result the result})
    • rejected with an HipayException when an exception occurs (network error, malformed response, ...)

createOrder

getEndpoint

  • getEndpoint(): string
  • Returns client API endpoint

    Returns string

getEnvironment

  • getEnvironment(): string
  • Returns client environment

    Returns string

parseNotification

  • Parse Notification (callback) inputs.

    After a successful purchase, HiPay calls twice your Notification (callback) URL in background with comprehensive information about the payment (the first time for the authorization notification and the second one for the capture notification). Information are passed through an xml field in the body of an http POST request (of type application/x-www-form-urlencoded). This method parses the contents of this xml field and validates the checksum of the request.

    Checksum or Signature verification: TODO (wait for HiPay support information about documentations errors)

    HiPay documentation

    Parameters

    Returns Promise<HipayNotificationResponse>

    • resolved with an HipayNotificationResponse when no error is encountered
    • rejected with an {@link Error} when any error occurs (invalid format, bad signature, ...)

refundOrder

toString

  • toString(): string
  • Returns string

Generated using TypeDoc