We have a promotional tool that I built that calculates some discounts from various parameters. I'm looking for a way to create a payment based on the information generated by this tool. I can't seem to find an easy way to do this.
Some payments will be attached to payment plans and some will not; some will charge a credit card and some will not.
Do you have any recommendations on a way to create a payment (both on and not on a payment plan and both on and not on a credit card) without any further user input?
Creating Payments
Re: Creating Payments
It sounds like the best way to accomplish this would be to create a plugin. You can then call our methods to create payments.
https://opendental.com/manual/plugins.html
https://opendental.com/manual/plugins.html
Re: Creating Payments
I'm already using a plugin. However, the methods that I think I want to use, are private and do not have hooks. I want to know if there is a recommended method/hook for creating payments, or if I need to request hooks to be added.
Re: Creating Payments
There isn't one particular method for creating a payment because each place in our program that makes a payment does something unique. You'll want to call OpenDentBusiness.Payments.Insert at the very least. For an example on what to pass to this method, you could look at OpenDentBusiness.RecurringChargerator.CreatePayment. You'll also need to insert at least one PaySplit.
Re: Creating Payments
I'll look into that, thank you.