question

devendra avatar image
devendra asked chanel Deactivated edited

Remote Pay Java - CC or Debit card - How to identify from response

Hi,
How can we identify in sale response if its a credit card or Debit card?
Thanks.
Sale
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

chanel avatar image
chanel Deactivated answered chanel Deactivated edited
saleResponse.getPayment().getTender().getLabel();

This will give you one of a number of constants that represent the type of tender used in the payment.
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community