question

dev-1 avatar image
dev-1 asked mathmonster commented

find out the card type(visa ,master etc.)

Dear Team

I am trying to find out the card type(visa ,master etc.) while using payment made in the order by the customer.

I am using to tenders to find out type of payment but not show the card type.

Please help us to resolving this problem.

Thanks & Regard Dev Brat Tripathi

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

sam avatar image
sam Deactivated answered mathmonster commented

The Payment object has a CardTransaction object which has the CardType.

Payment pay = data.getExtras().getParcelable(Intents.EXTRA_PAYMENT);
//Returns MC, Visa, etc..
pay.getCardTransaction().getCardType();
2 comments
10 |2000

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

sam avatar image sam commented ·

If you're using REST API:

GET /v3/merchants/{mid}/payments/?expand=cardTransaction
0 Likes 0 ·
mathmonster avatar image mathmonster commented ·

I see that cardTransaction also has token field (and vaultedCard.token field), can this token be used to make subsequent payments via /pay api?

0 Likes 0 ·

Welcome to the
Clover Developer Community