4. NFC payment

Integrate NFC payment

POST https://api.pos25.app/v1/cf-payment/generate_nfc

The API performs the above payment using NFC

*NOTE: Currently, payment by NFC is only supported on TRAM wallet

Headers

NameTypeDescription

Authorization*

String

Bearer <Token>

Request Body

NameTypeDescription

order_id*

String

Order id of transaction (UNIQUE)

amount*

String

Transaction amount

token*

String

The token will be created by TRAM wallet to request a transaction and sent to the POS machine via NFC

serial_number*

String

serrial number of POS device

{
    "data": "success",
    "errors": [],
    "msg": "",
    "error_code": ""
}

Let's see how you can call this method either through Curl or Python:

curl --location 'https://api.pos25.app/v1/cf-payment/generate_nfc' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 8d1300ea96d3cca64918f871318864c6' \
--data '{
    "token": "10f932e3-b85a-4c23-8a88-f830e4bbfe06",
    "order_id": "92108",
    "amount": "0.01",
    "serial_number": "00024500710"
}
'

Last updated