Skip to content

Instantly share code, notes, and snippets.

@omitobi
Last active April 5, 2019 13:02
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 omitobi/ada9fe51c5b7057693f370bd58d9ebcf to your computer and use it in GitHub Desktop.
Save omitobi/ada9fe51c5b7057693f370bd58d9ebcf to your computer and use it in GitHub Desktop.
function getSolinorUrl()
{
$json = '{
"sph-account": "test",
"sph-cancel-url": "http://example.test/api/cards/cancel",
"sph-failure-url": "http://example.test/api/cards/failure",
"sph-merchant": "test_merchantId",
"sph-request-id": "6saduyd7-648f-43ee-a65c-8sdaskd8wq",
"sph-success-url": "http://example.test/api/cards/success?for=5",
"sph-timestamp": "2019-04-02T12:31:19Z",
"language": "ENG",
"signature": "SPH1 testKey sjdsdsdss"
}';
$url_ = 'https://v1-hub-staging.sph-test-solinor.com/form/view/add_card?';
return $url_.http_build_query(json_decode($json, true));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment