You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose creating another interface that acts like a pre-payment hook which does an early validation of the payment information and rejects it if it doesn't fulfill some requirements.
We pass it the payment info preferably wrapped in a struct to avoid breaking changes in the trait definition,
Early payment validation has several uses like being able to reject payments based on the amount, check if the remark has the right structure, check if recipients are allowed to receive a payment with a given remark(i.e. is a merchant registered in the marketplace?), check if a kind of product is allowed, etc.
The text was updated successfully, but these errors were encountered:
I propose creating another interface that acts like a pre-payment hook which does an early validation of the payment information and rejects it if it doesn't fulfill some requirements.
We pass it the payment info preferably wrapped in a struct to avoid breaking changes in the trait definition,
Early payment validation has several uses like being able to reject payments based on the amount, check if the remark has the right structure, check if recipients are allowed to receive a payment with a given remark(i.e. is a merchant registered in the marketplace?), check if a kind of product is allowed, etc.
The text was updated successfully, but these errors were encountered: