Wir erinnern daran
Für DEV-Umgebungen lautet der Paketname com.globalpayments.atom.dev und für Produktionsumgebungen com.globalpayments.atom
Anfrage - Verkaufstransaktion - Akzeptiert
// Step 1 —-Register—- (with clientID)
REQUEST: registerV2={“clientID”:”d155b771-c314-11eb-9541-8b727b582c20″}
RESPONSE: transactionRegisterV2Result{“clientID”:”d155b771-c314-11eb-9541-8b727b582c20″,”resultCode”:0,”transactionId”:”f4e7c060-22b0-11ec-b864-79093d9de1d1″}
//Step 2 —-Start—- (SALE with clientID, amount 7, using transactionID from previous Register method) Application GP TOM is opened, PLEASE DO NOT USE RESPONSE FROM THIS ENDPOINT AND START POLLING STATE INSTEAD
REQUEST: 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}
//Step 3 —-Polling State—- (using transactionID from previous Register method until state is marked as completed – please see states from chapter 3)
REQUEST: getTransactionState=f4e7c060-22b0-11ec-b864-79093d9de1d1
//State is not completed – continue polling
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”}
//Still polling
REQUEST: getTransactionState=f4e7c060-22b0-11ec-b864-79093d9de1d1
//State is marked as completed – stop polling and continue to Step 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”}
//Step 4 —-Get Detail—-
REQUEST: getTransactionDetail=f4e7c060-22b0-11ec-b864-79093d9de1d1
//Check result field to determine whether transaction is ACCEPTED or DECLINED
RESPONSE: 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″}
Anfrage - Verkaufstransaktion - Abgelehnt
REGISTER
REQUEST: registerV2={“clientID”:”d155b771-c314-11eb-9541-8b727b582c20″}
RESPONSE: transactionRegisterV2Result{“clientID”:”d155b771-c314-11eb-9541-8b727b582c20″,”resultCode”:0,”transactionId”:”77b13490-22c0-11ec-b864-79093d9de1d1″}
–DECLINED SALE
REQUEST: 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}
RESPONSE: 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
REQUEST: 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”}
–DETAIL
REQUEST: getTransactionDetail=77b13490-22c0-11ec-b864-79093d9de1d1
RESPONSE: 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″}
Anfrage - Transaktion abbrechen - Akzeptiert
REGISTER FOR ACCEPTED VOID
REQUEST: registerV2={“clientID”:”d155b771-c314-11eb-9541-8b727b582c20″}
RESPONSE: transactionRegisterV2Result{“clientID”:”d155b771-c314-11eb-9541-8b727b582c20″,”resultCode”:0,”transactionId”:”1b2220e0-22b1-11ec-b864-79093d9de1d1″}
–ACCEPTED VOID
REQUEST: 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}
–STATE POLLING (Only one POLL is shown for readability)
REQUEST: 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”}
–DETAIL
REQUEST: getTransactionDetail=1b2220e0-22b1-11ec-b864-79093d9de1d1
RESPONSE: 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″}
Anfrage – Frist – Akzeptiert
REGISTER FOR BATCH
REQUEST: registerV2={“clientID”:”d155b771-c314-11eb-9541-8b727b582c20″}
RESPONSE: transactionRegisterV2Result{“clientID”:”d155b771-c314-11eb-9541-8b727b582c20″,”resultCode”:0,”transactionId”:”24fe8ae0-22b1-11ec-b864-79093d9de1d1″}
–ACCEPTED BATCH
REQUEST: startTransV2={“clientID”:”d155b771-c314-11eb-9541-8b727b582c20″,”printByPaymentApp”:true,”redirectPackageName”:”com.globalpayments.atom”,”tipAmount”:0,”transactionID”:”24fe8ae0-22b1-11ec-b864-79093d9de1d1″,”transactionType”:4}
–STATE POLLING (Only one POLL is shown for readability)
REQUEST: 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”}
–DETAIL
REQUEST: getTransactionDetail=24fe8ae0-22b1-11ec-b864-79093d9de1d1
RESPONSE: transactionResultEntity={“merchantID”:”000000451120025″,”result”:-3,”terminalID”:”00490646″,”transacitonType”:0,”trasanctionID”:”24fe8ae0-22b1-11ec-b864-79093d9de1d1″}