2.1.1 • Published 1 month ago
vallet.js v2.1.1
Örnek
const { Client } = require("vallet.js");
const express = require("express");
const client = new Client({
username: string,
password: string,
shopCode: string,
callbackFailUrl: string,
callbackOkUrl: string,
apiHash: string,
defaults: {
productName: string | undefined,
productType: "DIJITAL_URUN" | "FIZIKSEL_URUN" | undefined,
locale: "tr" | "en" | "de" | "ru" | undefined,
currency: "TRY" | "USD" | "EUR" | undefined,
}
});
client.createOrder({
productName: string | undefined,
products: [{
productName: string;
productPrice: number;
productType: "DIJITAL_URUN" | "FIZIKSEL_URUN" | undefined;
}],
productType: "DIJITAL_URUN" | "FIZIKSEL_URUN" | undefined,
currency: "TRY" | "USD" | "EUR" | undefined,
orderId: string,
locale: "tr" | "en" | "de" | "ru" | undefined,
conversationId: string | undefined,
buyer: {
name: string,
surname: string,
gsmNumber: string,
email: string,
address: string,
country: string,
city: string,
district: string
}
});
const app = express();
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
client.bind(app, "/vallet/callback");
client.on("paymentOk", (data) => {
console.log(data);
});
2.1.2-dev.0
1 month ago
2.0.3
7 months ago
2.1.1
7 months ago
2.0.5
7 months ago
2.0.4
7 months ago
2.0.7
7 months ago
2.0.6
7 months ago
2.0.8
7 months ago
2.1.0
7 months ago
2.0.1
9 months ago
2.0.0
9 months ago
1.0.28
9 months ago
1.0.27
9 months ago
1.0.26
9 months ago
1.0.25
9 months ago
1.0.24
9 months ago
1.0.23
9 months ago
1.0.22
9 months ago
1.0.21
9 months ago
1.0.20
9 months ago
1.0.19
9 months ago
1.0.18
9 months ago
1.0.17
9 months ago
1.0.16
9 months ago
1.0.15
9 months ago
1.0.14
9 months ago
1.0.13
9 months ago
1.0.12
9 months ago
1.0.11
9 months ago
1.0.10
9 months ago
1.0.9
9 months ago
1.0.8
9 months ago
1.0.7
9 months ago
1.0.6
9 months ago
1.0.5
9 months ago
1.0.4
9 months ago
1.0.3
9 months ago
1.0.2
9 months ago
1.0.1
9 months ago
1.0.0
9 months ago
0.0.1
9 months ago