Banks
İş Bankası
İş Bankası NestPay (CC5) integration reference.
İş Bankası uses NestPay/CC5 with HMAC-SHA512 (v3 hash) authentication. 3D Secure is delivered as an auto-submitting form to the est3Dgate endpoint in 3d_pay_hosting mode.
Configuration
isbank: {
enabled: true,
config: {
clientId: process.env.ISBANK_CLIENT_ID!,
username: process.env.ISBANK_USERNAME!,
password: process.env.ISBANK_PASSWORD!,
storeKey: process.env.ISBANK_STORE_KEY!,
},
}baseUrl defaults to https://entegrasyon.asseco-see.com.tr in sandbox and https://spos.isbank.com.tr in production.
3D Secure
const init = await payment.isbank.initThreeDSPayment({
price: '150.00',
currency: 'TRY',
callbackUrl: 'https://yoursite.com/isbank/callback',
paymentCard: { cardHolderName, cardNumber, expireMonth, expireYear, cvc },
buyer: { /* … */ },
basketId: 'order-1',
/* … */
});
const final = await payment.isbank.completeThreeDSPayment(req.body);Refund / Cancel / Get
await payment.isbank.refund({ paymentId, price: '150.00', currency: 'TRY', ip: '…' });
await payment.isbank.cancel({ paymentId, ip: '…' });
await payment.isbank.getPayment(paymentId);