Skip to content

Commit

Permalink
Merge branch 'OD-2156/adyen-automate-refund-credit-note' into OD-2150…
Browse files Browse the repository at this point in the history
…/adyen_new_payment_link_backport
  • Loading branch information
Dariusz Kubiak committed Oct 26, 2022
2 parents 2c355ba + f085534 commit 450c066
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions addons/payment_adyen_paybylink/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# See https://docs.adyen.com/api-explorer/#/CheckoutService/v68/overview for Checkout API
API_ENDPOINT_VERSIONS = {
'/paymentLinks': 68, # Checkout API
'/payments/{}/refunds': 69,
}
2 changes: 1 addition & 1 deletion addons/payment_adyen_paybylink/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def adyen_notification(self, **post):
# Check whether the event of the notification succeeded and
# reshape the notification data for parsing
event_code = post['eventCode']
if event_code == 'AUTHORISATION' and post['success'] == 'true':
if event_code in ('AUTHORISATION', 'REFUND') and post['success'] == 'true':
post['authResult'] = 'AUTHORISED'

# Handle the notification data
Expand Down

0 comments on commit 450c066

Please sign in to comment.