Question: Paypal Callback To Shop Not Working

Paypal Callback To Shop Not Working

hi, I had already entered the error with PayPal and the Shop here. here a little more precisely I have the following problem with the Shop Problem: If the customer orders via PayPal, I do

MM

Marcel Müller

Asked
hi,
I had already entered the error with PayPal and the Shop here. here a little more precisely


I have the following problem with the Shop

Problem: If the customer orders via PayPal, I do not receive an answer that the customer has also paid.
the order is created and shown as not paid. That ist not verry good :-D

If the user clicks on "Return to Merchant" on PayPal after the purchase, he will come back to the page
but with the error (The page you are looking for can not be found. shop/orders)

I think SMA does not receive that the order was paid for.
  • MM

    Marcel Müller

    Answered
    in pay.php Controller i can find the paypal code:

    'return' => urldecode(site_url('pay/pipn')),
    'notify_url' => urldecode(site_url('pay/pipn')),

    but not working.
  • MS

    Mian Saleem

    Answered
    Hello,

    What do you mean by not working? Isn't it redirecting to page or payment is not being updated?

    Did you check server error logs? You can enable app logs by changing the `log_threshold` to 1 in `app/config/config.php` and perform action again to produce errors. Lastly check the latest log file in the `app/logs/` folder.

    Thank you
  • MM

    Marcel Müller

    Answered
    I have now activated the log and again paid for an order via PayPal that went through the shop.
    the payment is open after confirmed payment on paypal. i have the order in the sales table but not the payment.
    and the user go from paypal confirm to an 404error page.

    here the log, the mail Config is via smtp mail not phpmail

    regards Marcel


    <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>


    ERROR - 2021-01-08 11:53:04 --> Severity: Warning --> mt_rand(): max(-1) is smaller than min(0)
    /themes/default/admin/views/auth/login.php 40
    ERROR - 2021-01-08 11:53:04 --> Severity: Notice --> Undefined offset: 0
    /themes/default/admin/views/auth/login.php 40

    ERROR - 2021-01-08 11:54:00 --> Severity: Notice --> Undefined index: HTTP_REFERER /app/controllers/Notify.php 25
    ERROR - 2021-01-08 11:54:00 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:54:00 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:54:00 --> Could not find the language line "i_accept"
    ERROR - 2021-01-08 11:54:00 --> Could not find the language line "send_email_title"
    ERROR - 2021-01-08 11:54:00 --> Could not find the language line "message_sent"
    ERROR - 2021-01-08 11:54:00 --> Could not find the language line "out_of_stock"
    ERROR - 2021-01-08 11:54:00 --> Could not find the language line "x_product"
    ERROR - 2021-01-08 11:54:00 --> Could not find the language line "x_reverted_back"
    ERROR - 2021-01-08 11:54:00 --> Could not find the language line "okay"
    ERROR - 2021-01-08 11:54:00 --> Could not find the language line "email_is_invalid"
    ERROR - 2021-01-08 11:54:00 --> Could not find the language line "full_name"
    ERROR - 2021-01-08 11:54:00 --> Could not find the language line "required_invalid"
    ERROR - 2021-01-08 11:54:02 --> Could not find the language line "new_order_received"
    ERROR - 2021-01-08 11:54:02 --> Severity: Notice --> Undefined property: stdClass::$smtp_oauth2 /app/libraries/Tec_mail.php 52

    ERROR - 2021-01-08 11:54:56 --> Severity: Notice --> Undefined index: HTTP_REFERER /app/controllers/Notify.php 25
    ERROR - 2021-01-08 11:54:56 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:54:56 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:54:56 --> Could not find the language line "i_accept"
    ERROR - 2021-01-08 11:54:56 --> Could not find the language line "send_email_title"
    ERROR - 2021-01-08 11:54:56 --> Could not find the language line "message_sent"
    ERROR - 2021-01-08 11:54:56 --> Could not find the language line "out_of_stock"
    ERROR - 2021-01-08 11:54:56 --> Could not find the language line "x_product"
    ERROR - 2021-01-08 11:54:56 --> Could not find the language line "x_reverted_back"
    ERROR - 2021-01-08 11:54:56 --> Could not find the language line "okay"
    ERROR - 2021-01-08 11:54:56 --> Could not find the language line "email_is_invalid"
    ERROR - 2021-01-08 11:54:56 --> Could not find the language line "full_name"
    ERROR - 2021-01-08 11:54:56 --> Could not find the language line "required_invalid"
    ERROR - 2021-01-08 11:54:57 --> Could not find the language line "new_order_received"
    ERROR - 2021-01-08 11:54:57 --> Severity: Notice --> Undefined property: stdClass::$smtp_oauth2 /app/libraries/Tec_mail.php 52
    ERROR - 2021-01-08 11:54:59 --> Could not find the language line "new_sale"
    ERROR - 2021-01-08 11:55:12 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:55:12 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:55:12 --> Could not find the language line "send_email_title"
    ERROR - 2021-01-08 11:55:12 --> Could not find the language line "message_sent"
    ERROR - 2021-01-08 11:55:12 --> Could not find the language line "out_of_stock"
    ERROR - 2021-01-08 11:55:12 --> Could not find the language line "x_product"
    ERROR - 2021-01-08 11:55:12 --> Could not find the language line "x_reverted_back"
    ERROR - 2021-01-08 11:55:12 --> Could not find the language line "okay"
    ERROR - 2021-01-08 11:55:12 --> Could not find the language line "email_is_invalid"
    ERROR - 2021-01-08 11:55:12 --> Could not find the language line "full_name"
    ERROR - 2021-01-08 11:55:12 --> Could not find the language line "required_invalid"
    ERROR - 2021-01-08 11:55:22 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:55:22 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:55:22 --> Could not find the language line "send_email_title"
    ERROR - 2021-01-08 11:55:22 --> Could not find the language line "message_sent"
    ERROR - 2021-01-08 11:55:22 --> Could not find the language line "out_of_stock"
    ERROR - 2021-01-08 11:55:22 --> Could not find the language line "x_product"
    ERROR - 2021-01-08 11:55:22 --> Could not find the language line "x_reverted_back"
    ERROR - 2021-01-08 11:55:22 --> Could not find the language line "okay"
    ERROR - 2021-01-08 11:55:22 --> Could not find the language line "email_is_invalid"
    ERROR - 2021-01-08 11:55:22 --> Could not find the language line "full_name"
    ERROR - 2021-01-08 11:55:22 --> Could not find the language line "required_invalid"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "subcategory"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "other_products"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "send_email_title"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "message_sent"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "out_of_stock"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "x_product"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "x_reverted_back"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "okay"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "email_is_invalid"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "full_name"
    ERROR - 2021-01-08 11:55:23 --> Could not find the language line "required_invalid"
    ERROR - 2021-01-08 11:55:24 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:55:24 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:55:24 --> Could not find the language line "send_email_title"
    ERROR - 2021-01-08 11:55:24 --> Could not find the language line "message_sent"
    ERROR - 2021-01-08 11:55:24 --> Could not find the language line "out_of_stock"
    ERROR - 2021-01-08 11:55:24 --> Could not find the language line "x_product"
    ERROR - 2021-01-08 11:55:24 --> Could not find the language line "x_reverted_back"
    ERROR - 2021-01-08 11:55:24 --> Could not find the language line "okay"
    ERROR - 2021-01-08 11:55:24 --> Could not find the language line "email_is_invalid"
    ERROR - 2021-01-08 11:55:24 --> Could not find the language line "full_name"
    ERROR - 2021-01-08 11:55:24 --> Could not find the language line "required_invalid"
    ERROR - 2021-01-08 11:56:02 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:56:02 --> Could not find the language line "all_products"
    ERROR - 2021-01-08 11:56:02 --> Could not find the language line "send_email_title"
    ERROR - 2021-01-08 11:56:02 --> Could not find the language line "message_sent"
    ERROR - 2021-01-08 11:56:02 --> Could not find the language line "out_of_stock"
    ERROR - 2021-01-08 11:56:02 --> Could not find the language line "x_product"
    ERROR - 2021-01-08 11:56:02 --> Could not find the language line "x_reverted_back"
    ERROR - 2021-01-08 11:56:02 --> Could not find the language line "okay"
    ERROR - 2021-01-08 11:56:02 --> Could not find the language line "email_is_invalid"
    ERROR - 2021-01-08 11:56:02 --> Could not find the language line "full_name"
    ERROR - 2021-01-08 11:56:02 --> Could not find the language line "required_invalid"
  • EG

    Enyinnaya Gift

    Answered
    Have you done any previous modifications? What version of SMA are you using?
  • MM

    Marcel Müller

    Answered
    we use 3.4.40 we have many language modifications and a own shop theme. we have testest the original shop version
    but the same error, no payment for the sale.
  • MS

    Mian Saleem

    Answered
    Hello,

    Please restore all the original file and try again. If have issue, let me know the server detail so that I can check.

    Thank you
  • Login to Reply