---
page_title: NFC Card Reader
product: EC Headless
platform: Android
page_source: https://juspay.io/in/docs/ec-headless/android/additional-features/nfc-card-reader
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/ec-headless/llms.txt
---


# Near-field communication




### **Description -** 



Provide better user experience for card payments by seamlessly reading the card details using Near-field communication (NFC). Below are the benefits - 

1. **Dynamic UX -** Checks device support and user behaviour for meaningful prompts
2. **Better coverage**  - All recent cards and devices have support

![Image](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/ec-headless/ezgif.com-video-to-gif%20(2)%20copy.gif)




### **Pre-requisites** 



1. Updates Juspay Android SDK to **v2.1.24 or higher.**
2. Update Juspay micro-apps to latest stable versions - Reach out to Juspay SPOC for this.


### **Step 1 - Check NFC Support** 



Request to Juspay SDK -


#### JSON Code Snippet:

```json
curl --location --request POST 'https://api.juspay.in/session' \
--header 'x-merchantid: yourMerchantId' \
--header 'Authorization: Basic base64encodedkey==' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount":"10.00",
"order_id":"yourUniqueOrderId",
"customer_id":"dummyCustId",
"customer_phone":"9876543210",
"customer_email":"dummyemail@gmail.com",
"payment_page_client_id":"<YOUR_CLIENT_ID>",
"action":"paymentPage"
}'

```


Possible response - 


#### JSON Code Snippet:

```json
curl --location --request POST 'https://api.juspay.in/session' \
--header 'x-merchantid: yourMerchantId' \
--header 'Authorization: Basic base64encodedkey==' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount":"10.00",
"order_id":"yourUniqueOrderId",
"customer_id":"dummyCustId",
"customer_phone":"9876543210",
"customer_email":"dummyemail@gmail.com",
"payment_page_client_id":"<YOUR_CLIENT_ID>",
"action":"paymentPage"
}'

```



#### Shell Code Snippet:

```shell
curl --location --request POST 'https://api.juspay.in/session' \
--header 'x-merchantid: yourMerchantId' \
--header 'Authorization: Basic base64encodedkey==' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount":"10.00",
"order_id":"yourUniqueOrderId",
"customer_id":"dummyCustId",
"customer_phone":"9876543210",
"customer_email":"dummyemail@gmail.com",
"payment_page_client_id":"<YOUR_CLIENT_ID>",
"action":"paymentPage"
}'

```



#### Shell Code Snippet:

```shell
{"success":false,"message":"Failed to fetch snippet"}
```



### **Step 2 - Fetch NFC Data** 



Request to Juspay SDK -


#### Shell Code Snippet:

```shell
curl --location --request POST 'https://api.juspay.in/session' \
--header 'x-merchantid: yourMerchantId' \
--header 'Authorization: Basic base64encodedkey==' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount":"10.00",
"order_id":"yourUniqueOrderId",
"customer_id":"dummyCustId",
"customer_phone":"9876543210",
"customer_email":"dummyemail@gmail.com",
"payment_page_client_id":"<YOUR_CLIENT_ID>",
"action":"paymentPage"
}'

```


This request will also initiate the NFC read screen (Dark screen from video). By end of this screen, one of the below responses will be provided.

Possible responses - 


#### Shell Code Snippet:

```shell
{"success":false,"message":"Failed to fetch snippet"}
```



#### Shell Code Snippet:

```shell
curl --location --request POST 'https://api.juspay.in/session' \
--header 'x-merchantid: yourMerchantId' \
--header 'Authorization: Basic base64encodedkey==' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount":"10.00",
"order_id":"yourUniqueOrderId",
"customer_id":"dummyCustId",
"customer_phone":"9876543210",
"customer_email":"dummyemail@gmail.com",
"payment_page_client_id":"<YOUR_CLIENT_ID>",
"action":"paymentPage"
}'

```



#### Shell Code Snippet:

```shell
curl --location --request POST 'https://api.juspay.in/session' \
--header 'x-merchantid: yourMerchantId' \
--header 'Authorization: Basic base64encodedkey==' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount":"10.00",
"order_id":"yourUniqueOrderId",
"customer_id":"dummyCustId",
"customer_phone":"9876543210",
"customer_email":"dummyemail@gmail.com",
"payment_page_client_id":"<YOUR_CLIENT_ID>",
"action":"paymentPage"
}'

```



#### Shell Code Snippet:

```shell
{"success":false,"message":"Failed to fetch snippet"}
```


---

## See Also

- [PayPal](https://juspay.io/in/docs/ec-headless/android/additional-features/paypal)
- [Tata Neu Wallet](https://juspay.io/in/docs/ec-headless/android/additional-features/tata-neu-wallet)
