MTG Mania Posted August 3, 2012 Share Posted August 3, 2012 Hey Guys!! Well, it seems I might have a working brain after all, because I think I figured out why the linkpoint order did not hit the database. Once I confirmed that PayPal Express worked as it SHOULD, I copied both the PPE and Linkpoint Module php files into to 2 separate .txt documents and found THIS code in the PPE module but NOT in the linkpoint module: function after_process() { global $response_array, $insert_id, $order, $ppe_payerstatus, $ppe_addressstatus; $pp_result = 'Payer Status: ' . tep_output_string_protected ($ppe_payerstatus) . "\n" . 'Address Status: ' . tep_output_string_protected ($ppe_addressstatus) . "\n\n" . 'Payment Status: ' . tep_output_string_protected ($response_array['PAYMENTSTATUS']) . "\n" . 'Payment Type: ' . tep_output_string_protected($response_array ['PAYMENTTYPE']) . "\n" . 'Pending Reason: ' . tep_output_string_protected ($response_array['PENDINGREASON']) . "\n" . 'Reversal Code: ' . tep_output_string_protected ($response_array['REASONCODE']); $sql_data_array = array('orders_id' => $insert_id, 'orders_status_id' => MODULE_PAYMENT_PAYPAL_EXPRESS_TRANSACTIONS_ORDER_STATUS_ID, 'date_added' => 'now()', 'customer_notified' => '0', 'comments' => $pp_result); tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array); tep_session_unregister('ppe_token'); tep_session_unregister('ppe_payerid'); tep_session_unregister('ppe_payerstatus'); tep_session_unregister('ppe_addressstatus'); } I THINK (please tell me if I am wrong) these are the "commands" that tell the module to "create" the order in the database. Now, the million dollar question IS: HOW do I take THIS string of code (IF it is indeed, what I THINK it is) and rework it (IF that is even a possibility) to work for the linkpoint module?? Anyone care to offer a suggestion or three (lol)? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.