@@ -74,32 +74,32 @@ address = {
74
74
' zipCode' : ' 34732'
75
75
}
76
76
77
- basket_item_first = {
78
- ' id ' : ' BI101 ' ,
79
- ' name ' : ' Binocular ' ,
80
- ' category1 ' : ' Collectibles ' ,
81
- ' category2 ' : ' Accessories ' ,
82
- ' itemType ' : ' PHYSICAL ' ,
83
- ' price ' : ' 0.3 '
84
- }
85
-
86
- basket_item_second = {
87
- ' id' : ' BI102' ,
88
- ' name' : ' Game code' ,
89
- ' category1' : ' Game' ,
90
- ' category2' : ' Online Game Items' ,
91
- ' itemType' : ' VIRTUAL' ,
92
- ' price' : ' 0.5'
93
- }
94
-
95
- basket_item_third = {
96
- ' id ' : ' BI103 ' ,
97
- ' name ' : ' Usb ' ,
98
- ' category1 ' : ' Electronics ' ,
99
- ' category2 ' : ' Usb / Cable ' ,
100
- ' itemType ' : ' PHYSICAL ' ,
101
- ' price ' : ' 0.2 '
102
- }
77
+ basket_items = [
78
+ {
79
+ ' id ' : ' BI101 ' ,
80
+ ' name ' : ' Binocular ' ,
81
+ ' category1 ' : ' Collectibles ' ,
82
+ ' category2 ' : ' Accessories ' ,
83
+ ' itemType ' : ' PHYSICAL ' ,
84
+ ' price ' : ' 0.3 '
85
+ },
86
+ {
87
+ ' id' : ' BI102' ,
88
+ ' name' : ' Game code' ,
89
+ ' category1' : ' Game' ,
90
+ ' category2' : ' Online Game Items' ,
91
+ ' itemType' : ' VIRTUAL' ,
92
+ ' price' : ' 0.5'
93
+ },
94
+ {
95
+ ' id ' : ' BI103 ' ,
96
+ ' name ' : ' Usb ' ,
97
+ ' category1 ' : ' Electronics ' ,
98
+ ' category2 ' : ' Usb / Cable ' ,
99
+ ' itemType ' : ' PHYSICAL ' ,
100
+ ' price ' : ' 0.2 '
101
+ }
102
+ ]
103
103
104
104
request = {
105
105
' locale' : ' tr' ,
@@ -115,7 +115,7 @@ request = {
115
115
' buyer' : buyer,
116
116
' shippingAddress' : address,
117
117
' billingAddress' : address,
118
- ' basketItems' : [basket_item_first, basket_item_second, basket_item_third]
118
+ ' basketItems' : basket_items
119
119
}
120
120
121
121
payment = iyzipay.Payment().create(request, options)
0 commit comments