Skip to content

Commit

Permalink
chore: new capture info
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jan 3, 2025
1 parent 2ccf524 commit d4e38c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/budy/models/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -1819,6 +1819,7 @@ def _pay_easypay_v2(self, payment_data, warning_d=None, cancel_d=None):
method=method,
key=self.key,
type="sale" if type == "mbway" else None,
capture=dict(descriptive=self.reference, transaction_key=self.reference),
customer=(
dict(
name=self.shipping_address.full_name, email=self.email, phone=phone
Expand All @@ -1835,13 +1836,15 @@ def _pay_easypay_v2(self, payment_data, warning_d=None, cancel_d=None):
identifier = payment["identifier"]
warning = payment["warning"]
cancel = payment["cancel"]
capture = payment.get("capture", None)
customer = payment.get("customer", None)
self.payment_data = dict(
engine="easypay_v2",
type=type,
entity=entity,
reference=reference,
identifier=identifier,
capture=capture,
customer=customer,
warning=warning,
cancel=cancel,
Expand Down

0 comments on commit d4e38c7

Please sign in to comment.