Secure Web Pay - Standard Hash

Modified on Mon, 29 Jul, 2024 at 2:38 PM

Authentication

Authentication is done using a HMAC-MD5 hash that includes the following fields.

  • · pg_api_login_id (found in the Virtual Terminal)
  • · pg_transaction_type or pg_valid_transaction_type (can be blank)
  • · pg_version_number
  • · pg_total_amount or pg_valid_amount (can be blank)
  • · pg_utc_time
  • · pg_transaction_order_number (can be blank)
  • · pg_client_id (can be blank)
  • · pg_payment_method_id (can be blank)
  • · pg_client_command (can be blank)
  • · pg_payment_command (can be blank)


The API Login ID and Secure Transaction Key can be found in the Virtual Terminal under Gateway Settings.


 

Hash Examples

pg_ts_hash = HMACMD5( pg_api_login_id + "|" + pg_transaction_type + "|" + pg_version_number + "|" + pg_total_amount + "|" + pg_utc_time + "|" + pg_transaction_order_number + "|" + pg_client_id + "|" + pg_client_command + "|" + pg_payment_method_id + "|" + pg_payment_command, pg_secure_transaction_key)


https://www.forte.net/devdocs/pdf/swp_integration.pdf

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article