Aller au contenu principal

Paiement par numéro de carte

Initialisation d'un paiement via carte virtuelle.

Exemple de requête

curl --location 'https://app.heth.me/api/v1/transactions' \
--header 'Content-Type: application/json' \
--header 'x-api-key: 440944de-e5a4-6aab-9c57-3bf2e7282c64' \
--data '{
"params": {
"amount": 10000000000000000,
"currency": "USDT",
"env": "prod",
"type": "payment",
"route": "hot_hot_ETH",
"money_storage": {
"network": "ETH",
"type": "bank_card",
"currency": "USDT",
"cardnumber": "9981050281497239",
"cvv": "229",
"exp_month": "10",
"exp_year": "2026",
"cardholder": "John Doe"
},
"description": "Paiement",
"txid": "hot_hot_ETH"
}
}'
ChampDescriptionTypeExemple
amountMontant de la transaction (en unités mineures)Nombre10000000000000000000
currencyDevise de la transaction (par défaut USDT)StringUSDT
envEnvironnement de transaction (par défaut prod)Stringprod
typeType de transaction (dans ce cas payment)Stringpayment
routeRoute de transaction (doit correspondre au mappage de route)Stringhot_hot_ETH
money_storageInstrument carteObjet
>networkRéseau blockchain (TRX ou ETH)StringETH
>typeType d'instrument (bank_card)Stringbank_card
>currencyDevise de l'instrument (USDT par défaut)StringUSDT
>cardnumberNuméro de carte virtuelleString9981050281497239
>cvvCVV virtuelString229
>exp_monthMois d'expirationString10
>exp_yearAnnée d'expirationString2026
>cardholderTitulaireStringJohn Doe
descriptionDescription de la transactionStringPaiement
txidIdentifiant de transactionStringhot_hot_ETH