· 9 years ago · Dec 30, 2016, 03:46 PM
1<form id="kkDetay" name="kkCek" method="post">
2 <input type="text" id="name-on-card" placeholder="Name Surname">
3 <input type="text" id="card-number" placeholder="Card Number">
4 <input type="text" id="card-exp-month" placeholder="Month">
5 <input type="text" id="card-exp-year" placeholder="Year">
6 <input type="text" id="card-cvc" placeholder="Cvc">
7 <button id="subm2" type="submit">Pay Now</button>
8
9var Iyzipay = require('iyzipay');
10var iyzipay = new Iyzipay({
11 apiKey: 'sandbox-PZ8jicWrEeE1rt1O75FTOegr5lsW3xxx',
12 secretKey: 'sandbox-2Q6aaP1FK3HFrXkTsHfftxfiudFMfxxx',
13 uri: 'https://sandbox-api.iyzipay.com'
14 });
15var request = {
16 locale: Iyzipay.LOCALE.TR,
17 conversationId: '123456789',
18 price: '1',
19 paidPrice: '1.2',
20 currency: Iyzipay.CURRENCY.TRY,
21 installment: '1',......
22 Dummy data
23 }
24 iyzipay.payment.create(request, function (err, result) {
25 console.log(err, result);
26 done();
27 });