Third Party Integration
-
Hi!
We have several shops using Virtuemart + Quickpay.
The Virtuemart integration developer, with collaboration with us, has put in third party integration, for us more specifically support for communicate with e-conomic.
As we are transitioning into Woocommerce, we would love to keep this functionality, as it is very popular with our clients.
Could you absorb the Virtuemart solution into the official release?
Thanks for a great plugin,
Cheers!The code is:
// Now notify any third party services if ($method->quickpay_thirdpartyapi != '' && $request->accepted && $operation->qp_status_code == "20000") { $apiurl = $method->quickpay_thirdpartyapi; $lang = JFactory::getLanguage(); $lang_code_explode = explode("-", $lang->getTag()); $lang_code = strtolower($lang_code_explode[1]); $apiurl = str_replace('[LANGUAGE]', $lang_code, $apiurl); $apiurl = str_replace('[ORDER_ID]', $virtuemart_order_id, $apiurl); $apiurl = str_replace('[TRANSACTION_ID]', $request->id, $apiurl); $apiurl = str_replace('[PAYMENT_METHOD_ID]', $payment->virtuemart_paymentmethod_id, $apiurl); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $apiurl); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Important for HTTPS curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Third Party Integration’ is closed to new replies.