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' ) ); return $configarray; } function isbanktaksit_capture($params) { @include( 'komisyonlar.php' ); $gatewayusername = $params['username']; $gatewaytestmode = $params['testmode']; $gatewaypassword = $params['password']; $gatewayapiid = $params['apiid']; if ($gatewaytestmode == 'on') { $gatewaylink = 'https://cc5test.est.com.tr/servlet/cc5ApiServer'; } else { $gatewaylink = 'https://spos.isbank.com.tr/servlet/cc5ApiServer'; } $invoiceid = $params['invoiceid']; $amount = $params['amount']; $orjamount = $params['amount']; $currency = $params['currency']; $transid = rand( 1000, 9999 ) . rand( 1000, 9999 ) . rand( 1000, 9999 ); if (0 < $_POST['taksit']) { $taksit = $_POST['taksit']; } else { $taksit = ''; } if ($taksit == 2) { $amount = $amount / 100 * ( 100 + $komisyon2 ); $cihana = explode( '.', $amount ); if (0 < strlen( substr( $cihana[1], 0, 2 ) )) { $amount = $cihana[0] . '.' . substr( $cihana[1], 0, 2 ); } else { $amount = $cihana[0]; } } if ($taksit == 3) { $amount = $amount / 100 * ( 100 + $komisyon3 ); $cihana = explode( '.', $amount ); if (0 < strlen( substr( $cihana[1], 0, 2 ) )) { $amount = $cihana[0] . '.' . substr( $cihana[1], 0, 2 ); } else { $amount = $cihana[0]; } } if ($taksit == 4) { $amount = $amount / 100 * ( 100 + $komisyon4 ); $cihana = explode( '.', $amount ); if (0 < strlen( substr( $cihana[1], 0, 2 ) )) { $amount = $cihana[0] . '.' . substr( $cihana[1], 0, 2 ); } else { $amount = $cihana[0]; } } if ($taksit == 5) { $amount = $amount / 100 * ( 100 + $komisyon5 ); $cihana = explode( '.', $amount ); if (0 < strlen( substr( $cihana[1], 0, 2 ) )) { $amount = $cihana[0] . '.' . substr( $cihana[1], 0, 2 ); } else { $amount = $cihana[0]; } } if ($taksit == 6) { $amount = $amount / 100 * ( 100 + $komisyon6 ); $cihana = explode( '.', $amount ); if (0 < strlen( substr( $cihana[1], 0, 2 ) )) { $amount = $cihana[0] . '.' . substr( $cihana[1], 0, 2 ); } else { $amount = $cihana[0]; } } if ($taksit == 7) { $amount = $amount / 100 * ( 100 + $komisyon7 ); $cihana = explode( '.', $amount ); if (0 < strlen( substr( $cihana[1], 0, 2 ) )) { $amount = $cihana[0] . '.' . substr( $cihana[1], 0, 2 ); } else { $amount = $cihana[0]; } } ............................................... .............................. .............