open-pay / openpay-woosubscriptions

Plugin para módulo de suscripciones de WooCommerce
0 stars 1 forks source link

Suscripciones múltiples #8

Closed prostudy closed 6 years ago

prostudy commented 6 years ago

El plugin soporta suscriptores múltiples? Es decir comprar al mismo tiempo más de una suscripción?

fedebalderas commented 6 years ago

Que tal @prostudy, no es posible realizar suscripciones múltiples por el momento.

Saludos!

prostudy commented 6 years ago

@fedebalderas Gracias!

prostudy commented 6 years ago

Una ultima pregunta @fedebalderas, cuando se en un ambiente de pruebas se compra una suscripción todo funciona correctamente, sin embargo, cuando se forzá a ejecutar ls suscripción (Scheduled Actions) se obtiene un error en la orden de compra que se genera, es decir, como si la plataforma openpay no pudiera procesar el pago de manera automatica.

Revisando el Dashboard de Openpay parece que el problema es el device_session_id: Logs > POST /v1/myurnkkvv7e7wi2by1ar/customers/aoqyupmqrqjum6n5sjcy/charges Estado 400 Bad Request Fecha miércoles, mayo 9 2018, 11:49:53 ID 19077bcb-b221-4976-8c09-99747323c62c IP 50.28.15.189 User Agent Parámetros 24 Llamada { "amount": "100.00", "currency": "mxn", "description": "Suscripci\u00f3n \"Suscripci\u00f3n TEST\" (Order 25)", "method": "card", "order_id": "25_20180509_164953", "source_id": "k4v4ngi7nwk3ymqx4jal" } Respuesta { "category": "request", "description": "Attribute device_session_id is required", "http_code": 400, "error_code": 1001, "request_id": "19077bcb-b221-4976-8c09-99747323c62c" }

09-May-2018 16:46:09 UTC] ORDER ID: 25 [09-May-2018 16:46:09 UTC] OPANPAY CUSTOMER ID: aoqyupmqrqjum6n5sjcy [09-May-2018 16:46:09 UTC] OPANPAY CARD ID: k4v4ngi7nwk3ymqx4jal [09-May-2018 16:46:09 UTC] id was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_Openpay_Addons->process_payment, WC_Gateway_Openpay_Addons->process_subscription, WC_Gateway_Openpay_Addons->process_subscription_payment, WC_Abstract_Legacy_Order->get, wc_doing_it_wrong. This message was added in version 3.0. [09-May-2018 16:46:11 UTC] id was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_Openpay_Addons->process_payment, WC_Gateway_Openpay_Addons->process_subscription, WC_Gateway_Openpay_Addons->process_subscription_payment, WC_Abstract_Legacy_Order->get, wc_doing_it_wrong. This message was added in version 3.0. [09-May-2018 16:46:11 UTC] id was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_Openpay_Addons->process_payment, WC_Gateway_Openpay_Addons->process_subscription, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [09-May-2018 16:46:11 UTC] id was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_Openpay_Addons->process_payment, WC_Gateway_Openpay_Addons->process_subscription, WC_Abstract_Legacy_Order->get, wc_doing_it_wrong. This message was added in version 3.0. [09-May-2018 16:46:11 UTC] order_total was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_Openpay_Addons->process_payment, WC_Gateway_Openpay_Addons->process_subscription, WC_Abstract_Legacy_Order->get, wc_doing_it_wrong. This message was added in version 3.0.

fedebalderas commented 6 years ago

@prostudy Uns disculpa, no había visto el comment. Esto es debido a que se debe de realizar un configuración sobre tu comercio para que pueda aceptar cargos recurrentes sin necesidad de device_session_id. Esto aplica tanto para tu comercio en sandbox como en productivo.

Ponte en contacto con soporte@openpay.mx para que te realicen esta configuración por favor, menciónales que utilizas el plugin de suscripciones de woocommerce y necesitas transaccionar recurrente sin el session_device_id.