Changelog
Support for adding payment related fields while creating a new InvoicePayment.
Old way of creating InvoicePayment
InvoicePayment invoicePayment = gateway.invoicePayment.Create(null, invoicePaymentPartRequest);
New way of creating InvoicePayment
InvoicePaymentRequest invoicePaymentRequest = new InvoicePaymentRequest(
new InvoicePaymentPart[]{invoicePaymentPartRequest},
null,
false,
"payment-memo",
"external-id-"+uuid,
new string[]{"tag1", "tag2"});
InvoicePayment invPayment = gateway.invoicePayment.Create(invoicePaymentRequest);
The InvoicePayment.Create(string, InvoicePaymentPart)
method has been marked as deprecated, and will be removed in early 2025.