We are building a new Membership payment gateway for our site. I noticed all your normal gateways (paypalsolo, free, 2CO) all use something like this to save transaction and subscription data:
$member = Membership_Plugin::factory()->get_member($user_id);
do_action('membership_payment_subscr_signup', $user_id, $sub_id);
(That was from the free gateway but seems similar to all the others).
My programmer is insisting we use SQL statements to write directly to the database. I have the nagging feeling that this is a bad idea. Furthermore, the programmer doesn't understand why there are no SQL statements in your standard gateways and how/format of the way you guys save transactions and user subscription info...
Please elaborate and clarify on this?
Thank you very much,