• Resolved seema.sharma24

    (@seemasharma24)


    I am using paypal sandbox account and payment process complete after doing payment with sandbox paypal account then orders does not save in backend of WP-paypal->orders

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter seema.sharma24

    (@seemasharma24)

    Waiting for solution. Can anyone help me?

    Plugin Author Noor Alam

    (@naa986)

    @seemasharma24, Do you have the debug option enabled in the settings? Please make sure that IPN is enabled in your PayPal account.

    Thread Starter seema.sharma24

    (@seemasharma24)

    Yes both suggested options are enabled. Here is debug info:
    [November 24, 2018 3:55 pm] – SUCCESS :Received IPN from PayPal
    [November 24, 2018 3:55 pm] – SUCCESS :
    Array
    (
    [mc_gross] => 1.00
    [protection_eligibility] => Ineligible
    [address_status] => confirmed
    [payer_id] => R6HBYV2E87XH8
    [address_street] => 5700 Arden Way Carmichael, Ca 95608
    [payment_date] => 07:55:38 Nov 24, 2018 PST
    [payment_status] => Pending
    [charset] => windows-1252
    [address_zip] => 95608
    [first_name] => Seema
    [address_country_code] => US
    [address_name] => Seema Sharma
    [notify_version] => 3.9
    [custom] =>
    [payer_status] => unverified
    [business] => [email protected]
    [address_country] => United States
    [address_city] => Carmichael
    [quantity] => 1
    [verify_sign] => ASYZo7BptxgliCasudch96iWGucZAAKhQPthASGgHYlNzaGO6dWN5LmM
    [payer_email] => [email protected]
    [txn_id] => 2BM81828VC0074325
    [payment_type] => instant
    [last_name] => Sharma
    [address_state] => CA
    [receiver_email] => [email protected]
    [pending_reason] => unilateral
    [txn_type] => web_accept
    [item_name] => My product
    [mc_currency] => USD
    [item_number] =>
    [residence_country] => US
    [test_ipn] => 1
    [transaction_subject] =>
    [payment_gross] => 1.00
    [ipn_track_id] => d7d8e52485c5d
    )
    [November 24, 2018 3:55 pm] – SUCCESS :Checking if IPN response is valid via https://www.sandbox.paypal.com/cgi-bin/webscr
    [November 24, 2018 3:55 pm] – SUCCESS :IPN Request:
    [November 24, 2018 3:55 pm] – SUCCESS :
    Array
    (
    [body] => Array
    (
    [cmd] => _notify-validate
    [mc_gross] => 1.00
    [protection_eligibility] => Ineligible
    [address_status] => confirmed
    [payer_id] => R6HBYV2E87XH8
    [address_street] => 5700 Arden Way Carmichael, Ca 95608
    [payment_date] => 07:55:38 Nov 24, 2018 PST
    [payment_status] => Pending
    [charset] => windows-1252
    [address_zip] => 95608
    [first_name] => Seema
    [address_country_code] => US
    [address_name] => Seema Sharma
    [notify_version] => 3.9
    [custom] =>
    [payer_status] => unverified
    [business] => [email protected]
    [address_country] => United States
    [address_city] => Carmichael
    [quantity] => 1
    [verify_sign] => ASYZo7BptxgliCasudch96iWGucZAAKhQPthASGgHYlNzaGO6dWN5LmM
    [payer_email] => [email protected]
    [txn_id] => 2BM81828VC0074325
    [payment_type] => instant
    [last_name] => Sharma
    [address_state] => CA
    [receiver_email] => [email protected]
    [pending_reason] => unilateral
    [txn_type] => web_accept
    [item_name] => My product
    [mc_currency] => USD
    [item_number] =>
    [residence_country] => US
    [test_ipn] => 1
    [transaction_subject] =>
    [payment_gross] => 1.00
    [ipn_track_id] => d7d8e52485c5d
    )

    [sslverify] =>
    [timeout] => 60
    [httpversion] => 1.1
    [compress] =>
    [decompress] =>
    [user-agent] => WP PayPal/1.1.0
    )
    [November 24, 2018 3:55 pm] – SUCCESS :IPN Response:
    [November 24, 2018 3:55 pm] – SUCCESS :
    Array
    (
    [headers] => Requests_Utility_CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [date] => Sat, 24 Nov 2018 15:55:49 GMT
    [server] => Apache
    [x-frame-options] => SAMEORIGIN
    [set-cookie] => Array
    (
    [0] => c9MWDuvPtT9GIMyPc3jwol1VSlO=4zEcpE2CKcxZxAHTdkSiPL10VSU5cP5vEaQCSaEXmAxJNFN1RyJjvHGGB8pg0I0n4E9zZ_XfaxIJXZUsdoPEoVIXTK0JEhSdusjOKGut6GLnOJAtG0ntjbcehUl7tTuNri98ci1U_-0joJieLIjtxZ119WGrdkyZ0gjH2fInkyQvKjfB9lUW8RNw1QG_OmfdXcvEoYyFBafsTcDcOuyMrisUop-nySM2zEzHX14Usx8b19NvO4Wdcb_a9bhT3JHFdkkN9Fa6iQ0Dqr3_Ddnoa2e3QazmhRF75kEW-4ZQP-yW3YvtAMUDUkMnC_E9HGknS6Mj6dhHFokjkE81Lox10ZiljC8QoN9s0ElADpvEsM8IKxm2aBCwg6sauhS4IBViCqXG2nGE78wZgL94uujncll3osOaEUm4rZZDwmqYF-zZCLfxaz_MWHb6PSi; domain=.paypal.com; path=/; Secure; HttpOnly
    [1] => cookie_check=yes; expires=Tue, 21-Nov-2028 15:55:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
    [2] => navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
    [3] => navlns=0.0; expires=Mon, 23-Nov-2020 15:55:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
    [4] => Apache=10.72.108.11.1543074949211580; path=/; expires=Mon, 16-Nov-48 15:55:49 GMT
    [5] => X-PP-SILOVER=name%3DSANDBOX3.WEB.1%26silo_version%3D1880%26app%3Dappdispatcher%26TIME%3D2239035739%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Sat, 24 Nov 2018 16:25:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
    [6] => X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
    )

    [vary] => Accept-Encoding,User-Agent
    [http_x_pp_az_locator] => sandbox.slc
    [content-encoding] => gzip
    [paypal-debug-id] => d3272bd13054a
    [content-type] => text/html; charset=UTF-8
    [strict-transport-security] => max-age=63072000
    )

    )

    [body] => VERIFIED
    [response] => Array
    (
    [code] => 200
    [message] => OK
    )

    [cookies] => Array
    (
    [0] => WP_Http_Cookie Object
    (
    [name] => c9MWDuvPtT9GIMyPc3jwol1VSlO
    [value] => 4zEcpE2CKcxZxAHTdkSiPL10VSU5cP5vEaQCSaEXmAxJNFN1RyJjvHGGB8pg0I0n4E9zZ_XfaxIJXZUsdoPEoVIXTK0JEhSdusjOKGut6GLnOJAtG0ntjbcehUl7tTuNri98ci1U_-0joJieLIjtxZ119WGrdkyZ0gjH2fInkyQvKjfB9lUW8RNw1QG_OmfdXcvEoYyFBafsTcDcOuyMrisUop-nySM2zEzHX14Usx8b19NvO4Wdcb_a9bhT3JHFdkkN9Fa6iQ0Dqr3_Ddnoa2e3QazmhRF75kEW-4ZQP-yW3YvtAMUDUkMnC_E9HGknS6Mj6dhHFokjkE81Lox10ZiljC8QoN9s0ElADpvEsM8IKxm2aBCwg6sauhS4IBViCqXG2nGE78wZgL94uujncll3osOaEUm4rZZDwmqYF-zZCLfxaz_MWHb6PSi
    [expires] =>
    [path] => /
    [domain] => paypal.com
    )

    [1] => WP_Http_Cookie Object
    (
    [name] => cookie_check
    [value] => yes
    [expires] => 1858434949
    [path] => /
    [domain] => paypal.com
    )

    [2] => WP_Http_Cookie Object
    (
    [name] => navcmd
    [value] => _notify-validate
    [expires] =>
    [path] => /
    [domain] => paypal.com
    )

    [3] => WP_Http_Cookie Object
    (
    [name] => navlns
    [value] => 0.0
    [expires] => 1606146949
    [path] => /
    [domain] => paypal.com
    )

    [4] => WP_Http_Cookie Object
    (
    [name] => Apache
    [value] => 10.72.108.11.1543074949211580
    [expires] => 2489154949
    [path] => /
    [domain] => https://www.sandbox.paypal.com
    )

    [5] => WP_Http_Cookie Object
    (
    [name] => X-PP-SILOVER
    [value] =>
    [expires] => 1
    [path] => /cgi-bin
    [domain] => https://www.sandbox.paypal.com
    )

    )

    [filename] =>
    [http_response] => WP_HTTP_Requests_Response Object
    (
    [response:protected] => Requests_Response Object
    (
    [body] => VERIFIED
    [raw] => HTTP/1.1 200 OK
    Date: Sat, 24 Nov 2018 15:55:49 GMT
    Server: Apache
    X-Frame-Options: SAMEORIGIN
    Set-Cookie: c9MWDuvPtT9GIMyPc3jwol1VSlO=4zEcpE2CKcxZxAHTdkSiPL10VSU5cP5vEaQCSaEXmAxJNFN1RyJjvHGGB8pg0I0n4E9zZ_XfaxIJXZUsdoPEoVIXTK0JEhSdusjOKGut6GLnOJAtG0ntjbcehUl7tTuNri98ci1U_-0joJieLIjtxZ119WGrdkyZ0gjH2fInkyQvKjfB9lUW8RNw1QG_OmfdXcvEoYyFBafsTcDcOuyMrisUop-nySM2zEzHX14Usx8b19NvO4Wdcb_a9bhT3JHFdkkN9Fa6iQ0Dqr3_Ddnoa2e3QazmhRF75kEW-4ZQP-yW3YvtAMUDUkMnC_E9HGknS6Mj6dhHFokjkE81Lox10ZiljC8QoN9s0ElADpvEsM8IKxm2aBCwg6sauhS4IBViCqXG2nGE78wZgL94uujncll3osOaEUm4rZZDwmqYF-zZCLfxaz_MWHb6PSi; domain=.paypal.com; path=/; Secure; HttpOnly
    Set-Cookie: cookie_check=yes; expires=Tue, 21-Nov-2028 15:55:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
    Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
    Set-Cookie: navlns=0.0; expires=Mon, 23-Nov-2020 15:55:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
    Set-Cookie: Apache=10.72.108.11.1543074949211580; path=/; expires=Mon, 16-Nov-48 15:55:49 GMT
    Vary: Accept-Encoding,User-Agent
    Connection: close
    HTTP_X_PP_AZ_LOCATOR: sandbox.slc
    Content-Encoding: gzip
    Paypal-Debug-Id: d3272bd13054a
    Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.WEB.1%26silo_version%3D1880%26app%3Dappdispatcher%26TIME%3D2239035739%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Sat, 24 Nov 2018 16:25:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
    Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=UTF-8
    Strict-Transport-Security: max-age=63072000

    VERIFIED
    [headers] => Requests_Response_Headers Object
    (
    [data:protected] => Array
    (
    [date] => Array
    (
    [0] => Sat, 24 Nov 2018 15:55:49 GMT
    )

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

    [x-frame-options] => Array
    (
    [0] => SAMEORIGIN
    )

    [set-cookie] => Array
    (
    [0] => c9MWDuvPtT9GIMyPc3jwol1VSlO=4zEcpE2CKcxZxAHTdkSiPL10VSU5cP5vEaQCSaEXmAxJNFN1RyJjvHGGB8pg0I0n4E9zZ_XfaxIJXZUsdoPEoVIXTK0JEhSdusjOKGut6GLnOJAtG0ntjbcehUl7tTuNri98ci1U_-0joJieLIjtxZ119WGrdkyZ0gjH2fInkyQvKjfB9lUW8RNw1QG_OmfdXcvEoYyFBafsTcDcOuyMrisUop-nySM2zEzHX14Usx8b19NvO4Wdcb_a9bhT3JHFdkkN9Fa6iQ0Dqr3_Ddnoa2e3QazmhRF75kEW-4ZQP-yW3YvtAMUDUkMnC_E9HGknS6Mj6dhHFokjkE81Lox10ZiljC8QoN9s0ElADpvEsM8IKxm2aBCwg6sauhS4IBViCqXG2nGE78wZgL94uujncll3osOaEUm4rZZDwmqYF-zZCLfxaz_MWHb6PSi; domain=.paypal.com; path=/; Secure; HttpOnly
    [1] => cookie_check=yes; expires=Tue, 21-Nov-2028 15:55:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
    [2] => navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
    [3] => navlns=0.0; expires=Mon, 23-Nov-2020 15:55:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
    [4] => Apache=10.72.108.11.1543074949211580; path=/; expires=Mon, 16-Nov-48 15:55:49 GMT
    [5] => X-PP-SILOVER=name%3DSANDBOX3.WEB.1%26silo_version%3D1880%26app%3Dappdispatcher%26TIME%3D2239035739%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Sat, 24 Nov 2018 16:25:49 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
    [6] => X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
    )

    [vary] => Array
    (
    [0] => Accept-Encoding,User-Agent
    )

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

    [content-encoding] => Array
    (
    [0] => gzip
    )

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

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

    [strict-transport-security] => Array
    (
    [0] => max-age=63072000
    )

    )

    )

    [status_code] => 200
    [protocol_version] => 1.1
    [success] => 1
    [redirects] => 0
    [url] => https://www.sandbox.paypal.com/cgi-bin/webscr
    [history] => Array
    (
    )

    [cookies] => Requests_Cookie_Jar Object
    (
    [cookies:protected] => Array
    (
    [c9MWDuvPtT9GIMyPc3jwol1VSlO] => Requests_Cookie Object
    (
    [name] => c9MWDuvPtT9GIMyPc3jwol1VSlO
    [value] => 4zEcpE2CKcxZxAHTdkSiPL10VSU5cP5vEaQCSaEXmAxJNFN1RyJjvHGGB8pg0I0n4E9zZ_XfaxIJXZUsdoPEoVIXTK0JEhSdusjOKGut6GLnOJAtG0ntjbcehUl7tTuNri98ci1U_-0joJieLIjtxZ119WGrdkyZ0gjH2fInkyQvKjfB9lUW8RNw1QG_OmfdXcvEoYyFBafsTcDcOuyMrisUop-nySM2zEzHX14Usx8b19NvO4Wdcb_a9bhT3JHFdkkN9Fa6iQ0Dqr3_Ddnoa2e3QazmhRF75kEW-4ZQP-yW3YvtAMUDUkMnC_E9HGknS6Mj6dhHFokjkE81Lox10ZiljC8QoN9s0ElADpvEsM8IKxm2aBCwg6sauhS4IBViCqXG2nGE78wZgL94uujncll3osOaEUm4rZZDwmqYF-zZCLfxaz_MWHb6PSi
    [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [domain] => paypal.com
    [path] => /
    [secure] => 1
    [httponly] => 1
    )

    )

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

    [reference_time] => 1543074949
    )

    [cookie_check] => Requests_Cookie Object
    (
    [name] => cookie_check
    [value] => yes
    [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [expires] => 1858434949
    [domain] => paypal.com
    [path] => /
    [secure] => 1
    [httponly] => 1
    )

    )

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

    [reference_time] => 1543074949
    )

    [navcmd] => Requests_Cookie Object
    (
    [name] => navcmd
    [value] => _notify-validate
    [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [domain] => paypal.com
    [path] => /
    [secure] => 1
    [httponly] => 1
    )

    )

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

    [reference_time] => 1543074949
    )

    [navlns] => Requests_Cookie Object
    (
    [name] => navlns
    [value] => 0.0
    [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [expires] => 1606146949
    [domain] => paypal.com
    [path] => /
    [secure] => 1
    [httponly] => 1
    )

    )

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

    [reference_time] => 1543074949
    )

    [Apache] => Requests_Cookie Object
    (
    [name] => Apache
    [value] => 10.72.108.11.1543074949211580
    [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [path] => /
    [expires] => 2489154949
    [domain] => https://www.sandbox.paypal.com
    )

    )

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

    [reference_time] => 1543074949
    )

    [X-PP-SILOVER] => Requests_Cookie Object
    (
    [name] => X-PP-SILOVER
    [value] =>
    [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [expires] => 1
    [domain] => https://www.sandbox.paypal.com
    [path] => /cgi-bin
    )

    )

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

    [reference_time] => 1543074949
    )

    )

    )

    )

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

    )
    [November 24, 2018 3:55 pm] - SUCCESS :Received valid response from PayPal
    [November 24, 2018 3:55 pm] - SUCCESS :Payment Status - Pending
    [November 24, 2018 3:55 pm] - FAILURE :This payment cannot be processed

    Thread Starter seema.sharma24

    (@seemasharma24)

    Payment process completes successfully but no transaction show in business sandbox account and no order stores in WP paypal-> orders section.

    Thread Starter seema.sharma24

    (@seemasharma24)

    Can anyone provide me solution?

    Plugin Author Noor Alam

    (@naa986)

    @seemasharma24, The debug data actually shows what the issue is. The payment is in a pending state. That’s why the orders menu didn’t get updated.

    I’m also having same problem with same status. Why it remains in pending state?

    Plugin Author Noor Alam

    (@naa986)

    @indeshducktaleit, It’s something you need set up in your PayPal account.

    Hallo,

    The problem is the update on the PROD:

    [January 23, 2019 11:26 am] – SUCCESS :Received valid response from PayPal
    [January 23, 2019 11:26 am] – SUCCESS :Payment Status – Completed
    [January 23, 2019 11:26 am] – SUCCESS :Up
    dating order information
    [January 23, 2019 11:26 am] – FAILURE :Order information could not be updated

    It is working with Sandbox:

    [January 22, 2019 7:45 pm] – SUCCESS :Received valid response from PayPal
    [January 22, 2019 7:45 pm] – SUCCESS :Payment Status – Completed
    [January 22, 2019 7:45 pm] – SUCCESS :Updating order information
    [January 22, 2019 7:45 pm] – SUCCESS :Order information updated
    [January 22, 2019 7:45 pm] – SUCCESS :IPN processing completed

    If I check it in the Orders list in the WP then the ‘post_title’ => ‘order’ withot any content and not the ‘post_title’ => $post_id…

    Could you help me what is the problem?

    Thanks

    I set some other debug step into the paypal-ipn.php

    The result:

    [January 23, 2019 12:35 pm] – SUCCESS :Updating order information
    [January 23, 2019 12:35 pm] – SUCCESS :Post id: 127
    [January 23, 2019 12:35 pm] – SUCCESS :Update content: Array
    (
    [discount] => 0.00
    [mc_gross_1] => 1.30
    [insurance_amount] => 0.00
    [mc_handling1] => 0.00
    [num_cart_items] => 1
    [payer_id] => SUS2X646J….
    [address_country_code] => …
    [ipn_track_id] => 5a8e56a….e
    [address_zip] => 2483
    [charset] => windows-1252
    [payment_gross] => 1.30
    [address_status] => confirmed
    [shipping_discount] => 0.00
    [address_street] => …..
    [verify_sign] => Ai.5bQT0IEOAwZz0G2AWlZ32DvJdAboIadpexCYIe……
    [txn_type] => cart
    [receiver_id] => …..
    [payment_fee] => 0.34
    [item_number1] =>
    [mc_currency] => USD
    [transaction_subject] =>
    [shipping_method] => Default
    [custom] =>
    [protection_eligibility] => Eligible
    [quantity1] => 1
    [address_country] => ……
    [payer_status] => verified
    [first_name] => …..
    [item_name1] => S….
    [address_name] => Z….
    [mc_gross] => 1.30
    [payment_date] => 03:11:36 Jan 23, 2019 PST
    [payment_status] => Completed
    [business] => ….
    [last_name] => ….
    [address_state] =>
    [txn_id] => 04027697K756…..
    [mc_fee] => 0.34
    [resend] => true
    [payment_type] => instant
    [notify_version] => 3.8
    [payer_email] => ….
    [receiver_email] => ..
    [address_city] => …
    [residence_country] => ..
    )

    [January 23, 2019 12:35 pm] – SUCCESS :Updated post id: 0
    [January 23, 2019 12:35 pm] – FAILURE :Order information could not be updated

    It tries to update the right post (127)
    But the

    $updated_post = array(
    ‘ID’ => $post_id,
    ‘post_title’ => $post_id,
    ‘post_type’ => ‘wp_paypal_order’,
    ‘post_content’ => $post_content
    );
    $updated_post is empty. -> :Updated post id: 0
    Hmmm…

    Maybe the post_content contains invalid character?

    The solution:

    $updated_post = array(
    ‘ID’ => $post_id,
    ‘post_title’ => $post_id,
    ‘post_type’ => ‘wp_paypal_order’,
    ‘post_content’ => htmlentities($post_content, ENT_QUOTES)
    );

    Please fix it….
    Thanks

    htmlentities($post_content, ENT_QUOTES | ENT_IGNORE, “UTF-8”)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘IN WP paypal Order are not storing’ is closed to new replies.