POS25
  • πŸ‘‹Welcome to POS25
  • Features
    • πŸ–₯️Offline payment
      • πŸ”³QR code scanning
      • ✨NFC tap to pay
      • πŸ—ƒοΈCard
  • ☁️Online payment
    • πŸ›…Checkout page
    • πŸ’³Card EMV acceptance
    • πŸ”³QR payment
  • Page
  • πŸ“’Contract Addresses
  • API Integration
    • πŸ“ͺAPI
    • 1. Get list chains support
    • 2. Get list of assets support
    • 3. Create link payment (Support QR code)
    • 4. NFC payment
  • SDK Integration
    • πŸ› οΈTypescript SDK
    • πŸ› οΈPython SDK
    • βš™οΈMobile SDK
    • πŸ› οΈHow to use SDK
    • πŸ•ΈοΈChange log
  • Reference documents
    • πŸ–₯️For Developers
  • Terms
  • Privacy
Powered by GitBook
On this page
  1. API Integration

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

Name
Type
Description

Authorization*

String

Bearer <Token>

Request Body

Name
Type
Description

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": ""
}

{
    "data": {},
    "errors": [
        {
            "user": "Invalid"
        }
    ],
    "msg": "Forbidden",
    "error_code": "E_FORBIDDEN"
}

{
    "data": {},
    "errors": [
        {
            "serial_number": [
                "Missing data for required field."
            ],
            "fee_value": [
                "Missing data for required field."
            ]
        }
    ],
    "msg": "Invalid data",
    "error_code": "E_BAD_REQUEST"
}

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"
}
'
Previous3. Create link payment (Support QR code)NextTypescript SDK

Last updated 1 year ago