stripe_customer_id = "cus_12345678"
uicheck_id="your_uicheck_id"
uicheck_secret="your_uicheck_secret"
signature = OpenSSL::HMAC.hexdigest(
'sha256', # hash function
uicheck_secret, # keep this secret safe on your server.
(uicheck_id + uicheck_secret) # pass this result to the frontend.
) # pass the result to the frontend.
puts(signature) # prints something like 22af9d...c00d8c