• Resolved umangmetatagg

    (@umangmetatagg)


    Hello Team,

    I have installed this plugin and setup for vendor account. when i placed order then order placed with pending status. and it says to change order status to complete or processing to capture fund. when i do it, i see errors as follows, then i manually authorize pending payment on paypal account. it shows unclaimed then i accept it then it complete payment. this is long process. can you make autocapture payment so, vendor don’t need to do anything and whole payment from customer send to vendor account directly. also, subscription order don’t work. Please can you look on to this?

    Thanks!

    2019-09-14T11:56:40+00:00 INFO Generating payment form for order 1214. Notify URL: https://homesweetdev.wowfactormedia.ca/wc-api/WC_Gateway_Paypal/
    2019-09-14T11:56:40+00:00 INFO PayPal Request Args for order 1214: Array
    (
    [cmd] => _cart
    [business] => [email protected]
    [no_note] => 1
    [currency_code] => CAD
    [charset] => utf-8
    [rm] => 1
    [upload] => 1
    [return] => https://homesweetdev.wowfactormedia.ca/checkout/order-received/1214/?key=wc_order_ev9iYW2nSscfL&utm_nooverride=1
    [cancel_return] => https://homesweetdev.wowfactormedia.ca/cart/?cancel_order=true&order=wc_order_ev9iYW2nSscfL&order_id=1214&redirect&_wpnonce=a742020e07
    [page_style] =>
    [image_url] =>
    [paymentaction] => authorization
    [invoice] => WC-1214
    [custom] => {“order_id”:1214,”order_key”:”wc_order_ev9iYW2nSscfL”}
    [notify_url] => https://homesweetdev.wowfactormedia.ca/wc-api/WC_Gateway_Paypal/
    [first_name] => ***
    [last_name] => ***
    [address1] => ***
    [address2] => ***
    [city] => ***
    [state] => ***
    [zip] => ***
    [country] => ***
    [email] => ***@***
    [night_phone_a] => ***
    [night_phone_b] => ***
    [night_phone_c] => ***
    [no_shipping] => 1
    [tax_cart] => 0.00
    [item_name_1] => My Home
    [quantity_1] => 1
    [amount_1] => 120
    [item_number_1] =>
    [bn] => WooThemes_Cart
    )

    2019-09-14T11:57:44+00:00 INFO Checking IPN response is valid
    2019-09-14T11:57:46+00:00 INFO Received valid response from PayPal IPN
    2019-09-14T11:57:46+00:00 INFO Marketplace Direct PayPal IPN Check
    2019-09-14T11:57:46+00:00 INFO Found order #1214
    2019-09-14T11:57:46+00:00 INFO Payment status: pending
    2019-09-14T12:00:40+00:00 INFO DoCapture Response: Array
    (
    [headers] => Requests_Utility_CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [date] => Sat, 14 Sep 2019 12:00:40 GMT
    [server] => Apache
    [x-slr-retry-api] => DoCapture
    [x-paypal-operation-name] => DoCapture
    [x-paypal-api-rc] => 10002
    [http_x_pp_az_locator] => sandbox.slc
    [paypal-debug-id] => 587cf450af581
    [set-cookie] => Array
    (
    [0] => X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dappdispatcher_apit%26TIME%3D1758887005%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Sat, 14 Sep 2019 12:30:40 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
    [1] => X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
    )

    [content-length] => 234
    [content-type] => text/plain; charset=utf-8
    )

    )

    [body] => TIMESTAMP=2019%2d09%2d14T12%3a00%3a40Z&CORRELATIONID=587cf450af581&ACK=Failure&VERSION=84%2e0&BUILD=53497452&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error
    [response] => Array
    (
    [code] => 200
    [message] => OK
    )

    [cookies] => Array
    (
    [0] => WP_Http_Cookie Object
    (
    [name] => X-PP-SILOVER
    [value] =>
    [expires] => 1
    [path] => /
    [domain] => api-3t.sandbox.paypal.com
    [host_only] => 1
    )

    )

    [filename] =>
    [http_response] => WP_HTTP_Requests_Response Object
    (
    [response:protected] => Requests_Response Object
    (
    [body] => TIMESTAMP=2019%2d09%2d14T12%3a00%3a40Z&CORRELATIONID=587cf450af581&ACK=Failure&VERSION=84%2e0&BUILD=53497452&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error
    [raw] => HTTP/1.1 200 OK
    Date: Sat, 14 Sep 2019 12:00:40 GMT
    Server: Apache
    X-SLR-RETRY-API: DoCapture
    X-PAYPAL-OPERATION-NAME: DoCapture
    X-PAYPAL-API-RC: 10002
    Connection: close
    HTTP_X_PP_AZ_LOCATOR: sandbox.slc
    Paypal-Debug-Id: 587cf450af581
    Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dappdispatcher_apit%26TIME%3D1758887005%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Sat, 14 Sep 2019 12:30:40 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
    Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
    Content-Length: 234
    Content-Type: text/plain; charset=utf-8

    TIMESTAMP=2019%2d09%2d14T12%3a00%3a40Z&CORRELATIONID=587cf450af581&ACK=Failure&VERSION=84%2e0&BUILD=53497452&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error
    [headers] => Requests_Response_Headers Object
    (
    [data:protected] => Array
    (
    [date] => Array
    (
    [0] => Sat, 14 Sep 2019 12:00:40 GMT
    )

    [server] => Array
    (
    [0] => Apache
    )

    [x-slr-retry-api] => Array
    (
    [0] => DoCapture
    )

    [x-paypal-operation-name] => Array
    (
    [0] => DoCapture
    )

    [x-paypal-api-rc] => Array
    (
    [0] => 10002
    )

    [http_x_pp_az_locator] => Array
    (
    [0] => sandbox.slc
    )

    [paypal-debug-id] => Array
    (
    [0] => 587cf450af581
    )

    [set-cookie] => Array
    (
    [0] => X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dappdispatcher_apit%26TIME%3D1758887005%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Sat, 14 Sep 2019 12:30:40 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
    [1] => X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
    )

    [content-length] => Array
    (
    [0] => 234
    )

    [content-type] => Array
    (
    [0] => text/plain; charset=utf-8
    )

    )

    )

    [status_code] => 200
    [protocol_version] => 1.1
    [success] => 1
    [redirects] => 0
    [url] => https://api-3t.sandbox.paypal.com/nvp
    [history] => Array
    (
    )

    [cookies] => Requests_Cookie_Jar Object
    (
    [cookies:protected] => Array
    (
    [X-PP-SILOVER] => Requests_Cookie Object
    (
    [name] => X-PP-SILOVER
    [value] =>
    [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [expires] => 1
    [domain] => api-3t.sandbox.paypal.com
    [path] => /
    )

    )

    [flags] => Array
    (
    [creation] => 1568462440
    [last-access] => 1568462440
    [persistent] =>
    [host-only] => 1
    )

    [reference_time] => 1568462440
    )

    )

    )

    )

    [filename:protected] =>
    [data] =>
    [headers] =>
    [status] =>
    )

    )

    2019-09-14T12:00:40+00:00 INFO Capture Result: stdClass Object
    (
    [TIMESTAMP] => 2019-09-14T12:00:40Z
    [CORRELATIONID] => 587cf450af581
    [ACK] => Failure
    [VERSION] => 84.0
    [BUILD] => 53497452
    [L_ERRORCODE0] => 10002
    [L_SHORTMESSAGE0] => Security error
    [L_LONGMESSAGE0] => Security header is not valid
    [L_SEVERITYCODE0] => Error
    )

    2019-09-14T12:02:56+00:00 INFO Checking IPN response is valid
    2019-09-14T12:02:58+00:00 INFO Received valid response from PayPal IPN
    2019-09-14T12:02:58+00:00 INFO Marketplace Direct PayPal IPN Check
    2019-09-14T12:02:58+00:00 INFO Found order #1214
    2019-09-14T12:02:58+00:00 INFO Payment status: pending
    2019-09-14T12:02:58+00:00 INFO Aborting, Order #1214 is already complete.
    2019-09-14T12:05:28+00:00 INFO Checking IPN response is valid
    2019-09-14T12:05:30+00:00 INFO Received valid response from PayPal IPN
    2019-09-14T12:05:30+00:00 INFO Marketplace Direct PayPal IPN Check
    2019-09-14T12:05:30+00:00 INFO Found order #1214
    2019-09-14T12:05:30+00:00 INFO Payment status: completed
    2019-09-14T12:05:30+00:00 INFO Aborting, Order #1214 is already complete.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter umangmetatagg

    (@umangmetatagg)

    Okay, this issue now fixed. now, problem happens in recurring order. I am using woocommerce subscription plugin for recurring order. when i place order it will send money to vendor account successfully. but, on wordpress admin, it create subscription and parent order with pending status and no any notes showing. here is log from woocmmerce:

    2019-09-16T07:38:48+00:00 INFO Generating payment form for order 1249. Notify URL: https://homesweetdev.wowfactormedia.ca/wc-api/WC_Gateway_Paypal/
    2019-09-16T07:38:48+00:00 INFO PayPal Request Args for order 1249: Array
    (
    [cmd] => _xclick-subscriptions
    [business] => [email protected]
    [no_note] => 1
    [currency_code] => CAD
    [charset] => utf-8
    [rm] => 2
    [upload] => 1
    [return] => https://homesweetdev.wowfactormedia.ca/checkout/order-received/1249/?key=wc_order_tivaOMzNEY3KQ&utm_nooverride=1
    [cancel_return] => https://homesweetdev.wowfactormedia.ca/cart/?cancel_order=true&order=wc_order_tivaOMzNEY3KQ&order_id=1249&redirect&_wpnonce=0b57a89af9
    [page_style] =>
    [image_url] =>
    [paymentaction] => sale
    [invoice] => WC-1249
    [custom] => {“order_id”:1249,”order_key”:”wc_order_tivaOMzNEY3KQ”,”subscription_id”:1251,”subscription_key”:”wc_order_5d7f3c088d1d7″}
    [notify_url] => https://homesweetdev.wowfactormedia.ca/wc-api/WC_Gateway_Paypal/
    [first_name] => ***
    [last_name] => ***
    [address1] => ***
    [address2] => ***
    [city] => ***
    [state] => ***
    [zip] => ***
    [country] => ***
    [email] => ***@***
    [night_phone_a] => ***
    [night_phone_b] => ***
    [night_phone_c] => ***
    [no_shipping] => 1
    [tax_cart] => 0.00
    [item_name_1] => My New Home
    [quantity_1] => 1
    [amount_1] => 110
    [item_number_1] =>
    [item_name] => Subscription 1251 (Order 1249) – My New Home
    [a3] => 110.00
    [p3] => 1
    [t3] => M
    [src] => 1
    [sra] => 0
    [bn] => WooThemes_Cart
    )

    2019-09-16T07:41:19+00:00 INFO Checking IPN response is valid
    2019-09-16T07:41:21+00:00 INFO Received valid response from PayPal IPN
    2019-09-16T07:41:21+00:00 INFO Marketplace Direct PayPal IPN Check
    2019-09-16T07:41:21+00:00 INFO Found order #1249
    2019-09-16T07:41:21+00:00 INFO Payment status:
    2019-09-16T07:41:34+00:00 INFO Checking IPN response is valid
    2019-09-16T07:41:36+00:00 INFO Received valid response from PayPal IPN
    2019-09-16T07:41:36+00:00 INFO Marketplace Direct PayPal IPN Check
    2019-09-16T07:41:36+00:00 INFO Found order #1249
    2019-09-16T07:41:36+00:00 INFO Payment status: completed
    2019-09-16T07:41:36+00:00 INFO Aborting, Invalid type:subscr_payment

    Please can you help on this? Thanks!

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    We are checking this.

    Well, is this for new subscription order or for renewal order payment?

    Thank You

    Thread Starter umangmetatagg

    (@umangmetatagg)

    Yes, This is new subscription order. also, it works fine from paypal account. but this is issue from wordpress. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘After Placing order, Payment can’t auto capture’ is closed to new replies.