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

Transaction Validation

While your backend learns about a transaction's outcome from the payment completion redirect, it's a good idea to double-check that the data you received is authentic and hasn't been tampered with.

Hyp Pay has an API endpoint that lets you verify the transaction details directly with our servers.

Prerequisites

In your Hyp Pay terminal settings, there's an option that tells the system to include a security signature in the redirect parameters. You'll need this signature for the validation process.

This setting is usually on by default. To check it, log into your Hyp Pay account, go to הגדרות (Settings) and click on API-דף תשלום ו (Payment Page and API). Look for the אימות (Verification) section and make sure אימות על ידי חתימה בעמודי התשלום (Verify by signature in the payment page) is enabled.

You also need to make sure your initial payment page request includes the Sign parameter set to True. This tells Hyp Pay to include the signature you'll need later in the redirect.

How validation works

Validation in Hyp Pay is API-based. Instead of doing complex math to calculate a signature yourself, you just send the parameters you got from the redirect back to us. We'll check them against our records and let you know if they match.

To validate a transaction, have your backend send a GET request to https://pay.hyp.co.il/p/ with these parameters:

  • action set to APISign.

  • What set to VERIFY.

  • Masof is your terminal number.

  • KEY is your Hyp Pay API key.

  • PassP is your Hyp Pay API password.

  • Every parameter that was sent to your success page URL, in the exact same order.

The most important bit in the payment completion redirect is the Sign parameter. This is a unique signature Hyp Pay creates for that specific transaction. When you send it back in a VERIFY call, you're asking Hyp Pay to confirm that the signature matches the provided transaction.

Example validation request

Here's an example of a validation request. We took the parameters from a typical success redirect and added them to the VERIFY call:

When you send this request, Hyp Pay will give you a simple answer.

If everything looks good and the parameters match what we have on file, you'll get a success code:

If the validation fails — like if the signature is wrong or the transaction doesn't exist — you'll get an error code.

We recommend validating every transaction before you ship an order or give a customer access to your service. It's the best way to be sure you're only acting on real, authorized payments.

Last updated

Was this helpful?