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 toRecurringDebit.validation: set toVerifyfor the initial setup.total: set to1or100for the initial setup.recurringTotalNo(insideashraitEmvData): the total number of planned payments. Use999for an open-ended standing order.recurringFrequency(insideashraitEmvData): the charge frequency. Use04for monthly or01for weekly.recurringNo(insideashraitEmvData): set to0for the initial setup.
A successful initial setup response looks like this:
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 toRecurringDebit.validation: set toAutoCommto immediately execute the charge.
A successful charge response looks like this:
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:
Halt your scheduling mechanism so that no further automated charge requests are sent for that customer.
Remove the
authNumberfrom your database records.
Last updated
Was this helpful?