Skip to content
Snippets Groups Projects
Verified Commit 9d5664c1 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Also allow doing payments for rejected or failed transactions

parent 37188643
No related branches found
No related tags found
1 merge request!3Implement payment backends and interaction
Pipeline #59236 failed
...@@ -80,7 +80,7 @@ change_payment_variant_predicate = has_person & is_in_payment_status(PaymentStat ...@@ -80,7 +80,7 @@ change_payment_variant_predicate = has_person & is_in_payment_status(PaymentStat
rules.add_perm("tezor.change_payment_variant", change_payment_variant_predicate) rules.add_perm("tezor.change_payment_variant", change_payment_variant_predicate)
# Start payment # Start payment
do_payment_predicate = has_person & (is_in_payment_status(PaymentStatus.WAITING) | is_in_payment_status(PaymentStatus.INPUT)) & ((is_own_invoice | is_site_preference_set("payments", "public_payments")) | has_global_perm("tezor.do_payment") | has_object_perm("tezor.do_payment")) do_payment_predicate = has_person & (is_in_payment_status(PaymentStatus.WAITING) | is_in_payment_status(PaymentStatus.INPUT) | is_in_payment_status(PaymentStatus.ERROR) | is_in_payment_status(PaymentStatus.REJECTED)) & ((is_own_invoice | is_site_preference_set("payments", "public_payments")) | has_global_perm("tezor.do_payment") | has_object_perm("tezor.do_payment"))
rules.add_perm("tezor.do_payment", do_payment_predicate) rules.add_perm("tezor.do_payment", do_payment_predicate)
# View invoice # View invoice
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment