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"""
|
||||
processed_items = [{
|
||||
# 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
|
||||
|
||||
'description': ', '.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()]),
|
||||
'description': item['product'].subtitle,
|
||||
'unit_amount': {
|
||||
'currency_code': settings.DEFAULT_CURRENCY,
|
||||
'value': f'{item["price"]}'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user