Plugin Directory

Changeset 1732144


Ignore:
Timestamp:
09/19/2017 09:52:33 AM (9 years ago)
Author:
Paymentwall
Message:

Update delivery confirmation API

Location:
paymentwall-for-woocommerce/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • paymentwall-for-woocommerce/trunk/includes/class-paymentwall-gateway.php

    r1644437 r1732144  
    128128                if ($order->get_status() == PW_ORDER_STATUS_PROCESSING) {
    129129                    die(PW_DEFAULT_SUCCESS_PINGBACK_VALUE);
    130                 }
    131 
    132                 // Call Delivery Confirmation API
    133                 if ($this->settings['enable_delivery']) {
    134                     // Delivery Confirmation
    135                     $delivery = new Paymentwall_GenerericApiObject('delivery');
    136                     $response = $delivery->post($this->prepare_delivery_confirmation_data($order, $pingback->getReferenceId()));
    137130                }
    138131
  • paymentwall-for-woocommerce/trunk/paymentwall-for-woocommerce.php

    r1704416 r1732144  
    66 * Plugin URI: https://www.paymentwall.com/en/documentation/WooCommerce/1409
    77 * Description: Official Paymentwall module for WordPress WooCommerce.
    8  * Version: 1.5.2
     8 * Version: 1.5.3
    99 * Author: The Paymentwall Team
    1010 * Author URI: http://www.paymentwall.com/
     
    3535    include(PW_PLUGIN_PATH . '/includes/class-paymentwall-brick.php');
    3636    include(PW_PLUGIN_PATH . '/includes/class-paymentwall-brick-subscription.php');
     37    include(PW_PLUGIN_PATH . '/includes/class-paymentwall-api.php');
    3738
    3839    function paymentwall_payments($methods) {
     
    8586add_action('admin_init', 'pw_child_plugin_has_parent_plugin');
    8687
     88function sendDeliveryApi($orderId) {
     89    $paymentwallApi = new Paymentwall_Api();
     90    $paymentwallApi->sendDeliveryApi($orderId);
     91}
     92add_action('woocommerce_order_status_completed', 'sendDeliveryApi');
Note: See TracChangeset for help on using the changeset viewer.