Skip to content

Commit

Permalink
Merge branch 'dev' for release 6.3.39
Browse files Browse the repository at this point in the history
  • Loading branch information
gnepud committed Feb 3, 2025
2 parents ee5741a + c7a222e commit 041e579
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Next release

## v6.3.39 2025 February 3

- Fix a bug: unable to cancel a PayZen subscription

## v6.3.38 2025 January 27

- Fix a bug: unable to update product low stock alert
Expand Down
3 changes: 2 additions & 1 deletion lib/pay_zen/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def cancel_subscription(payment_schedule)
raise "Cannot cancel transaction #{t['uuid']}" unless tr_res['answer']['detailedStatus'] == 'CANCELLED'
end
rescue PayzenError => e
raise e unless e.details['errorCode'] == 'PSP_010' # ignore if no order
# ignore if no order found and Subscription already canceled.
raise e unless e.details['errorCode'] == 'PSP_010' || e.details['errorCode'] == 'PSP_1099'
end

# then, we cancel the subscription
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fab-manager",
"version": "6.3.38",
"version": "6.3.39",
"description": "Fab-manager is the FabLab management solution. It provides a comprehensive, web-based, open-source tool to simplify your administrative tasks and your marker's projects.",
"keywords": [
"fablab",
Expand Down

0 comments on commit 041e579

Please sign in to comment.