Skip to content

v2.2.3

Latest
Compare
Choose a tag to compare
@Aman-Aalam Aman-Aalam released this 04 Oct 18:35
da297b1

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.