Reading through document on Add On, I did understand a bit of it so thought of doing an Add On to get some real time feel, so I may have many questions as learning. Thanks in advance for all the help.
Trying to do a Payment Provider Add on.
Understand the following:
Questions at First Step:
Question1: This add on will need to insert (or delete) in the table xf_payment_provider (both during install and uninstall) to insert (or delete)
with
provider_id (someprovider)
provider_class(Sip:SomeProvider)
addon_id (Sip).
Is the above correct?
Question 2: what would be the insert/delete XF syntax (during install/uninstall) to update the table xf_payment_provider in Setup.php or just the conventional mysql insert command would be fine? Or there's something more to it wrt inserting record in xf_payment_provider for a new provider?
TIA
Trying to do a Payment Provider Add on.
Understand the following:
- From CLI generate the add on and then work with code.
- Have to extend the class AbstractPayment -- this is being done.
- In development mode have to add class extensions from ACP.
Questions at First Step:
Question1: This add on will need to insert (or delete) in the table xf_payment_provider (both during install and uninstall) to insert (or delete)
with
provider_id (someprovider)
provider_class(Sip:SomeProvider)
addon_id (Sip).
Is the above correct?
Question 2: what would be the insert/delete XF syntax (during install/uninstall) to update the table xf_payment_provider in Setup.php or just the conventional mysql insert command would be fine? Or there's something more to it wrt inserting record in xf_payment_provider for a new provider?
TIA
Last edited: