Skip to content

Commit 960d458

Browse files
author
Sabri Onur Tüzün
committed
samples updated
1 parent 7dbbf86 commit 960d458

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -74,32 +74,32 @@ address = {
7474
'zipCode': '34732'
7575
}
7676

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+
]
103103

104104
request = {
105105
'locale': 'tr',
@@ -115,7 +115,7 @@ request = {
115115
'buyer': buyer,
116116
'shippingAddress': address,
117117
'billingAddress': address,
118-
'basketItems': [basket_item_first, basket_item_second, basket_item_third]
118+
'basketItems': basket_items
119119
}
120120

121121
payment = iyzipay.Payment().create(request, options)

0 commit comments

Comments
 (0)