Loyalty & Bonus Cards

In addition to processing transactions with payment cards such as Visa and MasterCard, the TransactionProvider also makes it easy for you to read the card number (PAN) from magstripe-based Loyalty or Bonus Cards.

In order to ensure the highest security standards, understand however that you never will be able to read the PAN of a payment card. Instead, the BIN (i.e. the first six digits) of your loyalty or bonus card scheme must specifically be white-listed by us and never overlap with the BINs used by payment cards.

 

Get in touch with your account manager to understand if this feature will work with your specific loyalty or bonus card scheme.

Read a Magstripe Loyalty or Bonus Card

Please be aware that reading of Loyalty or Bonus Cards is currently only available on the Miura card readers.

Call readCard on your TransactionProvider and implement the ReadCardProcessListener. After a successful swipe, CardDetails will contain the unencrypted cardNumber and raw track1, track2 and track3 data.

transactionProvider.readCard(accessoryParameters, new ReadCardProcessListener() {
	@Override
	public void onCompleted(CardProcess cardProcess, CardProcessDetails cardProcessDetails) {

		if(cardProcessDetails.getState() == CardProcessDetailsState.COMPLETED) {
			
			CardDetails details = cardProcess.getCardDetails();

			if(details.getMaskedCardNumber() != null) {
				Log.d("mpos", "MaskedCardNumber: " + details.getMaskedCardNumber());
			}

			if(details.getCardNumber() != null) {
				Log.d("mpos", "CardNumber: " + details.getCardNumber());
			}

			if(details.getTrack1() != null) {
				Log.d("mpos", "Track1: " + details.getTrack1());
			}

			if(details.getTrack2() != null) {
				Log.d("mpos", "Track2: " + details.getTrack2());
			}

			if(details.getTrack3() != null) {
				Log.d("mpos", "Track3: " + details.getTrack3());
			}
		}
	}

	@Override
	public void onStatusChanged(CardProcess cardProcess, CardProcessDetails cardProcessDetails) {
		Log.d("mpos", "status changed: " + Arrays.toString(cardProcessDetails.getInformation()));
	}
});

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.