I am updating the nopCommerce Braintree plugin. I'm added support for the latest js and API, with authorize, capture., refund and void (which is much more secure than the current implementation).
I've also added support for recurring payments but my understanding of how nop works is limited. I have assumed that RecurringPaymentType.Automatic means that the payment gateway is doing the automation, which Braintree does.
I've got that working OK. What I don't understand is how I would cancel a recurring payment from the back office of nop.
The Cancel button on the history tab for each recurring payment does not appear because NextPaymentDate does not have a value. But I don't see how this value gets populated if the payment gateway is automated at the gateway end.
I've extensively reviewed the PayPalDirect plugin as that is of type RecurringPaymentType.Automatic as well but I'm not getting any clues.
Anybody know how NextPaymentDate ever gets a value when RecurringPaymentType.Automatic is set?
Thanks