payment system, based on authorize.net
DESCRIPTION
Basic lesson about Payment System, based on RubyOnRails and Authorize.netTRANSCRIPT
![Page 1: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/1.jpg)
Payment System
Hamidullin Ruslan
based on Authorize.net
![Page 2: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/2.jpg)
How Credit Card Processing
Works?
![Page 3: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/3.jpg)
How Credit Card Processing Works
![Page 4: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/4.jpg)
How Credit Card Processing Works
![Page 5: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/5.jpg)
How Credit Card Processing Works
![Page 6: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/6.jpg)
How Credit Card Processing Works
![Page 7: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/7.jpg)
How Credit Card Processing Works
![Page 8: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/8.jpg)
How Credit Card Processing Works
![Page 9: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/9.jpg)
How Credit Card Processing Works
![Page 10: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/10.jpg)
How Credit Card Processing Works
![Page 11: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/11.jpg)
Rails, Active Merchant
and Authorize.net
![Page 12: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/12.jpg)
Rails, Active Merchant and Authorize.net
payment gateway
application
![Page 13: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/13.jpg)
Rails, Active Merchant and Authorize.net
authorize-net.gem
app payment gateway
![Page 14: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/14.jpg)
Rails, Active Merchant and Authorize.net
authorize-net.gem
ActiveMerchant
app payment gateway
![Page 15: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/15.jpg)
Rails, Active Merchant and Authorize.net
authorize-net.gem
ActiveMerchant
..остальные гемы
app payment gateway
![Page 16: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/16.jpg)
Rails, Active Merchant and Authorize.net
![Page 17: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/17.jpg)
Rails, Active Merchant and Authorize.net
![Page 18: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/18.jpg)
Rails, Active Merchant and Authorize.net
![Page 19: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/19.jpg)
SHOP Database structure
![Page 20: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/20.jpg)
SHOP Database structure
User
![Page 21: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/21.jpg)
SHOP Database structure
UserLot
![Page 22: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/22.jpg)
SHOP Database structure
UserLot
Payment
![Page 23: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/23.jpg)
SHOP Database structure
UserLot
Payment
Cart
![Page 24: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/24.jpg)
SHOP Database structure
UserLot
Payment
Cart
Category
![Page 25: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/25.jpg)
SHOP Database structure
![Page 26: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/26.jpg)
Postbackобновления
![Page 27: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/27.jpg)
Postback обновления
Userpayment gateway
web shop
![Page 28: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/28.jpg)
Postback обновления
payment gateway
web shop
postback - данные
Silent Post URL
![Page 29: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/29.jpg)
Postback обновления
payment gateway
web shop
postback - данные
SAVE!!!
Silent Post URL
![Page 30: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/30.jpg)
API
![Page 31: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/31.jpg)
Authorize.net API
web shop
![Page 32: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/32.jpg)
Authorize.net API
web shoppayment gateway
![Page 33: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/33.jpg)
Authorize.net API
web shoppayment gateway
ПЛАТЕЖИ
![Page 34: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/34.jpg)
Authorize.net API
web shoppayment gateway
ПЛАТЕЖИ
RESPONSE
![Page 35: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/35.jpg)
Authorize.net API
web shoppayment gateway
А как жевзять
СТАТИСТИКУ ?
![Page 36: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/36.jpg)
Authorize.net API
XMLбыстрые
запросы
легкие и
statistics statisticsstatistics
… быстро!
![Page 37: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/37.jpg)
Authorize.net API
statistics statisticsstatistics
SOAP(XML-RPC)
большие и
запросы
не очень быстрые
… долго!
![Page 38: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/38.jpg)
batches and transactions
![Page 39: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/39.jpg)
Authorize.net API : batches and transactions
web shop
![Page 40: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/40.jpg)
Authorize.net API : batches and transactions
web shopbuyers
покупки
![Page 41: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/41.jpg)
Authorize.net API : batches and transactions
web shop payment gateway
запросы в API
![Page 42: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/42.jpg)
Authorize.net API : batches and transactions
payment gateway
BANK
![Page 43: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/43.jpg)
Authorize.net API : batches and transactions
payment gateway
BANK
transaction № 1transaction № 2transaction № 3
![Page 44: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/44.jpg)
Authorize.net API : batches and transactions
payment gateway
BANK
transaction № 1transaction № 2transaction № 3
BATCH
![Page 45: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/45.jpg)
Authorize.net API : batches and transactions
payment gateway
BANK
batch № 1
batch № 2
batch № 3
![Page 46: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/46.jpg)
… всего 5 запросов!
XML Requests
![Page 47: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/47.jpg)
Authorize.net API : batches and transactions
getSettledBatchListRequest
batch № 1
batch № 2
batch № 3
… возвращает список всех batches
![Page 48: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/48.jpg)
Authorize.net API : batches and transactions
getBatchStatisticsRequest
Batch for ID = ?
… возвращает статистику по конкретному batch
![Page 49: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/49.jpg)
Authorize.net API : batches and transactions
getTransactionListRequest
transaction № 1transaction № 2transaction № n
BATCH ID=?
… возвращает список успешных транзакций по конкретному batch
![Page 50: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/50.jpg)
Authorize.net API : batches and transactions
getUnsettledTransactionListRequest
transaction № 1transaction № 2transaction № n
BATCH ID=?
… возвращает список неудавшихся транзакций по конкретному batch
![Page 51: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/51.jpg)
Authorize.net API : batches and transactions
getTransactionDetailsRequest
transaction for ID = ?
… возвращает статистику по конкретной транзакции
![Page 52: Payment System, based on Authorize.net](https://reader033.vdocument.in/reader033/viewer/2022061207/5484b2c1b4af9f634d8b4582/html5/thumbnails/52.jpg)
Thanks…