Variable symbol — reference para subaybayan ang bayad. Para masubaybayan ang bayad, nagdadagdag kami ng 4 na digit sa dulo ng halaga; halimbawa sa USDT sa Tron ay 6 na digit pagkatapos ng tuldok. Ginagamit ang unang dalawa, hal. 10.55 (10 dolyar 55 sentimo), at may variable symbol ay 10.550001. Sa totoo, 1000 beses na mas maliit ito kaysa sa isang sentimo — hindi sobra ang babayaran ng buyer. Pero masusubaybayan ang bayad.
Kapag sa Merchant mode naubos mo ang hanggang 10,000 code, awtomatikong madadagdagan ng bagong USDT address para sa susunod na 10,000 code — at walang hanggan. Kaya mo pang paglingkuran kahit malaking online store na may libu-libong order kada araw.
Kung hindi, kailangan mo ng hiwalay na address sa bawat bayad. Pagkatapos ay magbayad ng network fee para tipunin ang lahat ng pondo sa isang address. Halimbawa, kung may 100 bayad sa 100 address, para tipunin ang pondo sa isang address (para sa exchange, atbp.), kailangan mong magbayad ng komisyon nang 100 beses ($0.9 bawat isa). Nilampasan namin ito gamit ang reference number na inilarawan sa itaas.
Your server must be able to accept a POST request to the address you specified as the webhook. Here is an example in Javascript (Express.js framework)
app.post('/mi_webhook_subscription/', bodyParser.json(), (request, response) => {
try {
let eventObj = request.body;
const signature = request.headers['mitilena-signature'];
if (signature === endpointSecretMitilenaNewOur) {
if (!eventObj.statusObj) {
return response.status(400).send('Error, no object.');
}
let hookObj = eventObj.statusObj;
...
We will send you an object in JSON format. The object will have the following fields, as well as a secret key. Your private secret key:
You should only process requests to your webhook that contain this key.
statusObj = {
mitilenaInvoiceId: 'auto-683dc5-03f2c0-e3f06a-example-string', // never undefined
yourPaymentId: 'stringOrNull', // never undefined
yourProductName: 'stringOrNull', // never undefined
yourProductId: 'stringOrNull', // never undefined
secretKey: 'your-unique-secret-key', // never undefined,
stableCoinAmount: 0, // number, never undefined
stableCoinSymbol: 'USDT', // never undefined
stableCoinBlockchain: 'tether-trc20', // never undefined
stableCoinContractAddress: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', // string | null
localCurrencyAmount: 0, // number, never undefined
localCurrencyCode: 'EUR', /// ISO 4217 currency code, never undefined
wasPaid: true, // true | false, never undefined
}
/* payment time === webhook call time.
We try to send a request immediately after the payment is detected
!!!
If the secret key is incorrect or at least one field is
undefined - this is a fake request, do not set the order
as paid in your system! */
Kapag natanggap mo ang ganyang object at na-verify mo — maaari mong markahan ang order sa DB mo bilang bayad na. May mas kumpletong deskripsyon kami sa aming blog.