-
Notifications
You must be signed in to change notification settings - Fork 0
Payment model
Arpsara edited this page Jul 29, 2015
·
1 revision
When a payment has been made, Telipass sends to the notification url those parameters. Pick the ones you are interested in and put it in your payment model.
You must at least have those attributes in your payment model: security_code:string, enduser_ip:string and ntu:string, as they are used to check if the payment really comes from the Telipass plateform.
# Security
t.string :security_code # SecurityCode
# User Infos
t.string :enduser_ip # UserIP
t.string :enduser_host # Userhost
t.string :enduser_useragent # UserAgent
t.string :enduser_userlanguage # Webbrowser language
t.string :enduser_plateform # Exploitation system
# Transaction
t.string :ntu, null: false # Unique transaction number (NTU)
t.string :module_name # Name of the payment module
t.string :module_id # Module ID
t.string :site_name # Website name
t.string :solution_name # Payment solution name
t.string :payment_method # Payment used name
t.string :point_name # Point name
t.string :country_code # Country code name
t.string :country_name # Country name
t.integer :credits # Credits (only for virtual money)
t.decimal :amount # Commission
t.integer :status # Transaction status
# 1 = Valid, 2 = Rejected, 3 = Differed, 4 = Test
t.string :status_text # Transaction status in text
t.date :transaction_date # Transaction date
t.string :transaction_id # Transaction ID
t.string :custom # Custom parameters