Permalink
Branch: master
Find file Copy path
4bdd337 Dec 20, 2017
1 contributor

Users who have contributed to this file

23 lines (17 sloc) 439 Bytes
# coding=utf-8
import iyzipay
options = {
'api_key': iyzipay.api_key,
'secret_key': iyzipay.secret_key,
'base_url': iyzipay.base_url
}
request = {
'locale': 'tr',
'conversationId': '123456789',
'paymentId': '1',
'ip': '85.34.78.112',
'reason': 'other',
'description': 'customer requested for default sample'
}
cancel = iyzipay.Cancel().create(request, options)
print(cancel.read().decode('utf-8'))