Advertisement
Guest User

Untitled

a guest
May 16th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.4.0
  8. * @ Author : DeZender
  9. * @ Release on : 30.03.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function isbanktaksit_config() {
  15. $configarray = array( 'FriendlyName' => array( 'Type' => 'System', 'Value' => 'Garanti Taksitli Sanal Pos' ), 'username' => array( 'FriendlyName' => 'API Username', 'Type' => 'text', 'Size' => '20' ), 'password' => array( 'FriendlyName' => 'API Password', 'Type' => 'text', 'Size' => '20' ), 'apiid' => array( 'FriendlyName' => 'Vendor #', 'Type' => 'text', 'Size' => '20' ), 'testmode' => array( 'FriendlyName' => 'Test Mode', 'Type' => 'yesno', 'Description' => 'Tick this to test' ) );
  16. return $configarray;
  17. }
  18.  
  19. function isbanktaksit_capture($params) {
  20. @include( 'komisyonlar.php' );
  21. $gatewayusername = $params['username'];
  22. $gatewaytestmode = $params['testmode'];
  23. $gatewaypassword = $params['password'];
  24. $gatewayapiid = $params['apiid'];
  25.  
  26. if ($gatewaytestmode == 'on') {
  27. $gatewaylink = 'https://cc5test.est.com.tr/servlet/cc5ApiServer';
  28. } else {
  29. $gatewaylink = 'https://spos.isbank.com.tr/servlet/cc5ApiServer';
  30. }
  31.  
  32. $invoiceid = $params['invoiceid'];
  33. $amount = $params['amount'];
  34. $orjamount = $params['amount'];
  35. $currency = $params['currency'];
  36. $transid = rand( 1000, 9999 ) . rand( 1000, 9999 ) . rand( 1000, 9999 );
  37.  
  38. if (0 < $_POST['taksit']) {
  39. $taksit = $_POST['taksit'];
  40. } else {
  41. $taksit = '';
  42. }
  43.  
  44.  
  45. if ($taksit == 2) {
  46. $amount = $amount / 100 * ( 100 + $komisyon2 );
  47. $cihana = explode( '.', $amount );
  48.  
  49. if (0 < strlen( substr( $cihana[1], 0, 2 ) )) {
  50. $amount = $cihana[0] . '.' . substr( $cihana[1], 0, 2 );
  51. } else {
  52. $amount = $cihana[0];
  53. }
  54. }
  55.  
  56.  
  57. if ($taksit == 3) {
  58. $amount = $amount / 100 * ( 100 + $komisyon3 );
  59. $cihana = explode( '.', $amount );
  60.  
  61. if (0 < strlen( substr( $cihana[1], 0, 2 ) )) {
  62. $amount = $cihana[0] . '.' . substr( $cihana[1], 0, 2 );
  63. } else {
  64. $amount = $cihana[0];
  65. }
  66. }
  67.  
  68.  
  69. if ($taksit == 4) {
  70. $amount = $amount / 100 * ( 100 + $komisyon4 );
  71. $cihana = explode( '.', $amount );
  72.  
  73. if (0 < strlen( substr( $cihana[1], 0, 2 ) )) {
  74. $amount = $cihana[0] . '.' . substr( $cihana[1], 0, 2 );
  75. } else {
  76. $amount = $cihana[0];
  77. }
  78. }
  79.  
  80.  
  81. if ($taksit == 5) {
  82. $amount = $amount / 100 * ( 100 + $komisyon5 );
  83. $cihana = explode( '.', $amount );
  84.  
  85. if (0 < strlen( substr( $cihana[1], 0, 2 ) )) {
  86. $amount = $cihana[0] . '.' . substr( $cihana[1], 0, 2 );
  87. } else {
  88. $amount = $cihana[0];
  89. }
  90. }
  91.  
  92.  
  93. if ($taksit == 6) {
  94. $amount = $amount / 100 * ( 100 + $komisyon6 );
  95. $cihana = explode( '.', $amount );
  96.  
  97. if (0 < strlen( substr( $cihana[1], 0, 2 ) )) {
  98. $amount = $cihana[0] . '.' . substr( $cihana[1], 0, 2 );
  99. } else {
  100. $amount = $cihana[0];
  101. }
  102. }
  103.  
  104.  
  105. if ($taksit == 7) {
  106. $amount = $amount / 100 * ( 100 + $komisyon7 );
  107. $cihana = explode( '.', $amount );
  108.  
  109. if (0 < strlen( substr( $cihana[1], 0, 2 ) )) {
  110. $amount = $cihana[0] . '.' . substr( $cihana[1], 0, 2 );
  111. } else {
  112. $amount = $cihana[0];
  113. }
  114. }
  115. ...............................................
  116. ..............................
  117. .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement