ISO8583 ATM POS Crypto API integration with exchanges like Coinbase or Binance
Posted on 24th Feb 2021 18596 views
The payments converter has the capability to convert any payment messages to API requests to exchanges.
Integrate crypto payments or crypto purchase from within your system, ATM or Host for Bitcoin, Ether, and many other cryptocurencies.
Example connection flow from ISO8583 to Coinbase.com
As an example, we want to buy 50 USD worth of Bitcoin.
We can automatically check the price at the deired Exchange or several exchanges for the best price.
GET /products/BTC-USD/ticker
Check with the bank for the available funds to purchase.
neapay ISO8583 converter connection to the bank - exchange of messages for Authorization of funds - 50 USD
26-05-21 10:29:04:589:--------------------------------------------------***--------------------------------------------------
26-05-21 10:29:04:590:ACQ: Test case: ISO8583-93-02-Authorization
26-05-21 10:29:04:602:ACQ: MessageType :0200
26-05-21 10:29:04:603:ACQ: Bitmap :F23C46D128E0B0000000000000000001
26-05-21 10:29:04:610:ACQ: F02_PAN :9876500000306082
26-05-21 10:29:04:611:ACQ: F03_ProcessingCode :010000
26-05-21 10:29:04:613:ACQ: F04_AmountTransaction :000000005000
26-05-21 10:29:04:613:ACQ: F07_TransmissionDateTime :0526102904
26-05-21 10:29:04:613:ACQ: F11_SystemTraceAuditNumber :005812
26-05-21 10:29:04:613:ACQ: F12_DateTimeLocalTransaction :102904
26-05-21 10:29:04:613:ACQ: F13_DateLocalTxn :0526
26-05-21 10:29:04:613:ACQ: F14_DateExpiration :3012
26-05-21 10:29:04:613:ACQ: F18_MerchantType :5961
26-05-21 10:29:04:613:ACQ: F22_POSDataCode :020
26-05-21 10:29:04:613:ACQ: F23_CardSequenceNumber :000
26-05-21 10:29:04:614:ACQ: F25_MessageReasonCode :00
26-05-21 10:29:04:614:ACQ: F26_CardAcceptorBusinessCode :53
26-05-21 10:29:04:614:ACQ: F28_DateReconciliation :000000000
26-05-21 10:29:04:615:ACQ: F32_AcquiringInstitutionIdenti:27610000001
26-05-21 10:29:04:615:ACQ: F35_Track2Data :9876500000306082=30121011123123000
26-05-21 10:29:04:616:ACQ: F37_RetrievalReferenceNumber :29043885
26-05-21 10:29:04:616:ACQ: F41_CardAcceptorTerminalIdenti:20390059
26-05-21 10:29:04:616:ACQ: F42_CardAcceptorIdentification:111120000012
26-05-21 10:29:04:616:ACQ: F43_CardAcceptorNameLocation :contact@neaPay.comAlmere-AmsterdamNeth
26-05-21 10:29:04:617:ACQ: F49_CurrencyCodeTransaction :840
26-05-21 10:29:04:617:ACQ: F51_CurrencyCodeCardholderBill:840
26-05-21 10:29:04:617:ACQ: F52_PINData :FEE8CA6A604F09F0
26-05-21 10:29:04:618:ACQ: F128_MAC :7902699be42c8a8e46fbbb4501726517e86b22c56a189f7625a6da49081b2451
26-05-21 10:29:04:618:--------------------------------------------------***--------------------------------------------------
26-05-21 10:29:05:645:--------------------------------------------------***--------------------------------------------------
26-05-21 10:29:05:646:ACQ: Message Received
26-05-21 10:29:05:647:ACQ: MessageType :0210
26-05-21 10:29:05:647:ACQ: Bitmap :723C46412EC0A000
26-05-21 10:29:05:648:ACQ: F02_PAN :9876500000306082
26-05-21 10:29:05:648:ACQ: F03_ProcessingCode :010000
26-05-21 10:29:05:648:ACQ: F04_AmountTransaction :000000005000
26-05-21 10:29:05:648:ACQ: F07_TransmissionDateTime :0526102905
26-05-21 10:29:05:649:ACQ: F11_SystemTraceAuditNumber :005812
26-05-21 10:29:05:649:ACQ: F12_DateTimeLocalTransaction :102904
26-05-21 10:29:05:649:ACQ: F13_DateLocalTxn :0526
26-05-21 10:29:05:649:ACQ: F14_DateExpiration :3012
26-05-21 10:29:05:650:ACQ: F18_MerchantType :5961
26-05-21 10:29:05:650:ACQ: F22_POSDataCode :020
26-05-21 10:29:05:650:ACQ: F23_CardSequenceNumber :000
26-05-21 10:29:05:650:ACQ: F26_CardAcceptorBusinessCode :53
26-05-21 10:29:05:650:ACQ: F32_AcquiringInstitutionIdenti:27610000001
26-05-21 10:29:05:651:ACQ: F35_Track2Data :9876500000306082=30121011123123000
26-05-21 10:29:05:651:ACQ: F37_RetrievalReferenceNumber :290438850000
26-05-21 10:29:05:651:ACQ: F38_ApprovalCode :308668
26-05-21 10:29:05:651:ACQ: F39_ActionCode :00
26-05-21 10:29:05:651:ACQ: F41_CardAcceptorTerminalIdenti:20390059
26-05-21 10:29:05:652:ACQ: F42_CardAcceptorIdentification:111120000012000
26-05-21 10:29:05:652:ACQ: F49_CurrencyCodeTransaction :840
26-05-21 10:29:05:652:ACQ: F51_CurrencyCodeCardholderBill:840
26-05-21 10:29:05:653:--------------------------------------------------***--------------------------------------------------
The currency can be detected directly via the Currency Codes mapping list. 840 is USD
https://neapay.com/post/iso8583-message-iso4217-currency-codes-field-49-field-52_42.html
Call to Coinbase.com Crypto Exchange to market buy Bitcoin.
{
"size": "0.01",
"price": "0.100",
"side": "buy",
"product_id": "BTC-USD"
}
Coinbase.com response
{
"id": "d0c5340b-6d6c-49d9-b567-48c4bfca13d2",
"price": "0.10000000",
"size": "0.01000000",
"product_id": "BTC-USD",
"side": "buy",
"stp": "dc",
"type": "limit",
"time_in_force": "GTC",
"post_only": false,
"created_at": "2016-12-08T20:02:28.53864Z",
"fill_fees": "0.0000000000000000",
"filled_size": "0.00000000",
"executed_value": "0.0000000000000000",
"status": "pending",
"settled": false
}
Then we transfer the crypto Bitcoin to the wallet of choice or leave it on user's account on Coinbase.com