Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Data action - SHA512(todays date + global-payments-app-key)

    Posted 04-30-2025 10:25
    Edited by Glyn Hayes 04-30-2025 10:27

    Global Payments now require dynamic "nonce" value (normally a version of date like example 2029-03-14T13:24:10.832Z)

    Question1 is how to reference todays-date and put into the nonce json header

    Question2 is how to SHA512 the concatenated nonce/todays-date value + app-key.

    So 2029-03-14T13:24:10.832ZzuGYAus5P6EUunTR SHA512'd = 
    7694dea543f91f94622b1dbb2fb81d6e83ac255dd118d39edfe2521a968f1d93e95832f5724bed7c8e29b95f811a469e8a124b7f5ba3f1c667c1e45393142d53

    Working hardcoded test json looks like:

    {
    "app_id": "${credentials.app_id}",
     "secret": "7694dea543f91f94622b1dbb2fb81d6e83ac255dd118d39edfe2521a968f1d93e95832f5724bed7c8e29b95f811a469e8a124b7f5ba3f1c667c1e45393142d53",
     "nonce":  "2029-03-14T13:24:10.832Z",
      "grant_type": "${credentials.grant_type}"
    }


    #DataActions

    ------------------------------
    Glyn Hayes
    Engineer
    ------------------------------



  • 2.  RE: Data action - SHA512(todays date + global-payments-app-key)

    Posted 05-01-2025 09:04

    Data actions currently do not have the capability to create timestamps or create a SHA512 hash.  A potential solution to this would be to create a Function Data Action which would either make the entire request to Global Payments, or only generate the nonce and secret and then pass those into your normal data action.

    The other thing you can do is create or vote for these capabilities on https://genesyscloud.ideas.aha.io/ideas



    ------------------------------
    --Jason
    ------------------------------