{ "tag": "9a8ef354-81c8-4c30-adc7-3c9958bf9d4f", // Generate a unique tag for each REQUEST you send "type": "LOGIN_MERCHANT_REQUEST", "loginMerchantRequest": { "providerMode": "MOCK|JUNGLE|TEST|TEST_FIXED|LIVE|LIVE_FIXED", "merchantIdentifier": "your-merchant-identifier", "merchantSecret": "your-merchant-secret" } }
{ "tag": "9a8ef354-81c8-4c30-adc7-3c9958bf9d4f", "type": "LOGIN_MERCHANT_RESPONSE", "status": "OK", "loginMerchantResponse": { "information": { "location": "3rd Room" }, "devices": [ { "name": "USB Reader", "identifier": "usbReader", "resource": "devices/usbReader", "type": "MOCK|MIURA|VERIFONE", "comlink": "MOCK|WIFI|USB|BLUETOOTH" } ] } }
{ "tag": "c8d08dcf-e1c6-4736-a7a6-30aee58d7a12", "type": "EXECUTE_TRANSACTION_REQUEST", "resource": "devices/usbReader", "executeTransactionRequest": { "mode": "ONLINE | OFFLINE", "transactionParameters": { "amount": 5.00, "currency": <Currency>, "autoCapture": true | false, "type": "CHARGE", "subject": "My Subject", "customIdentifier": "my-custom-identifier", "statementDescriptor": "My Statement Descriptor", "applicationFee": 1.00, "includedTipAmount": 1.00, "metadata": { "my": "metadata" } }, "sessionIdentifier": "62c155b6-6f7e-47e1-83b6-b13a1e4e2303", "processParameters": { "steps": { "askForTip | askForTotalAmount": { "suggestedAmount": 2.00, "maxTipAmount": 3.0, "showAddTipConfirmationScreen": true | false, "showTotalAmountConfirmationScreen": true | false } } } } }
{ "tag": "c8d08dcf-e1c6-4736-a7a6-30aee58d7a12", "type": "EXECUTE_TRANSACTION_UPDATE", "resource": "devices/usbReader", "executeTransactionUpdate": { "state": <TransactionProcessDetailsState>, "stateDetails": <TransactionProcessDetailsStateDetails>, "information": ["Processing", "payment..."], "abortable": true|false, "transaction": { "amount": 5.00, "mode": "ONLINE | OFFLINE", "currency": <Currency>, "type": "CHARGE", "details": { "applicationFee": 1.00, "includedTipAmount": 1.00, "metadata": { "my": "data" } } "subject": "My Subject", "statementDescriptor": "My Statement Descriptor", "status": <TransactionStatus>, "identifier": "7e2fc2585cd24f648d96760f56fba26c", "referencedTransactionIdentifier": null, "customIdentifier": "my-custom-identifier" } } }
{ "tag": "c8d08dcf-e1c6-4736-a7a6-30aee58d7a12", "type": "EXECUTE_TRANSACTION_ACTION", "resource": "devices/usbReader", "executeTransactionAction": { "type": "SIGNATURE" } }
{ "tag": "c8d08dcf-e1c6-4736-a7a6-30aee58d7a12", "type": "EXECUTE_TRANSACTION_RESPONSE", "resource": "devices/usbReader", "executeTransactionResponse": { "state": <TransactionProcessDetailsState>, "stateDetails": <TransactionProcessDetailsStateDetails>, "transaction": { "amount": 5.00, "mode": "ONLINE | OFFLINE", "currency": <Currency>, "type": <TransactionType>, "details": { "applicationFee": 1.00, "includedTipAmount": 1.00, "metadata": { "my": "data" } } "subject": "My Subject", "statementDescriptor": "My Statement Descriptor", "status": <TransactionStatus>, "identifier": "7e2fc2585cd24f648d96760f56fba26c", "referencedTransactionIdentifier": null, "createdTimestamp": 1464009191, "customIdentifier": "myIdentifier", "captured": true|false, "paymentDetails": { "scheme": <PaymentDetailsScheme>, "source": <PaymentDetailsSource>, "customerVerification": <PaymentDetailsCustomerVerification>, "maskedAccountNumber": "541333******0086" }, "refundDetails": { "status": <RefundDetailsStatus>, "process": [<RefundDetailsProcess>], "refundTransactions": [ { "identifier": "c735ec8ed1794e83882fba8c99ccd7d2", "createdTimestamp": 1464609191, "amount": 3.00, "currency": <Currency>, "type": "REFUND", "code": <RefundTransactionCode>, "status": <TransactionStatus>, "statusDetails": { "code": <TransactionStatusDetailsCodes>, "description": "A description", "developerDescription": "A developer description", } } ] }, "dccDetails": { "status": "APPLIED", "statusDetails": "APPLIED", "convertedAmount": 123.23, "convertedCurrency": "USD", "rate": 12.23, "markup": 2.14 }, "cardDetails": { "fingerprint": "a5e2188a-f676-11e5-b944-593944fafab9", "scheme": <PaymentDetailsScheme>, "maskedCardNumber": "541333******0086", "expiryMonth": 2, "expiryYear": 2017, "cardholderName": "John Doe" }, "shopperDetails": { "identifier": "c3d185cc-4c49-43d9-80f4-16a49a8660ec", "email": null }, "merchantReceipt": { // ... }, "customerReceipt": { // ... }, } } }
{ "tag": "7894cd51-ec04-4d38-994d-d735ceded39c", "referenceTag": "c8d08dcf-e1c6-4736-a7a6-30aee58d7a12", "type": "ABORT_OPERATION_REQUEST", "abortOperationRequest": { } }
{ "tag": "7894cd51-ec04-4d38-994d-d735ceded39c", "referenceTag": "c8d08dcf-e1c6-4736-a7a6-30aee58d7a12", "type": "ABORT_OPERATION_RESPONSE", "status": "OK", "abortOperationResponse": { "abortStatus": "NOTHING_TO_ABORT|CANNOT_BE_ABORTED|OK" } }
{ "tag": "bb12f6f1-27e5-499a-8a00-dbb436564ed6", "referenceTag": "c8d08dcf-e1c6-4736-a7a6-30aee58d7a12", "type": "SUBMIT_SIGNATURE_REQUEST", "submitSignatureRequest": { "type": "ON_RECEIPT|DIGITAL", "data": "YQ==" } }
If the general message status is{ "tag": "bb12f6f1-27e5-499a-8a00-dbb436564ed6", "referenceTag": "c8d08dcf-e1c6-4736-a7a6-30aee58d7a12", "type": "SUBMIT_SIGNATURE_RESPONSE", "status": "OK", "submitSignatureResponse": { } }
{ "tag": "9b59ef1d-51ec-4e19-bc2a-251c914f62c3", "type": "AMEND_TRANSACTION_REQUEST", "amendTransactionRequest": { "mode": "ONLINE | OFFLINE", "transactionParameters": { "type": "CAPTURE|REFUND", "referencedTransactionIdentifier": "97a293ca3b804d639d8552962e0e3522", "amount": 5.00, "currency": <Currency>, "subject": "My Subject", "customIdentifier": "my-custom-identifier", } } }
{ "tag": "9b59ef1d-51ec-4e19-bc2a-251c914f62c3", "type": "AMEND_TRANSACTION_UPDATE", "amendTransactionUpdate": { "state": <TransactionProcessDetailsState>, "stateDetails": <TransactionProcessDetailsStateDetails>, "information": ["Processing", "payment..."], "abortable": false, } }
{ "tag": "9b59ef1d-51ec-4e19-bc2a-251c914f62c3", "type": "AMEND_TRANSACTION_RESPONSE", "amendTransactionResponse": { "state": <TransactionProcessDetailsState>, "stateDetails": <TransactionProcessDetailsStateDetails>, "transaction": { "mode": "ONLINE | OFFLINE", "amount": 5.00, "currency": <Currency>, "type": <TransactionType>, "details": { "applicationFee": 1.00, "includedTipAmount": 1.00, "metadata": { "my": "data" } } "subject": "My Subject", "statementDescriptor": "My Statement Descriptor", "status": <TransactionStatus>, "identifier": "7e2fc2585cd24f648d96760f56fba26c", "referencedTransactionIdentifier": null, "createdTimestamp": 1464009191, "customIdentifier": "myIdentifier", "captured": true|false, "paymentDetails": { "scheme": <PaymentDetailsScheme>, "source": <PaymentDetailsSource>, "customerVerification": <PaymentDetailsCustomerVerification>, "maskedAccountNumber": "541333******0086" }, "refundDetails": { "status": <RefundDetailsStatus>, "process": [<RefundDetailsProcess>], "refundTransactions": [ { "identifier": "c735ec8ed1794e83882fba8c99ccd7d2", "createdTimestamp": 1464609191, "amount": 3.00, "currency": <Currency>, "type": "REFUND", "code": <RefundTransactionCode>, "status": <TransactionStatus>, "statusDetails": { "code": <TransactionStatusDetailsCodes>, "description": "A description", "developerDescription": "A developer description", } } ] } "cardDetails": { "fingerprint": "a5e2188a-f676-11e5-b944-593944fafab9", "scheme": <PaymentDetailsScheme>, "maskedCardNumber": "541333******0086", "expiryMonth": 2, "expiryYear": 2017, "cardholderName": "John Doe" }, "shopperDetails": { "identifier": "c3d185cc-4c49-43d9-80f4-16a49a8660ec", "email": null }, "merchantReceipt": { // ... }, "customerReceipt": { // ... } } } }
{ "tag": "3cd89f74-4c53-4c2d-b3a2-189d9a225385", "type": "GET_DEVICES_REQUEST", "getDevicesRequest": { } }
{ "tag": "3cd89f74-4c53-4c2d-b3a2-189d9a225385", "type": "GET_DEVICES_RESPONSE", "status": "OK", "getDevicesResponse": { "devices": [ { "name": "USB Reader", "identifier": "usbReader", "resource": "devices/usbReader", "type": "MOCK|MIURA|VERIFONE", "comlink": "MOCK|WIFI|USB|BLUETOOTH" } ] } }
{ "tag": "19da497e-088d-4578-ba85-b999a4c37332", "type": "GET_TRANSACTION_REQUEST", "getTransactionRequest": { "mode": "ONLINE | OFFLINE", "transactionIdentifier": "7e2fc2585cd24f648d96760f56fba26c" } }
{ "tag": "19da497e-088d-4578-ba85-b999a4c37332", "type": "GET_TRANSACTION_RESPONSE", "status": "OK", "getTransactionResponse": { "transaction": { "amount": 5.00, "currency": <Currency>, "mode": "ONLINE | OFFLINE", "type": <TransactionType>, "details": { "applicationFee": 1.00, "includedTipAmount": 1.00, "metadata": { "my": "data" } } "subject": "My Subject", "statementDescriptor": "My Statement Descriptor", "status": <TransactionStatus>, "identifier": "7e2fc2585cd24f648d96760f56fba26c", "referencedTransactionIdentifier": null, "customIdentifier": "my-custom-identifier", "merchantReceipt": { // ... }, "customerReceipt": { // ... } } } }
{ "tag": "b14e8223-4803-4434-9154-28d1335d8880", "type": "QUERY_TRANSACTIONS_REQUEST", "queryTransactionsRequest": { "mode": "ONLINE | OFFLINE", "filterParameters": { "customIdentifier": "my-custom-identifier" }, "includeReceipts": true|false, "offset": 0, "limit": 20 } }
{ "tag": "b14e8223-4803-4434-9154-28d1335d8880", "type": "QUERY_TRANSACTIONS_RESPONSE", "status": "OK", "queryTransactionsResponse": { "transactions": [ { "amount": 5.00, "currency": <Currency>, "mode": "ONLINE | OFFLINE", "type": <TransactionType>, "details": { "applicationFee": 1.00, "includedTipAmount": 1.00, "metadata": { "my": "data" } } "subject": "My Subject", "statementDescriptor": "My Statement Descriptor", "status": <TransactionStatus>, "identifier": "7e2fc2585cd24f648d96760f56fba26c", "referencedTransactionIdentifier": null, "customIdentifier": "my-custom-identifier", "merchantReceipt": { // ... }, "customerReceipt": { // ... } } ] } }