Title: Third Party Integration
Last modified: September 1, 2016

---

# Third Party Integration

 *  Resolved [prokops](https://wordpress.org/support/users/prokops/)
 * (@prokops)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/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);
               }
       ```
   
 * [https://wordpress.org/plugins/woocommerce-quickpay/](https://wordpress.org/plugins/woocommerce-quickpay/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [PerfectSolution](https://wordpress.org/support/users/perfectsolution/)
 * (@perfectsolution)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/third-party-integration/#post-7534506)
 * Hi there,
 * We will not make this implementation as a standard part of the plugin. You should
   instead hook into WooCommerce and make the proper business logic inside a custom
   theme/plugin method.
 * All the best!

Viewing 1 replies (of 1 total)

The topic ‘Third Party Integration’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-quickpay_263a40.svg)
 * [Quickpay for WooCommerce](https://wordpress.org/plugins/woocommerce-quickpay/)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-quickpay/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-quickpay/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-quickpay/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-quickpay/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [PerfectSolution](https://wordpress.org/support/users/perfectsolution/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/third-party-integration/#post-7534506)
 * Status: resolved