FruxonDocs

iCredit

iCredit (Rivhit's payment gateway) integration for creating payment links and checking whether they were paid

The iCredit integration lets your agents create payment links on an iCredit payment page and check whether a customer paid. iCredit is Rivhit's payment product: when a link is paid, iCredit can issue the receipt in Rivhit automatically (a payment page setting). Paired with the Rivhit integration, an agent can find what a customer owes, send a link for it, and confirm the payment.

Prerequisites

You need:

  • Payment Page Token — the GroupPrivateToken of the iCredit payment page the links should use. In iCredit management, open Payment Pages (דפי תשלום) → Payment Page List (רשימת דפי תשלום), click Edit (ערוך) on the page, and copy מזהה דף תשלום from Payment Settings (הגדרות הדף). See iCredit's guide.

Links take their defaults from the payment page's settings: currency, installments, and whether a receipt is issued in Rivhit and emailed to the customer. Set those on the page first.

Setup

  1. Open Integrations from the sidebar
  2. Select iCredit from the catalog
  3. Click Add Integration Config
  4. Give the config a display name (e.g., "iCredit")
  5. Enter the payment page token
  6. Save the config

Using in Your Agent

  1. Open your agent in Agent Studio. Under Model & capabilities → Tools, click Add tool and add the iCredit tools you need
  2. On a tool's card, choose your config under Set default credentials. It applies to every iCredit tool in the agent; click Override on one tool's card to give it a different config
  3. Tools are referenced as icredit.create_payment_link and icredit.get_payment_status

Available Tools

ToolDescriptionAction Type
create_payment_linkCreate a payment link for an amount (VAT included). Optionally books the payment to a Rivhit customer and closes the open Rivhit document it pays. Nothing is sent to the customer: the agent shares the linkReversible
get_payment_statusCheck whether a payment link was paid, and see the Rivhit receipt or document it producedReadOnly

Trigger: Payment completed

The icredit.payment.completed event starts an agent when a customer pays on the payment page, so a collections agent can mark the debt paid without polling get_payment_status.

  1. In Fruxon, open the iCredit config and copy its inbound webhook URL
  2. In iCredit, open Payment Pages (דפי תשלום) → Payment Page List, click Edit (ערוך) on the same page the config's token belongs to, and paste the URL as the page's IPN URL. Keep the IPN method on POST
  3. Add a trigger of kind INTEGRATION_EVENT with eventType icredit.payment.completed and that config

iCredit signs nothing, so Fruxon checks each notification twice before an agent runs: it must carry the config's own payment page token, and iCredit's Verify must confirm the sale and amount. Every confirmed payment on the page fires the trigger, including payments not made through an agent's link. Pass order to create_payment_link to match a payment to the debt it settles: the trigger carries it back. The payload fields are listed below.

icredit.payment.completed

Payment completed. Fire when a customer pays on the iCredit payment page and iCredit confirms the charge. Typical use: mark the debt paid, thank the customer, or stop reminders. Declined charges, J5 holds and token-only sales do not fire it.

Needs a connection: set integrationConfigId to the config to listen on.

FieldTypeDescriptionExample
payload.message_attributes.sale_idstringiCredit sale id.9ef4d39c-6fbd-4606-91a6-dc7a8d077b9e
payload.message_attributes.amountstringAmount paid.330.00
payload.message_attributes.currencystringCurrency of the payment (ISO 4217).ILS
payload.message_attributes.orderstringThe order reference given to create_payment_link: match the payment to the debt with it.INV-1042
payload.message_attributes.referencestringThe numeric reference saved on the invoice, when the sale had one.12345
payload.message_attributes.customer_idstringThe payer's customer id in Rivhit.402
payload.message_attributes.first_namestringPayer's first name.Dana
payload.message_attributes.last_namestringPayer's last name or company name.Levi
payload.message_attributes.emailstringPayer's email address.dana@example.com
payload.message_attributes.phonestringPayer's phone number.054-0000000
payload.message_attributes.descriptionstringWhat the payment was for (the first line on the payment page).Invoice 1042
payload.message_attributes.number_of_paymentsstringNumber of installments, when the customer split the payment.3
payload.message_attributes.auth_numberstringThe card company's approval number.0012345
payload.message_attributes.transaction_timestringWhen the card was charged, as iCredit reports it (DD.MM.YYYY HH:MM:SS, Israel time).24.05.2026 09:52:51
payload.message_attributes.receipt_typestringType of the Rivhit receipt iCredit issued, when the page issues receipts.1
payload.message_attributes.receipt_numberstringNumber of the Rivhit receipt iCredit issued.13657
payload.message_attributes.receipt_urlstringLink to the receipt's PDF.https://api.rivhit.co.il/pdf/FileService.svc/GetDocument/...
payload.message_attributes.document_typestringType of the Rivhit document iCredit issued, when the page issues an invoice-receipt.2
payload.message_attributes.document_numberstringNumber of the Rivhit document iCredit issued.66618
payload.message_attributes.document_urlstringLink to the document's PDF.https://api.rivhit.co.il/pdf/FileService.svc/GetDocument/...
payload.message_attributes.recurring_charge_numberstringThe charge's number within a recurring sale; absent for a one-off payment.2

Every event also carries the fields common to all events. To use one, see Start when something happens in another app.

On this page