Email Receipts

After the transaction has been completed, you have to enable the merchant to send a receipt to the shopper. Through the SDK, you can easily send a ready-made electronic receipt via email.

If you support refunds, you also have to be able to send receipts for successful refunds.

Send receipt via email

Call sendCustomerReceiptForTransactionIdentifier with the transactionIdentifier of the transaction for which you want to send out a receipt:

[transactionProvider.transactionModule sendCustomerReceiptForTransactionIdentifier:@"transactionIdentifer"
													emailAddress:@"shopper@provider.com"
													   completed:^(NSString *transactionIdentifier,
																   NSString *emailAddress,
																   NSError *error) {
														   if(!error) {
															   // Receipt successfully sent!
														   }
													   }];

After the transaction has been completed, you have to enable the merchant to send a receipt to the shopper. Through the SDK, you can easily send a ready-made electronic receipt via email.

If you support refunds, you also have to be able to send receipts for successful refunds.

Send receipt via email

Call sendCustomerReceiptForTransaction with the transactionIdentifier of the transaction for which you want to send out a receipt:

transactionProvider.getTransactionModule().sendCustomerReceiptForTransaction(
		"transactionIdentifer",
		"shopper@provider.com",
		new SendReceiptListener() {
			@Override
			public void onCompleted(String transactionIdentifier, MposError error) {

				if (error != null) {
					// Receipt successfully sent!
					System.out.println("Sent!");
				}
			}
		}
);

Can we help you?

If you cannot find your answer, contact us and we'll get in touch with you soon.

© Copyright 2017 Payworks GmbH. Legal.