Skip to content

Instantly share code, notes, and snippets.

@eyalcohen4
Created April 26, 2017 06:54
Show Gist options
  • Save eyalcohen4/da957983d61fc5c5b5108b306b870b93 to your computer and use it in GitHub Desktop.
Save eyalcohen4/da957983d61fc5c5b5108b306b870b93 to your computer and use it in GitHub Desktop.
$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&currency=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