Skip to content

Signing

woutse edited this page Nov 18, 2024 · 1 revision

Signing

What is "Signing"?

Signing, in our context, is a self-verifying-exchange method which makes an API status call to Pay redundant. This in contrast to other exchange methods, POST and GET, which typically require an API request to verify the payment status.

If you want to make use of this exchange method, enable this in your sales location at Pay.'s backoffice.

Exchange Class

Although the Exchange class offers a do-it-all process() method, you can use the following signing methods, for whatever reason, to make your own signing verification:

To check whether an exchange call is a signing request, use:

(new Exchange)->isSignExchange()

Returns: a boolean. If true, its a sign request


To verify the signing request, use:

(new Exchange)->checkSignExchange(string $username, string $password)

Accepts: username and password as arguments, for your specific config.

Returns: a boolean. If true, then the verification was successful and you can assume that the status in the payload is the correct current payment status.

Clone this wiki locally