Question: Paypal Not Capture Payment

Paypal Not Capture Payment

After payment appear Error! 404 Not Found! The page you are looking for can not be found. cart/checkout How to start trouble shoot?

S

Stephen

Asked

After payment appear

Error! 404 Not Found! The page you are looking for can not be found.

cart/checkout

How to start trouble shoot?

  • S

    Stephen

    Answered

    “POST /pay/pipn HTTP/1.1” 302 5 “-” “PayPal IPN ( https://www.paypal.com/ipn )”

  • S

    Stephen

    Answered

    “POST /errors/csrf HTTP/1.1” 302 5 “-” “PayPal IPN ( https://www.paypal.com/ipn )” “-”

  • MS

    Mian Saleem

    Answered

    Hello,

    You need to check your server error logs.

    If you have enabled ssl, please make sure that the base_url in app/config/config.php to set it to https://

    If you need to enable app logs, you can change the log_threshold to 1 in above config file then visit the pages again to produce errors. Lastly check the latest error log file in app/logs/ folder.

    Thank you

  • S

    Stephen

    Answered

    The log I given is the error log POST /errors/csrf HTTP/1.1" 302 5 “-” "PayPal IPN ( https://www.paypal.com/ipn ). It happen when PayPal send back the request can’t be verified. Https is enabled and redirect all port to 443 using sectigo cert.

  • S

    Stephen

    Answered

    Only work when I disable this CSRF in app/config/config.php

    |--------------------------------------------------------------------------
    | Cross Site Request Forgery
    |--------------------------------------------------------------------------
    | Enables a CSRF cookie token to be set. When set to TRUE, token will be
    | checked on a submitted form. If you are accepting user data, it is strongly
    | recommended CSRF protection be enabled.
    |
    | 'csrf_token_name' = The token name
    | 'csrf_cookie_name' = The cookie name
    | 'csrf_expire' = The number in seconds the token should expire.
    | 'csrf_regenerate' = Regenerate token on every submission
    | 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
    */
    $config['csrf_protection']   = true;
    
  • MS

    Mian Saleem

    Answered

    Hello,

    If you see the config pay/[a-z]+ is already added to the csrf_exclude_uris You can add explicitly /pay/pipn if you want.

    Thank you

  • S

    Stephen

    Answered

    Fixed, is that anyway to check what the updated files that you all changed when perform update?

    $config[‘csrf_exclude_uris’] = array(‘pay/[a-z]+’, ‘admin/welcome/image_upload’);

  • LC

    Luis Alonso Rodriguez Carrillo

    Answered

    Was the payment by paypal solved? version 3.4.50 will be fine Thanks

  • LC

    Luis Alonso Rodriguez Carrillo

    Answered

    this is what he sent me

    ERROR - 2021-11-20 22:41:06 --> Could not find the language line “today” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “shop” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “toggle_alignment” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “quantity_alerts” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “expiry_alerts” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “sales_x_delivered” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “manual_payments” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “today_profit” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “promos” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “list_printers” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “add_printer” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “expense_categories” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “site_logs” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “backups” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “front_end” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “shop_settings” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “slider_settings” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “list_pages” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “add_page” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “sms_settings” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “send_sms” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “sms_log” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “browse” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “ordered” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “due” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “transferring” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “download” ERROR - 2021-11-20 22:41:06 --> Could not find the language line “required_invalid” ERROR - 2021-11-20 22:41:13 --> Could not find the language line “today” ERROR - 2021-11-20 22:41:13 --> Could not find the language line “logout_successful” ERROR - 2021-11-20 22:41:13 --> Could not find the language line “logout_successful” ERROR - 2021-11-20 22:41:13 --> Could not find the language line “type_email_to_reset” ERROR - 2021-11-20 22:41:37 --> Could not find the language line “new_sale”

  • MS

    Mian Saleem

    Answered

    Luis Alonso Rodriguez Carrillo Please edit app/config/config.php and update the csrf_exclude_uris to array('pay/[a-z]+', 'admin/welcome/image_upload')

    $config['csrf_exclude_uris'] = array('pay/[a-z]+', 'admin/welcome/image_upload');
    

    Thank you

  • Login to Reply