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

Installments in Direct Charge and Two-Phase Commit

When you want to use installments in a direct charge (without showing the payment page) or in a capture request as part of a two-phase commit, your request must explicitly contain additional elements. The set and meaning of these elements depend on whether you're using regular or credit installments. In any case, as a merchant, you need to calculate and send an exact breakdown of the installment payments.

Regular installments

With regular installments (creditType is set to Payments), your doDeal request must include:

  • creditType set to Payments to enable regular installments.

  • firstPayment: the amount of the first payment in the installment series, specified in currency subunits such as cents or agorot.

  • periodicalPayment: the amount of each subsequent payment in the installment series, specified in currency subunits such as cents or agorot.

  • numberOfPayments: the number of periodical payments requested, not including the first payment. For example, to split the transaction into a total of six regular installments (1 first payment and five periodical payments), set numberOfPayments to 5.

Hyp will validate your request against the following formula and return error 037 if the validation fails:

total = firstPayment + (numberOfPayments x periodicalPayment)

In the following request example, the total amount is ₪100, the first payment is ₪10, the periodical payment is ₪30, and the number of periodical payments is 3. Because ₪10+(₪30*3) equals ₪100, the validation succeeds.

<ashrait>
      <request>
          <version>2000</version>
          <language>ENG</language>
          <command>doDeal</command>
          <doDeal>
              <terminalNumber>0882818012</terminalNumber>
              <cardId>1024038988865846</cardId>
              <cardExpiration>0427</cardExpiration>
              <total>10000</total>
              <transactionType>Debit</transactionType>
              <creditType>Payments</creditType>
              <currency>ILS</currency>
              <transactionCode>Internet</transactionCode>
              <validation>AutoComm</validation>
              <firstPayment>1000</firstPayment>
              <periodicalPayment>3000</periodicalPayment>
              <numberOfPayments>3</numberOfPayments>
          </doDeal>
      </request>
  </ashrait>

A response to this request will look like this:

Show response

Credit installments

With credit installments (creditType is set to SpecialCredit), your doDeal request must include:

  • creditType set to SpecialCredit to enable credit installments.

  • periodicalPayment: the amount of each payment in the credit installment series, specified in currency subunits such as cents or agorot. Credit installments do not have a first payment, so this is the only payment amount.

  • numberOfPayments: the total number of payments requested (3 or more).

Last updated

Was this helpful?