Created
April 26, 2017 06:54
-
-
Save eyalcohen4/da957983d61fc5c5b5108b306b870b93 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
$handshakeParams = [ | |
'sum' => $DEFAULT_SUM, // (currently is 10) | |
'TranzilaPW' => test2387, | |
'supplier' => F4BJ75, | |
'op' => 1, | |
]; | |
// The request url for handsake: https://secure5.tranzila.com/cgi-bin/tranzila71dt.cgi?sum=10&TranzilaPW=F4BJ75&supplier=test2387&op=1 | |
$iframeParam = [ | |
'sum' => $DEFAULT_SUM, // (currently is 10) | |
'orderId' => $orderId, | |
'supplier' => 1, | |
'currency' => 1 | |
'cred_type' => 6, | |
'lang' => 'il', | |
'maxpay' => 36, | |
'thtk' => $token, // thtk get back from the handskae request | |
'tranmode' => 'AK' | |
]; | |
// Then we implement a curl POST request as Tranzila documentation said | |
// The response (Iframe url) is: https://direct.tranzila.com/test2387/iframe.php?sum=10&orderId=2&supplier=test2387¤cy=1&cred_type=8&lang=il&maxpay=36&thtk=40O8mfv9R3IYvKdM6zSTK3aR8E1HPIvwI1q3Z9so1ow9Lv7suy&tranmode=AK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment