Vă reamintim
Pentru mediul DEV, numele pachetului este com.globalpayments.atom.dev, iar pentru mediul de producție este com.globalpayments.atom
Solicitare – Tranzacție de vânzare – Primită
// Pasul 1 —-Înregistrare—- (cu clientID)
SOLICITARE: registerV2={„clientID“:“d155b771-c314-11eb-9541-8b727b582c20”}
RĂSPUNS: transactionRegisterV2Result{„clientID“:“d155b771-c314-11eb-9541-8b727b582c20″,“resultCode“:0,“transactionId: “f4e7c060-22b0-11ec-b864-79093d9de1d1“}
//Pasul 2 —-Start—- (VÂNZARE cu clientID, suma 7, folosind transactionID din metoda Register anterioară) Aplicația GP TOM este deschisă; VĂ RUGĂM SĂ NU UTILIZAȚI RĂSPUNSUL DE LA ACEST PUNCT DE CAPĂT ȘI SĂ ÎNCEPEȚI ÎN SCHIMB SĂ VERIFICAȚI STARE
SOLICITARE: startTransV2={„amount“:700,“clientID“:“d155b771-c314-11eb-9541-8b727b582c20“,“printByPaymentApp“: true, “redirectPackageName“: “com.globalpayments.atom“, “tipAmount: “0“, “transactionID“: “f4e7c060-22b0-11ec-b864-79093d9de1d1”, „transactionType”: 1}
//Pasul 3 —-Starea de interogare—- (utilizând ID-ul tranzacției din metoda „Register” anterioară până când starea este marcată ca finalizată – a se vedea stările din capitolul 3)
SOLICITARE: getTransactionState=f4e7c060-22b0-11ec-b864-79093d9de1d1
//Starea nu este finalizată – continuă interogarea
RESPONSE: onStateResult={„created“:“2021-10-01T12:13:16.292Z“,“isRepeatable“:false,“resultCode“:0,“state“:1,“transactionId“: “f4e7c060-22b0-11ec-b864-79093d9de1d1“, “updated“: “2021-10-01T12:13:28.320Z”}
//Încă se efectuează sondajul
SOLICITARE: getTransactionState=f4e7c060-22b0-11ec-b864-79093d9de1d1
//Starea este marcată ca finalizată – opriți interogarea și treceți la Pasul 4
RESPONSE: onStateResult={„created“:“2021-10-01T12:13:16.292Z“,“isRepeatable“:false,“resultCode“:0,“state“:6,“transactionId“: “f4e7c060-22b0-11ec-b864-79093d9de1d1“, “updated“: “2021-10-01T12:13:30.320Z”}
//Pasul 4 —-Obține detalii—-
SOLICITARE: getTransactionDetail=f4e7c060-22b0-11ec-b864-79093d9de1d1
//Verifică câmpul de rezultat pentru a stabili dacă tranzacția este ACCEPTATĂ sau RESPINSĂ
RĂSPUNS: transactionResultEntity={„amount“: “700“, “batchNumber“: “103“, “cardNumber“: “**** ****“ **** 1325“, “currencyCode“: “CZK“, “date“: “211001“, “merchantID“: “000000451120025“, “responseMessage: “APPROVED“, “result“: 0, “sequenceNumber“: “001103001“, “terminalID“: “00490646“, “time“: “141324“, „tipAmount: „0”, „transacitonType”: 1, „trasanctionID”: „f4e7c060-22b0-11ec-b864-79093d9de1d1”}
Solicitare – Tranzacție de vânzare – Respingere
REGISTRU
SOLICITARE: registerV2={„clientID“:“d155b771-c314-11eb-9541-8b727b582c20”}
RĂSPUNS: transactionRegisterV2Result{„clientID“:“d155b771-c314-11eb-9541-8b727b582c20″,“resultCode“:0,“transactionId: “77b13490-22c0-11ec-b864-79093d9de1d1“}
–VÂNZARE RESPINSĂ
SOLICITARE: startTransV2={„amount“:70000,“clientID“:“d155b771-c314-11eb-9541-8b727b582c20“,“printByPaymentApp“: true, “redirectPackageName“: “com.globalpayments.atom“, “tipAmount: 0, “transactionID“: “77b13490-22c0-11ec-b864-79093d9de1d1“, “transactionType”: 1}
RĂSPUNS: transactionV2Result={„clientID“:“d155b771-c314-11eb-9541-8b727b582c20“, “error„:{“errorCode“: “1-000“, “exception“: “PaymentDeclinedGPEException(code=076, userException=true)“, “supportID“: “dQB36f“}, “merchantID“: “000000451120025“, “result“: -4, “terminalID“: “00490646”, „transactionID”: „77b13490-22c0-11ec-b864-79093d9de1d1”}
–STATE
SOLICITARE: getTransactionState=77b13490-22c0-11ec-b864-79093d9de1d1
RESPONSE: onStateResult={„created“:“2021-10-01T14:04:18.154Z“,“isRepeatable“:false,“resultCode“:0,“state“:6,“transactionId“: “77b13490-22c0-11ec-b864-79093d9de1d1“, “updated“: “2021-10-01T14:04:38.511Z”}
–DETALII
SOLICITARE: getTransactionDetail=77b13490-22c0-11ec-b864-79093d9de1d1
RĂSPUNS: transactionResultEntity={„amount“: “70000“, “batchNumber“: “104“, “cardNumber“: “**** ****“ **** 1325“, “currencyCode“: “CZK“, “date“: “211001“, “merchantID“: “000000451120025“, “responseMessage“: “076“, “result“: -4, “sequenceNumber“: “001104003“, “terminalID“: “00490646“, “time“: „160436”, „tipAmount: „0”, „transacitonType”: 1, „trasanctionID”: „77b13490-22c0-11ec-b864-79093d9de1d1”}
Solicitare – Anulare tranzacție – Primită
ÎNREGISTRARE PENTRU ANULARE ACCEPTATĂ
SOLICITARE: registerV2={„clientID“:“d155b771-c314-11eb-9541-8b727b582c20”}
RĂSPUNS: transactionRegisterV2Result{„clientID“:“d155b771-c314-11eb-9541-8b727b582c20″,“resultCode“:0,“transactionId: “1b2220e0-22b1-11ec-b864-79093d9de1d1“}
–ACCEPTAT NUL
SOLICITARE: startTransV2={„cancelMode“:2,“clientID“:“d155b771-c314-11eb-9541-8b727b582c20“,“originTransactionID“: “f4e7c060-22b0-11ec-b864-79093d9de1d1“, “printByPaymentApp“: true, “redirectPackageName“: “com.globalpayments.atom“, “tipAmount“: 0, “transactionID“: “1b2220e0-22b1-11ec-b864-79093d9de1d1”, „transactionType”: 2}
–SONDAJE LA NIVEL NAȚIONAL (Din motive de lizibilitate, este afișat un singur SONDAJ)
SOLICITARE: getTransactionState=1b2220e0-22b1-11ec-b864-79093d9de1d1
RESPONSE: onStateResult={„created““2021-10-01T12:14:20.416Z“,“isRepeatable“:false,“resultCode“:0,“state“:6,“transactionId“: “1b2220e0-22b1-11ec-b864-79093d9de1d1“, “updated“: “2021-10-01T12:14:25.407Z”}
–DETALII
SOLICITARE: getTransactionDetail=1b2220e0-22b1-11ec-b864-79093d9de1d1
RĂSPUNS: transactionResultEntity={„amount“:“700“,“batchNumber“:“20211001“,“currencyCode“:“CZK“,“date“:“211001“,“merchantID: “000000451120025“, “responseMessage“: “APPROVED“, “result“: 0, “terminalID“: “00490646“, “time“: “141424“, “tipAmount: “null“, “transacitonType”: 2, „trasanctionID”: „1b2220e0-22b1-11ec-b864-79093d9de1d1”}
Solicitare – Termen limită – Primită
ÎNSCRIE-TE PENTRU LOT
SOLICITARE: registerV2={„clientID“:“d155b771-c314-11eb-9541-8b727b582c20”}
RĂSPUNS: transactionRegisterV2Result{„clientID“:“d155b771-c314-11eb-9541-8b727b582c20″,“resultCode“:0,“transactionId: “24fe8ae0-22b1-11ec-b864-79093d9de1d1“}
–LOT ACCEPTAT
SOLICITARE: startTransV2={„clientID“:“d155b771-c314-11eb-9541-8b727b582c20″,“printByPaymentApp“: “true“, “redirectPackageName“: “com.globalpayments.atom“, “tipAmount: 0, “transactionID“: “24fe8ae0-22b1-11ec-b864-79093d9de1d1“, „transactionType”: 4}
–SONDAJE LA NIVEL NAȚIONAL (Din motive de lizibilitate, este afișat un singur SONDAJ)
SOLICITARE: getTransactionState=24fe8ae0-22b1-11ec-b864-79093d9de1d1
RESPONSE: onStateResult={„created“:“2021-10-01T12:14:36.953Z“,“isRepeatable“:false,“resultCode“:0,“state“:6,“transactionId“: “24fe8ae0-22b1-11ec-b864-79093d9de1d1“, “updated“: “2021-10-01T12:14:42.118Z”}
–DETALII
SOLICITARE: getTransactionDetail=24fe8ae0-22b1-11ec-b864-79093d9de1d1
RĂSPUNS: transactionResultEntity={„merchantID“:“000000451120025″,“result“:-3,“terminalID“:“00490646″,“transacitonType: “0“, “trasanctionID“: „24fe8ae0-22b1-11ec-b864-79093d9de1d1”}
