from payments .sms import SMS
sms = SMS ("API_KEY" , "API_SECRET" , "SERVICE_ID" )
response = sms .verify_code (request = {"code" : "XXXXXXX" , "number" : "XXXXX" })
from payments .sms import SMS
sms = SMS ("API_KEY" , "API_SECRET" , "SERVICE_ID" )
response = sms .get_service_list (request = {})
from payments .sms_xml import SMS_XML
code = SMS_XML .generateCode () # Generate code
from payments .direct_billing import DirectBilling
db = DirectBilling ("API_KEY" , "API_SECRET" , True , "SERVICE_ID" ) # True stands for debug mode
response = db .generate_transaction (api_key = "XXXXXXXXXXXX" ,request = {"control" : "XXXXXX" , "amount" : 10.00 }) # and others variables
Pobieranie danych o transakcji
from payments .direct_billing import DirectBilling
db = DirectBilling ("API_KEY" , "API_SECRET" , True , "SERVICE_ID" ) # True stands for debug mode
response = db .get_transaction (request = {"id" : "TRANSACTION_ID" })
Pobieranie listy usług DCB
from payments .direct_billing import DirectBilling
db = DirectBilling ("API_KEY" , "API_SECRET" , True , "SERVICE_ID" ) # True stands for debug mode
response = db .get_services (request = {})
Pobieranie maksymalnych kwot transakcji
from payments .direct_billing import DirectBilling
db = DirectBilling ("API_KEY" , "API_SECRET" , True , "SERVICE_ID" ) # True stands for debug mode
response = db .get_transaction_limits (request = {})
Pobieranie prowizji dla usługi
from payments .direct_billing import DirectBilling
db = DirectBilling ("API_KEY" , "API_SECRET" , True , "SERVICE_ID" ) # True stands for debug mode
response = db .get_service_commission (request = {})
Pobieranie adresów IP serwerów SimPay
from payments .direct_billing import DirectBilling
ips = DirectBilling .get_servers_ip ()
from payments .direct_billing import DirectBilling
db = DirectBilling ("API_KEY" , "API_SECRET" , True , "SERVICE_ID" ) # True stands for debug mode
sign = db .sign (123 , "status" , "valuenet" , "valuepartner" , "control" )