MPTransactionProcess *process = [transactionProvider startTransactionWithParameters:transactionParameters accessoryParameters:accessoryParameters registered:[...] statusChanged:[...] actionRequired:[...] completed:^(MPTransactionProcess *process, MPTransaction *transaction, MPTransactionProcessDetails *details) { MPReceipt *merchantReceipt = transaction.merchantReceipt; MPReceipt *customerReceipt = transaction.customerReceipt; }];
TransactionProcess paymentProcess = transactionProvider.startTransaction(transactionParameters, accessoryParameters, new TransactionProcessWithRegistrationListener() { @Override public void onCompleted(TransactionProcess process, Transaction transaction, TransactionProcessDetails processDetails) { Receipt customerReceipt = transaction.getCustomerReceipt(); Receipt merchantReceipt = transaction.getMerchantReceipt(); } } );
{ "status": "ok" "data": { "merchantDetails": [ { "label": null, "key": "MerchantDetailsPublicName", "value": "Company Name" }, { "label": null, "key": "MerchantDetailsAddress", "value": "Street 42b" }, { "label": null, "key": "MerchantDetailsZip", "value": "12345" }, { "label": null, "key": "MerchantDetailsCity", "value": "City" }, { "label": null, "key": "MerchantDetailsCountry", "value": "Germany" }, { "label": null, "key": "MerchantDetailsContact", "value": "+49 (170) 1234567" }, { "label": null, "key": "MerchantDetailsAdditionalInformation", "value": "Tax ID: 1234567890" } ], "receiptType": { "key": "ReceiptType", "label": "Receipt Type", "value": "Merchant Receipt" }, "transactionType": { "key": "TransactionType", "label": "Type", "value": "Payment" }, "date": { "key": "Date", "label": "Date", "value": "16.7.2013" }, "time": { "key": "Time", "label": "Time", "value": "15:38:14" }, "identifier": { "key": "Identifier", "label": "PWID", "value": "#{#transactionIdentifier}" }, "statusText": { "key": "StatusText", "label": "Information", "value": "Please retain receipt!" }, "amountAndCurrency": { "key": "AmountAndCurrency", "label": "Amount", "value": "5.20 €" }, "subject": { "key": "Subject", "label": "Description", "value": "MyUsage" }, "paymentDetails": [ { "key": "PaymentDetailsSchemeOrLabel", "label": "Card", "value": "Visa Credit" }, { "key": "PaymentDetailsMaskedAccount", "label": "Account", "value": "1234" }, { "key": "PaymentDetailsEMVApplicationID", "label": "AID", "value": "A0000000041010" }, { "key": "PaymentDetailsSource", "label": "Entry Mode", "value": "Magstripe" }, { "key": "PaymentDetailsPanSequenceNumber", "label": "PAN Sequence Number", "value": "1" } ], "clearingDetails": [ { "key": "ClearingDetailsTransactionIdentifier", "label": "Transaction", "value": "*" }, { "key": "ClearingDetailsAuthorizationCode", "label": "Authorization", "value": "*/*" }, { "key": "ClearingDetailsMerchantId", "label": "Merchant ID", "value": "*" }, { "key": "ClearingDetailsTerminalId", "label": "Terminal ID", "value": "*" } ], "signatureLineRequired" : false }, }
Supported locale
|
en-*(e.g. en-US, en-GB) |
de-* (e.g. de-DE, de-AT, de-CH) |
fr-* (e.g. fr-FR, fr-CH, fr-BE) |
it-* (e.g. it-IT, it-CH) |
nl-* (e.g. nl-NL, nl-BE) |
pt-* (e.g. pt-PT) |
es-* (e.g. es-ES) |