Što je točno serija? Svaka transakcija koju kreirate pripada takozvanoj seriji. Baš kao i račun, svaka serija ima svoj broj i u biti je paket transakcija. Zatvaranje je administrativna operacija kojom terminal zatvara seriju i potiče sustave da zatvore seriju i otvore novu. U Global Payments sustavima moguće je vidjeti broj zatvaranja za svaku transakciju i filtrirati transakcije prema tom broju.
Inicijalizacija zaključivanje serije
Transakciju je moguće pokrenuti pozivom:
gptom://batch/close?…
gdje se za izgradnju poruke koriste sljedeći parametri:
Varijabla/Polje
Format
Opis
Primjer
ID klijenta
niz
redirectUrl
niz
HR: URL vaše aplikacije na koju ćemo preusmjeriti klijenta nakon što je zatvaranje završeno.
EN: The URL of your application to which we will redirect the client after the close batch is complete.
EN: The URL of your application to which we will redirect the client after the close batch is complete.
fb://Success
isprintaj po uplati
logička vrijednost
HR: Ovo određuje hoće li vaša aplikacija ili GP tom isporučiti račun kupcu. Zadana vrijednost je true (što znači da će GP tom ponuditi isporuku računa kupcu). Ako vrijednost postavite na false, korisnika ćemo vratiti u vašu aplikaciju odmah nakon transakcije, a na vama je da isporučite račun.
EN: Defines whether the receipt is passed to the client by your application or GP tom. The default value is true (i.e. GP will offer a way to pass the receipt to the client). If you send a value of "false", we return the user to your app immediately after the transaction and it's up to you to pass the receipt.
EN: Defines whether the receipt is passed to the client by your application or GP tom. The default value is true (i.e. GP will offer a way to pass the receipt to the client). If you send a value of "false", we return the user to your app immediately after the transaction and it's up to you to pass the receipt.
istina/laž
poželjeni tip potvrde o uplati
enum (sms, e-pošta, qr, ispis)
HR: Prilikom slanja računa iz GP tom aplikacije, moguće je unaprijed definirati način slanja računa putem API-ja. Moguće vrijednosti su:
EN: In the case of sending a receipt from the GP tom application, it is possible to predefine the method of sending the receipt via the API. Possible values are:
PHONE
EMAIL
QR
PRINT
EN: In the case of sending a receipt from the GP tom application, it is possible to predefine the method of sending the receipt via the API. Possible values are:
PHONE
QR
sms poruka
telefon klijenta
niz
HR: Telefonski broj klijenta.
EN: Client phone number.
EN: Client phone number.
+420606505404
email klijenta
niz
HR: Adresa e-pošte klijenta.
EN: Client email address.
EN: Client email address.
info@gptom.com
Primjer poziva:
gptom://batch/close?preferableReceiptType=QR&redirectUrl=gp://batch/close&clientEmail=info@gptom.com&clientID=223&printByPaymentApp=true&clientPhone=+420606505404
Odgovor će sadržavati sljedeća polja:
Varijabla/Polje
Format
Opis
Primjer/Example
TASK STATUS
HR: Pruža informacije o statusu vašeg zahtjeva.
EN: Gives information in which state has your request ended.
EN: Gives information in which state has your request ended.
Završeno
CANCELLED
ERROR
CANCELLED
ERROR
communicationId
12345678
voidAmount
HR: Ukupan iznos otkazanih transakcija.
EN: Total amount of voided transactions.
EN: Total amount of voided transactions.
5
ukupniIznos
HR: Ukupni iznos zatvaranja.
EN: Total amount of close batch.
EN: Total amount of close batch.
100
totalCount
HR: Broj svih transakcija u zaključivanje serije.
EN: Number of all transactions in the close batch.
EN: Number of all transactions in the close batch.
15
saleAmount
CZ: Ukupan iznos transakcija PRODAJE.
EN: Total amount of SALE transactions.
EN: Total amount of SALE transactions.
105
voidCount
HR: Broj otkazanih transakcija u završnici.
EN: Amount of voided transactions in the close batch.
EN: Amount of voided transactions in the close batch.
1
previousBatchDate
HR: Datum prethodnog zaključivanje serije.
EN: Date of the previous batch.
EN: Date of the previous batch.
2024-10-20T15:11:08.152Z
date
HR: Datum izvršenja tekućeg zaključivanje serije.
EN: Date of processing this close batch.
EN: Date of processing this close batch.
2024-10-29T12:14:00.198Z
saleCount
HR: Broj transakcija PRODAJE pri zaključivanje serije.
EN: Number of SALE transactions in the close batch.
EN: Number of SALE transactions in the close batch.
14
firstTransactionDate
HR: Datum prve transakcije u zaključivanje serije.
EN: Date of the first transaction in the close batch.
EN: Date of the first transaction in the close batch.
2024-10-21T17:19:20.015Z
subBatches
HR: Ovdje možete pronaći pregled po načinu plaćanja.
EN: Here you will find overview per payment method.
EN: Here you will find overview per payment method.
GOTOVINA
KARTA
KARTA
