Package: iyzipay-fork
iyzipay-pythonYou can sign up for an iyzico account athttps://iyzico.comRequirementsPython 3.6+Deprecation NotesPython 2.7 will not be maintained past 2020. As we iyzico, we will not support of that python version at March of 2020. If you have any questions, please open an issue on Github or contact us atintegration@iyzico.com.Python 3.2, 3.3, 3.4 and 3.5 supports are dropped after v1.0.37.InstallationPyPIYou can install the bindings viaPyPI. Run the following command:pipinstalliyzipayOr:easy_installiyzipayManual InstallationIf you do not wish to use pip, you can download thelatest release. Then, to use the bindings, import iyzipay package.importiyzipayUsageoptions={'api_key':'your api key','secret_key':'your secret key','base_url':'sandbox-api.iyzipay.com'}payment_card={'cardHolderName':'John Doe','cardNumber':'5528790000000008','expireMonth':'12','expireYear':'2030','cvc':'123','registerCard':'0'}buyer={'id':'BY789','name':'John','surname':'Doe','gsmNumber':'+905350000000','email':'email@email.com','identityNumber':'74300864791','lastLoginDate':'2015-10-05 12:43:35','registrationDate':'2013-04-21 15:12:09','registrationAddress':'Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1','ip':'85.34.78.112','city':'Istanbul','country':'Turkey','zipCode':'34732'}address={'contactName':'Jane Doe','city':'Istanbul','country':'Turkey','address':'Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1','zipCode':'34732'}basket_items=[{'id':'BI101','name':'Binocular','category1':'Collectibles','category2':'Accessories','itemType':'PHYSICAL','price':'0.3'},{'id':'BI102','name':'Game code','category1':'Game','category2':'Online Game Items','itemType':'VIRTUAL','price':'0.5'},{'id':'BI103','name':'Usb','category1':'Electronics','category2':'Usb / Cable','itemType':'PHYSICAL','price':'0.2'}]request={'locale':'tr','conversationId':'123456789','price':'1','paidPrice':'1.2','currency':'TRY','installment':'1','basketId':'B67832','paymentChannel':'WEB','paymentGroup':'PRODUCT','paymentCard':payment_card,'buyer':buyer,'shippingAddress':address,'billingAddress':address,'basketItems':basket_items}payment=iyzipay.Payment().create(request,options)See other samples under samples directory.Mock test cardsTest cards that can be used to simulate asuccessfulpayment:Card NumberBankCard Type5890040000000016AkbankMaster Card (Debit)5526080000000006AkbankMaster Card (Credit)4766620000000001DenizbankVisa (Debit)4603450000000000DenizbankVisa (Credit)4729150000000005Denizbank BonusVisa (Credit)4987490000000002FinansbankVisa (Debit)5311570000000005FinansbankMaster Card (Credit)9792020000000001FinansbankTroy (Debit)9792030000000000FinansbankTroy (Credit)5170410000000004Garanti BankasıMaster Card (Debit)5400360000000003Garanti BankasıMaster Card (Credit)374427000000003Garanti BankasıAmerican Express4475050000000003HalkbankVisa (Debit)5528790000000008HalkbankMaster Card (Credit)4059030000000009HSBC BankVisa (Debit)5504720000000003HSBC BankMaster Card (Credit)5892830000000000Türkiye İş BankasıMaster Card (Debit)4543590000000006Türkiye İş BankasıVisa (Credit)4910050000000006VakıfbankVisa (Debit)4157920000000002VakıfbankVisa (Credit)5168880000000002Yapı ve Kredi BankasıMaster Card (Debit)5451030000000000Yapı ve Kredi BankasıMaster Card (Credit)Cross bordertest cards:Card NumberCountry4054180000000007Non-Turkish (Debit)5400010000000004Non-Turkish (Credit)Test cards to get specificerrorcodes:Card NumberDescription5406670000000009Success but cannot be cancelled, refund or post auth4111111111111129Not sufficient funds4129111111111111Do not honour4128111111111112Invalid transaction4127111111111113Lost card4126111111111114Stolen card4125111111111115Expired card4124111111111116Invalid cvc24123111111111117Not permitted to card holder4122111111111118Not permitted to terminal4121111111111119Fraud suspect4120111111111110Pickup card4130111111111118General error4131111111111117Success but mdStatus is 04141111111111115Success but mdStatus is 441511111111111123dsecure initialize failed