Skip to content

Commit

Permalink
Merge PR #730 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Dec 24, 2024
2 parents e383389 + 849a7ca commit 53de51f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,15 @@ def _paypal_get_balance(self, token, currency, as_of_timestamp):

def _paypal_get_transaction(self, token, transaction_id, timestamp):
self.ensure_one()
transaction_date = timestamp.isoformat() + "Z"
transaction_date_ini = (timestamp - relativedelta(seconds=1)).isoformat() + "Z"
transaction_date_end = (timestamp + relativedelta(seconds=1)).isoformat() + "Z"
url = (
(self.api_base or PAYPAL_API_BASE)
+ "/v1/reporting/transactions"
+ ("?start_date=%s" "&end_date=%s" "&fields=all")
% (
transaction_date,
transaction_date,
transaction_date_ini,
transaction_date_end,
)
)
data = self._paypal_retrieve(url, token)
Expand Down

0 comments on commit 53de51f

Please sign in to comment.