Skip to content

Instantly share code, notes, and snippets.

@doooks
Last active December 1, 2015 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doooks/338634dced084697efff to your computer and use it in GitHub Desktop.
Save doooks/338634dced084697efff to your computer and use it in GitHub Desktop.
vendor-id: "vendor-12345"
secret-key: "secret-12345"
input: {"timestamp":"2015-03-16T11:14:24+00:00",
"account":{"id":"a123456","is_paying":"true","monthly_value":"99.99"},
"vendor":{"id":"vendor-12345"},
"user":{"full_name":"Dan Test","email":"dan@example.com","id":"u123459"},
"return_url":"http://example.com"}
string to sign: "2015-03-16T11:14:24+00:00,99.99,Dan Test,a123456,dan@example.com,http://example.com,secret-12345,true,u123459,vendor-12345"
signature expected: "85e57440a6610b27fa98a573415a8b80cdb29cafbcdd051f3d39125d403fd222"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment