Gift Cards
Hyp Enterprise supports a variety of gift card brands used in Israel, issued by Finitione, Multipass, or Swish (Rav-Arnak).
Your customers can split payments between multiple gift cards of different brands: up to five gift cards in a single purchase. If the funds available on gift cards are not enough to cover the transaction amount, the customer can add the missing funds using their regular credit card.
When the customer enters a gift card number, Hyp's payment page validates the number based on the card brand's prefix and numbering conventions.
Prerequisites
Before you can accept gift cards, you must set up merchant accounts with each gift card provider you want to support. Each provider has different requirements for enabling its cards on your Hyp terminal:
Multipass: You need to provide the following credentials to your Hyp representative:
posCompanyId(merchant ID)posId(terminal ID)username(client ID)Password
Swish (Rav-Arnak): You need to provide your merchant terminal ID (
TerminalUniqueIdentifier) to your Hyp representative.
Once you have the necessary credentials, contact your Hyp representative to enable gift card support on your terminal. You should also specify which gift card brands from each provider you wish to accept.
Payment page integration
As soon as gift cards are enabled on your terminal, the Gift Card button will appear on your payment pages by default.
However, there are several considerations to keep in mind when accepting gift cards.
Capture transactions
Gift cards are best used with the regular payment page flow, which performs a capture transaction (J4) and sets the mpiValidation parameter to AutoComm.
By default, two-phase commits and tokenization are unavailable for payments using gift cards. If your payment page request uses any value other than AutoComm for mpiValidation, the resulting payment page will not display the gift card button, and no error will be returned.
Two-phase commits
Even though gift cards are best suited for the regular payment page flow, they can still be integrated into two-phase commits.
In this case, gift cards will be charged at the time of authorization, while any remaining credit card balance will be charged at the time of capture. If capture is not performed, it is your responsibility to refund all gift cards that were charged at the time of authorization.
To display the gift card button on a two-phase commit payment page, add the following element inside the doDeal section of your payment page request:
Most gift cards can't be saved
Most gift card brands cannot be tokenized and saved for future use.
A notable exception is gift cards issued by Finitione, which behave like regular credit cards and can be saved. However, it is recommended that you do not save gift cards and instead use them only when the customer has explicitly chosen to do so.
Separate transactions for each card
Each gift card redeemed on the payment page constitutes a separate transaction and receives a unique tranId identifier. At the same time, all transactions associated with a single payment involving gift cards share the same txId identifier.
Refunds and cancellations
If you need to perform a refund or cancellation, it must be done separately for each transaction using its respective tranId identifier.
Depending on the gift card provider, you may need to specify a different terminal when making refund and cancellation requests:
For Multipass gift cards, prefix your terminal number with
mp:For Swish (Rav-Arnak) gift cards, prefix your terminal number with
ra.
For Finitione gift cards, use your regular terminal number without any prefix.
Keep in mind that refund policies, whether they are full, partial, or time-restricted, are determined by the gift card providers. Verify these policies with your gift card provider before going live, as Hyp will pass along any rejections or error codes received from the provider if a refund is restricted.
Inquiring about transactions
When performing transaction inquiries, use txId to inquire about all transactions associated with a payment involving gift cards and tranId to inquire about a specific transaction.
All gift cards used are listed in invoices
Invoicing works the same way as it does for regular credit card transactions, with one exception. Since each gift card constitutes a separate transaction, when you create an invoice, you need to retrieve the tranId for each transaction and then list them all, separated by spaces, inside the invoiceAtranId element:
In the payment details, the recipient will see the specific gift card or cards used, as well as the credit card, if one was also used.
Hiding gift cards from the list of payment methods
If you want to hide gift cards from the list of additional payment methods, the usual method for hiding payment methods does not apply. Instead, you need to hide the HTML element that contains the gift card button:
Alternatively, if gift cards are the only additional payment method on your payment page, you can hide the entire section of additional payment methods like this:
Keep in mind that while you can hide the gift card button, the internal gift card components themselves (such as the list of brands and the card entry form) cannot be customized. For this reason, we recommend using the default Hyp payment page design to ensure that these elements are displayed correctly and provide a smooth user experience.
Restricting gift card providers
By default, gift cards from all supported providers are displayed on the payment page. You can choose to allow payments only with card brands from specific gift card providers. For each specified provider, all of its gift cards will be displayed on the payment page.
To do this, define a gift card settings item in the paymentMethods array, then set the allowedProviders parameter to an array of strings representing the gift card providers you want to allow:
The three supported string values in the allowedProviders array are multipass, swish, and finitione.
Limiting the total amount
You can cap the total amount that customers can pay using gift cards in a single transaction. This is useful if you want to ensure that a portion of the payment is made using another method, or if you have specific business rules regarding gift card usage limits.
To set this limit, use the maxAmount parameter within the gift card settings object in the paymentMethods array. The value should be an integer representing the amount in agorot (for example, 1000 for 10 ILS) and cannot exceed the total transaction amount.
When the cumulative value of the gift cards entered by the customer reaches this limit, the payment page will automatically hide the option to add more cards.
Limiting the number of gift cards in a transaction
If you want to restrict how many individual gift cards a customer can use for a single purchase, you can set a specific limit.
To define a custom limit, set the maxGiftCardCount parameter to a value between 1 and 4. If you don't specify this parameter, the default limit of five cards applies.
Once the customer reaches the specified number of cards, the interface will stop offering the option to add another gift card.
Gift card only mode
For specific promotions or specialized storefronts, you might want to restrict the payment page to only accept gift cards. In this mode, credit cards and other payment methods are disabled.
To enable this restriction, set the giftcardOnlyMode parameter to true. This tells the payment page to display only the gift card interface and hide all other payment options.
When using this mode, the total transaction amount must be fully covered by gift cards, so you cannot use the maxAmount parameter. However, you can still combine this with maxGiftCardCount to limit the number of cards allowed, or use allowedProviders to restrict which brands the customer can use.
Payment experience
Here's what the gift card payment button looks like on the payment page:

When the customer clicks the button, Hyp Enterprise displays a list of supported gift card brands:

Clicking a brand opens a form to enter the gift card number and any additional required fields:

After validating the entered details, Hyp Enterprise shows a list of gift cards used so far. The customer can adjust the amount applied to each card or add more cards (up to five in total):

After clicking Continue, if the total amount due is not fully covered by the selected gift cards, the customer can pay the remaining balance with a regular credit card.
Once the customer has completed all fields and clicked Pay, the payment is processed, and either the success page or the error page is displayed.
This flow works the same whether you use a full-page redirect or display the payment page in an iframe.
Last updated
Was this helpful?