Last active
April 5, 2019 13:02
-
-
Save omitobi/ada9fe51c5b7057693f370bd58d9ebcf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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