Merge branch 'release/1.3.5'
This commit is contained in:
commit
6caa61a5f8
@ -74,11 +74,11 @@ class CreateOrder(PayPalClient):
|
|||||||
"""Method to create body with CAPTURE intent"""
|
"""Method to create body with CAPTURE intent"""
|
||||||
processed_items = [{
|
processed_items = [{
|
||||||
# Shows within upper-right dropdown during payment approval
|
# Shows within upper-right dropdown during payment approval
|
||||||
'name': f'{item["product"]}',
|
'name': f'{item["product"]}: ' + ', '.join([next((f"{value['quantity']} x {v[1]}" for i, v in enumerate(CoffeeGrind.GRIND_CHOICES) if v[0] == key), None)
|
||||||
|
for key, value in item['variations'].items()])[:100],
|
||||||
# Item details will also be in the completed paypal.com transaction view
|
# Item details will also be in the completed paypal.com transaction view
|
||||||
|
|
||||||
'description': ', '.join([next((f"{value['quantity']} x {v[1]}" for i, v in enumerate(CoffeeGrind.GRIND_CHOICES) if v[0] == key), None)
|
'description': item['product'].subtitle,
|
||||||
for key, value in item['variations'].items()]),
|
|
||||||
'unit_amount': {
|
'unit_amount': {
|
||||||
'currency_code': settings.DEFAULT_CURRENCY,
|
'currency_code': settings.DEFAULT_CURRENCY,
|
||||||
'value': f'{item["price"]}'
|
'value': f'{item["price"]}'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user