More Information Added to Plugin Payment Methods

Tags:

In V7Preview5, the methods Pay and PaySilently have had several arguments replaced.

Now, in the Pay method, instead of Guid paymentTypeId, an IPaymentItem paymentItem is received. And in the PaySilently method, instead of Guid orderId, Guid paymentTypeId, IOrder order, IPaymentItem paymentItem are received. Thus, when performing a plugin payment, when SyrveFront hands control to one of the specified methods in the plugin, it is possible to determine whether the payment is being processed at the order closure or a prepayment is being made: the IPaymentItem paymentItem has the property IsPrepay available.