mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-11 05:54:15 +01:00
(bug) unable to cancel a PayZen subscription
This commit is contained in:
parent
41e65051b1
commit
86455a3a85
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Next release
|
## Next release
|
||||||
|
|
||||||
|
- Fix a bug: unable to cancel a PayZen subscription
|
||||||
|
|
||||||
## v6.3.38 2025 January 27
|
## v6.3.38 2025 January 27
|
||||||
|
|
||||||
- Fix a bug: unable to update product low stock alert
|
- Fix a bug: unable to update product low stock alert
|
||||||
|
@ -70,7 +70,8 @@ class PayZen::Service < Payment::Service
|
|||||||
raise "Cannot cancel transaction #{t['uuid']}" unless tr_res['answer']['detailedStatus'] == 'CANCELLED'
|
raise "Cannot cancel transaction #{t['uuid']}" unless tr_res['answer']['detailedStatus'] == 'CANCELLED'
|
||||||
end
|
end
|
||||||
rescue PayzenError => e
|
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
|
end
|
||||||
|
|
||||||
# then, we cancel the subscription
|
# then, we cancel the subscription
|
||||||
|
Loading…
x
Reference in New Issue
Block a user