Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mercado Pago

    (@mercadopago)

    javiernanni,
    I believe that this error is resulting from a XSS standard, breaking when the picture URL is builded in the preferences. If you take a look in the logs, and check the “picture url” of a product I think you’ll see an erroneous html. I will place a fix on this to get a clean URL that should be available in next version.

    Thread Starter javiernanni

    (@javiernanni)

    That’s working now, but I still have the issue that my orders are stuck as pending in WooCommerce. Here’s the logs for the two last attempts at buying. In both cases I received my payment successfully in my MP account, but the orders are stuck as pending.

    LOGS:
    (I’m hiding personal information with XXX)

    07-19-2016 @ 16:30:09 – woocommerce-mercadopago-module: @[check_ipn_response] – Received _get content: {
    “wc-api”: “WC_WooMercadoPago_Gateway”,
    “topic”: “payment”,
    “id”: “891134471”
    }
    07-19-2016 @ 16:30:10 – woocommerce-mercadopago-module: @[check_ipn_request_is_valid] – GOT EXCEPTION: {“status”:404,”message”:”merchant_order not found”}
    07-19-2016 @ 16:37:25 – woocommerce-mercadopago-module: @[process_payment] – customer being redirected to Mercado Pago environment.
    07-19-2016 @ 16:37:25 – woocommerce-mercadopago-module: @[buildPaymentPreference] – requesting mercado pago preference creation with following structure: {
    “items”: [
    {
    “id”: “155”,
    “title”: “Lic Javier Nanni x 1”,
    “description”: “Especialidades<\/strong>\r\n

      \r\n \t
    • Depresi\u00f3n<\/li>\r\n \t
    • Ansiedad<\/li>\r\n \t
    • Ataques de P\u00e1nico<\/li>\r\n<\/ul>\r\nAtiendo a:<\/strong>\r\n
      \r\n \t
    • Adultos<\/li>\r\n \t
    • Parejas<\/li>\r\n \t
    • Adolescentes<\/li>\r\n<\/ul>”,
      “picture_url”: “https:\/\/www.terapiapoint.com\/wp-content\/uploads\/2016\/05\/Headshot-1.jpg”,
      “category_id”: “others”,
      “quantity”: 1,
      “unit_price”: 2,
      “currency_id”: “ARS”
      },
      {
      “title”: “\u00a1Gratis!”,
      “description”: “Servicio de env\u00edo utilizado por el almac\u00e9n”,
      “category_id”: “others”,
      “quantity”: 1,
      “unit_price”: 0,
      “currency_id”: “ARS”
      }
      ],
      “payer”: {
      “name”: “XXX”,
      “surname”: “XXX”,
      “email”: “XXX”,
      “phone”: {
      “number”: “XXX”
      },
      “address”: {
      “street_name”: “XXX”,
      “zip_code”: “XXX”
      }
      },
      “back_urls”: {
      “success”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/810?key=wc_order_578e81750c311&utm_nooverride=1”,
      “failure”: “https:\/\/www.terapiapoint.com\/cart\/?cancel_order=true&order=wc_order_578e81750c311&order_id=810&redirect”,
      “pending”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/810?key=wc_order_578e81750c311&utm_nooverride=1”
      },
      “shipments”: {
      “receiver_address”: {
      “zip_code”: “XXX”,
      “street_name”: “XXX”,
      “apartment”: “”
      }
      },
      “payment_methods”: {
      “installments”: 6,
      “default_installments”: 1
      },
      “notification_url”: “https:\/\/www.terapiapoint.com\/index.php\/woocommerce-mercadopago-module\/?wc-api=WC_WooMercadoPago_Gateway”,
      “external_reference”: “WCTP-810”,
      “sponsor_id”: 208682286,
      “auto_return”: “approved”
      }
      07-19-2016 @ 16:37:26 – woocommerce-mercadopago-module: @[createUrl] – payment link generated with success from mercado pago, with structure as follow: {
      “status”: 201,
      “response”: {
      “collector_id”: 214651848,
      “sponsor_id”: 208682286,
      “operation_type”: “regular_payment”,
      “items”: [
      {
      “id”: “155”,
      “title”: “Lic Javier Nanni x 1”,
      “description”: “Especialidades\r\n\r\n \tDepresi\u00f3n\r\n \tAnsiedad\r\n \tAtaques de P\u00e1nico\r\n\r\nAtiendo a:\r\n\r\n \tAdultos\r\n \tParejas\r\n \tAdolescentes\r\n”,
      “category_id”: “others”,
      “picture_url”: “https:\/\/www.terapiapoint.com\/wp-content\/uploads\/2016\/05\/Headshot-1.jpg”,
      “currency_id”: “ARS”,
      “quantity”: 1,
      “unit_price”: 2
      },
      {
      “id”: “”,
      “title”: “\u00a1Gratis!”,
      “description”: “Servicio de env\u00edo utilizado por el almac\u00e9n”,
      “category_id”: “others”,
      “picture_url”: “”,
      “currency_id”: “ARS”,
      “quantity”: 1,
      “unit_price”: 0
      }
      ],
      “payer”: {
      “name”: “XXX”,
      “surname”: “XXX”,
      “email”: “XXX”,
      “date_created”: “”,
      “phone”: {
      “area_code”: “”,
      “number”: “XXX”
      },
      “identification”: {
      “type”: “”,
      “number”: “”
      },
      “address”: {
      “street_name”: “XXX”,
      “street_number”: null,
      “zip_code”: “XXX”
      }
      },
      “back_urls”: {
      “success”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/810?key=wc_order_578e81750c311&utm_nooverride=1”,
      “pending”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/810?key=wc_order_578e81750c311&utm_nooverride=1”,
      “failure”: “https:\/\/www.terapiapoint.com\/cart\/?cancel_order=true&order=wc_order_578e81750c311&order_id=810&redirect”
      },
      “auto_return”: “approved”,
      “payment_methods”: {
      “excluded_payment_methods”: [
      {
      “id”: “”
      }
      ],
      “excluded_payment_types”: [
      {
      “id”: “”
      }
      ],
      “installments”: 6,
      “default_payment_method_id”: null,
      “default_installments”: 1
      },
      “client_id”: “963”,
      “marketplace”: “NONE”,
      “marketplace_fee”: 0,
      “shipments”: {
      “receiver_address”: {
      “zip_code”: “XXX”,
      “street_number”: null,
      “street_name”: “XXX”,
      “floor”: “”,
      “apartment”: “”
      }
      },
      “notification_url”: “https:\/\/www.terapiapoint.com\/index.php\/woocommerce-mercadopago-module\/?wc-api=WC_WooMercadoPago_Gateway”,
      “external_reference”: “WCTP-810”,
      “additional_info”: “”,
      “expires”: false,
      “expiration_date_from”: null,
      “expiration_date_to”: null,
      “date_created”: “2016-07-19T15:37:25.997-04:00”,
      “id”: “214651848-2d8d0180-d2fb-4a6c-a578-40b16fd7a51f”,
      “init_point”: “https:\/\/www.mercadopago.com\/mla\/checkout\/start?pref_id=214651848-2d8d0180-d2fb-4a6c-a578-40b16fd7a51f”,
      “sandbox_init_point”: “https:\/\/sandbox.mercadopago.com\/mla\/checkout\/pay?pref_id=214651848-2d8d0180-d2fb-4a6c-a578-40b16fd7a51f”
      }
      }
      07-19-2016 @ 16:56:13 – woocommerce-mercadopago-module: @[process_payment] – customer being redirected to Mercado Pago environment.
      07-19-2016 @ 16:56:13 – woocommerce-mercadopago-module: @[buildPaymentPreference] – requesting mercado pago preference creation with following structure: {
      “items”: [
      {
      “id”: “155”,
      “title”: “Lic Javier Nanni x 1”,
      “description”: “Especialidades<\/strong>\r\n
      \r\n \t
    • Depresi\u00f3n<\/li>\r\n \t
    • Ansiedad<\/li>\r\n \t
    • Ataques de P\u00e1nico<\/li>\r\n<\/ul>\r\nAtiendo a:<\/strong>\r\n
      \r\n \t

    • Adultos<\/li>\r\n \t
    • Parejas<\/li>\r\n \t
    • Adolescentes<\/li>\r\n<\/ul>”,
      “picture_url”: “https:\/\/www.terapiapoint.com\/wp-content\/uploads\/2016\/05\/Headshot-1.jpg”,
      “category_id”: “others”,
      “quantity”: 1,
      “unit_price”: 2,
      “currency_id”: “ARS”
      },
      {
      “title”: “\u00a1Gratis!”,
      “description”: “Servicio de env\u00edo utilizado por el almac\u00e9n”,
      “category_id”: “others”,
      “quantity”: 1,
      “unit_price”: 0,
      “currency_id”: “ARS”
      }
      ],
      “payer”: {
      “name”: “XXX”,
      “surname”: “XXX”,
      “email”: “XXX”,
      “phone”: {
      “number”: “XXX”
      },
      “address”: {
      “street_name”: “XXX”,
      “zip_code”: “XXX”
      }
      },
      “back_urls”: {
      “success”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/812?key=wc_order_578e85dd87242&utm_nooverride=1”,
      “failure”: “https:\/\/www.terapiapoint.com\/cart\/?cancel_order=true&order=wc_order_578e85dd87242&order_id=812&redirect”,
      “pending”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/812?key=wc_order_578e85dd87242&utm_nooverride=1”
      },
      “shipments”: {
      “receiver_address”: {
      “zip_code”: “XXX”,
      “street_name”: “XXX”,
      “apartment”: “”
      }
      },
      “payment_methods”: {
      “installments”: 6,
      “default_installments”: 1
      },
      “notification_url”: “https:\/\/www.terapiapoint.com\/index.php\/woocommerce-mercadopago-module\/?wc-api=WC_WooMercadoPago_Gateway”,
      “external_reference”: “WCTP-812”,
      “sponsor_id”: 208682286,
      “auto_return”: “approved”
      }
      07-19-2016 @ 16:56:14 – woocommerce-mercadopago-module: @[createUrl] – payment link generated with success from mercado pago, with structure as follow: {
      “status”: 201,
      “response”: {
      “collector_id”: 214651848,
      “sponsor_id”: 208682286,
      “operation_type”: “regular_payment”,
      “items”: [
      {
      “id”: “155”,
      “title”: “Lic Javier Nanni x 1”,
      “description”: “Especialidades\r\n\r\n \tDepresi\u00f3n\r\n \tAnsiedad\r\n \tAtaques de P\u00e1nico\r\n\r\nAtiendo a:\r\n\r\n \tAdultos\r\n \tParejas\r\n \tAdolescentes\r\n”,
      “category_id”: “others”,
      “picture_url”: “https:\/\/www.terapiapoint.com\/wp-content\/uploads\/2016\/05\/Headshot-1.jpg”,
      “currency_id”: “ARS”,
      “quantity”: 1,
      “unit_price”: 2
      },
      {
      “id”: “”,
      “title”: “\u00a1Gratis!”,
      “description”: “Servicio de env\u00edo utilizado por el almac\u00e9n”,
      “category_id”: “others”,
      “picture_url”: “”,
      “currency_id”: “ARS”,
      “quantity”: 1,
      “unit_price”: 0
      }
      ],
      “payer”: {
      “name”: “XXX”,
      “surname”: “XXX”,
      “email”: “XXX”,
      “date_created”: “”,
      “phone”: {
      “area_code”: “”,
      “number”: “XXX”
      },
      “identification”: {
      “type”: “”,
      “number”: “”
      },
      “address”: {
      “street_name”: “XXX”,
      “street_number”: null,
      “zip_code”: “XXX”
      }
      },
      “back_urls”: {
      “success”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/812?key=wc_order_578e85dd87242&utm_nooverride=1”,
      “pending”: “https:\/\/www.terapiapoint.com\/checkout\/order-received\/812?key=wc_order_578e85dd87242&utm_nooverride=1”,
      “failure”: “https:\/\/www.terapiapoint.com\/cart\/?cancel_order=true&order=wc_order_578e85dd87242&order_id=812&redirect”
      },
      “auto_return”: “approved”,
      “payment_methods”: {
      “excluded_payment_methods”: [
      {
      “id”: “”
      }
      ],
      “excluded_payment_types”: [
      {
      “id”: “”
      }
      ],
      “installments”: 6,
      “default_payment_method_id”: null,
      “default_installments”: 1
      },
      “client_id”: “963”,
      “marketplace”: “NONE”,
      “marketplace_fee”: 0,
      “shipments”: {
      “receiver_address”: {
      “zip_code”: “XXX”,
      “street_number”: null,
      “street_name”: “XXX”,
      “floor”: “”,
      “apartment”: “”
      }
      },
      “notification_url”: “https:\/\/www.terapiapoint.com\/index.php\/woocommerce-mercadopago-module\/?wc-api=WC_WooMercadoPago_Gateway”,
      “external_reference”: “WCTP-812”,
      “additional_info”: “”,
      “expires”: false,
      “expiration_date_from”: null,
      “expiration_date_to”: null,
      “date_created”: “2016-07-19T15:56:14.527-04:00”,
      “id”: “214651848-013a7e87-07d5-4132-8c49-0a20b0d8c90a”,
      “init_point”: “https:\/\/www.mercadopago.com\/mla\/checkout\/start?pref_id=214651848-013a7e87-07d5-4132-8c49-0a20b0d8c90a”,
      “sandbox_init_point”: “https:\/\/sandbox.mercadopago.com\/mla\/checkout\/pay?pref_id=214651848-013a7e87-07d5-4132-8c49-0a20b0d8c90a”
      }
      }

    @javiernanni: It would be interesting if you can get and share your server logs matching queries containing “wc-api” in the url, so it would be easier to see if MercadoPago sent the right/wrong notification or even if it didn’t at all! ??

    Thread Starter javiernanni

    (@javiernanni)

    Yes, there are plenty of instances of wc-api. I’m debugging this with someone from MP now, I’ll come back to the thread to share the solution once we find it.

    Plugin Author Mercado Pago

    (@mercadopago)

    Guys,

    we’ve made some changes and optimizations from v2.2.0 onwards. Please, test it. If you’re still with this problem, please notify me here.

    Regards!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘"Ups, algo funcionó mal"’ is closed to new replies.