Skip to content

Commit

Permalink
chore: more customer info
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jan 3, 2025
1 parent e6c2f40 commit 70aff57
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/budy/models/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,14 @@ def _pay_easypay_v2(self, payment_data, warning_d=None, cancel_d=None):
self.payable,
method=method,
key=self.key,
customer=dict(phone=phone) if phone else None,
type="sale" if type == "mbway" else None,
customer=(
dict(
name=self.shipping_address.full_name, email=self.email, phone=phone
)
if phone
else None
),
warning=int(time.time() + warning_d) if warning_d else None,
cancel=int(time.time() + cancel_d) if cancel_d else None,
)
Expand Down

0 comments on commit 70aff57

Please sign in to comment.