Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Implementing Hora'at Keva

Hyp Enterprise supports standing orders (Hora'at Keva, הוראת קבע), which are commonly used in Israel for recurring billing with credit card companies. Unlike standard token-based subscriptions, Hora'at Keva requires a specific initialization step and different transaction parameters.

Prerequisites

Before you can implement Hora'at Keva, contact Hyp support to have this capability enabled on your terminal.

Integration

The integration flow for Hora'at Keva consists of an initial setup transaction followed by subsequent monthly charges.

Initializing the standing order

To start a new standing order, perform a doDeal request with transactionType set to RecurringDebit and validation set to Verify.

You can initialize the standing order using either a raw credit card number (cardNo) or a card token (cardId).

<ashrait>
    <request>
        <version>2000</version>
        <language>ENG</language>
        <command>doDeal</command>
        <doDeal>
            <terminalNumber>{terminalNumber}</terminalNumber>
            <cardId>{cardToken}</cardId>
            <cardExpiration>{cardExp}</cardExpiration>
            <total>100</total>
            <transactionType>RecurringDebit</transactionType>
            <creditType>RegularCredit</creditType>
            <currency>ILS</currency>
            <transactionCode>Phone</transactionCode>
            <validation>Verify</validation>
            <ashraitEmvData>
                <recurringTotalNo>999</recurringTotalNo>
                <recurringFrequency>04</recurringFrequency>
                <recurringNo>0</recurringNo>
            </ashraitEmvData>
        </doDeal>
    </request>
</ashrait>

The following parameters are specific to the Hora'at Keva setup:

  • transactionType: set to RecurringDebit.

  • validation: set to Verify for the initial setup.

  • total: set to 1 or 100 for the initial setup.

  • recurringTotalNo (inside ashraitEmvData): the total number of planned payments. Use 999 for an open-ended standing order.

  • recurringFrequency (inside ashraitEmvData): the charge frequency. Use 04 for monthly or 01 for weekly.

  • recurringNo (inside ashraitEmvData): set to 0 for the initial setup.

A successful initial setup response looks like this:

Show response

Save the following data from the response:

  • authNumber, which will be required for all subsequent charges under this standing order.

  • cardId, a generated card token that you need to save if you used a raw card number in the request.

  • cardExpiration, the card expiration date.

Performing subsequent charges

Hyp Enterprise does not manage the billing calendar or automatically trigger recurring charges. Your application is responsible for maintaining customer subscription schedules, tracking billing dates, and executing subsequent charge requests via your own background workers (e.g., cron jobs).

On each billing date, perform a doDeal charge with the following parameters:

  • cardId: use the token from the initial setup response.

  • cardExpiration: use the value from the initial setup response.

  • authNumber: use the authorization number from the initial setup response.

  • transactionType: set to RecurringDebit.

  • validation: set to AutoComm to immediately execute the charge.

A successful charge response looks like this:

Show response

Cancelling a standing order

Hyp Enterprise does not provide a dedicated API command to terminate an active Hora'at Keva agreement. To stop an open-ended standing order:

  1. Halt your scheduling mechanism so that no further automated charge requests are sent for that customer.

  2. Remove the authNumber from your database records.

Last updated

Was this helpful?