DenizBank InterVPOS
DenizBank, kendi InterVPOS altyapısını sunar. SOAP tabanlı API ile çalışır ve 3D Secure OOS (Online Ödeme Sistemi) modelini kullanır.
API Bilgileri
- Test WSDL: https://inter-test-vpos.denizbank.com/mpi/Default.aspx
- Canlı WSDL: https://inter-vpos.denizbank.com/mpi/Default.aspx
1. 3D OOS Başlatma
$shop_code = '3123';
$user_code = 'APIUSER';
$user_pass = 'API_PASS';
$amount = '100.00';
$order_id = uniqid('DNZ-');
$txn_type = 'Sale';
$params = [
'ShopCode' => $shop_code,
'OrderId' => $order_id,
'PurchAmount' => $amount,
'TxnType' => $txn_type,
'Currency' => '949',
'SecureType' => '3DPayment',
'OkUrl' => 'https://siteniz.com/basarili',
'FailUrl' => 'https://siteniz.com/hata',
'Lang' => 'tr',
'InstallmentCount' => '0',
];
2. SOAP ile Provision
$wsdl = 'https://inter-test-vpos.denizbank.com/mpi/MerchantService.asmx?wsdl';
$client = new SoapClient($wsdl, [
'trace' => true,
'exceptions' => true,
]);
$result = $client->ProvisionGate([
'ShopCode' => $shop_code,
'UserCode' => $user_code,
'UserPass' => $user_pass,
'OrderId' => $order_id,
'Amount' => $amount,
'Currency' => '949',
'TxnType' => 'Sale',
'Xid' => $_POST['Xid'],
'ECI' => $_POST['Eci'],
'CAVV' => $_POST['Cavv'],
]);
if ($result->ResultCode === '0000') {
approve_payment($order_id);
}