Skip to content

Commit

Permalink
Update TransactionToFinish.js (#82)
Browse files Browse the repository at this point in the history
Closing with zero must also be accepted

Barion documentation:
When using facilitated payments, refund is a special case. As long as a reservation payment is not finished, the facilitator has complete control of the process and is able to refund the amount by finishing the payment transactions with zero amount. However, in case of a completed immediate or a finished reservation payment, the facilitator no longer has control over the process. This means that incurring refunds must be done by the seller. The facilitator and the seller must ensure the legal compliance of this in their respective environment.
  • Loading branch information
dersy90 authored Oct 27, 2024
1 parent be9cd80 commit 0f7b815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/domain/common/TransactionToFinish.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const schema = Joi.object({
TransactionId: Joi.string().required()
.guid(),
Total: Joi.number().required()
.greater(0),
.greater(-1),
Comment: Joi.string().optional(),
PayeeTransactions: Joi.array().optional()
.items(PayeeTransaction),
Expand Down

0 comments on commit 0f7b815

Please sign in to comment.