Tips and Donations

Tags: v6

Adding Tips

To add tips to an order, there is a method:

IOperationService.AddDonation

IPaymentItem AddDonation([NotNull] ICredentials credentials, [NotNull] IOrder order, [NotNull] IDonationType donationType, [NotNull] IPaymentType paymentType, [CanBeNull] IPaymentItemAdditionalData additionalData, bool isProcessed, decimal donationSum);
Examples

Comments:

Additionally:

Removing Tips

To remove previously added tips from an order, there is a method:

IOperationService.DeleteDonation

void DeleteDonation([NotNull] ICredentials credentials, [NotNull] IOrder order, [NotNull] Data.Payments.IPaymentItem paymentItem);
Examples