Re: PayPal RESTful API Payment Module
Quote:
Originally Posted by
Jeff_Mash
I just got this email from PayPal:
Code:
Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:
https://www.mydomain.com/store/ipn_main_handler.php
When I look at the logs, I see this error:
Code:
[20-Sep-2024 09:07:50 America/Los_Angeles] Request URI: /store/ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
#0 /home/domain/public_html/store/includes/modules/payment/paypal/paypal_functions.php(367): zen_debug_error_handler()
#1 /home/domain/public_html/store/ipn_main_handler.php(446): ipn_create_order_update_array()
--> PHP Warning: Undefined array key "pending_reason" in /home/domain/public_html/store/includes/modules/payment/paypal/paypal_functions.php on line 367.
[20-Sep-2024 09:07:50 America/Los_Angeles] Request URI: /store/ipn_main_handler.php, IP address: 173.0.81.140
--> PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID" in /home/domain/public_html/store/ipn_main_handler.php:475
Stack trace:
#0 {main}
thrown in /home/domain/public_html/store/ipn_main_handler.php on line 475.
Seems like it could be related. I don't think our server went down or anything, so could this be something else?
Correction provided in Zen Cart 2.0.0 via this PR: https://github.com/zencart/zencart/pull/6316
Re: PayPal RESTful Suddenly stopped allowing successful checkout. Throwing Curl Error
Good morning. Hoping for some help.
Paypal Restful 1.0.4 stopped working for us on 9/17. No changes had been made to any files. Upgrade to 1.0.4 in August had been working fine. I checked/ re-installed all files and re-checked all steps. Everything looks fine.
Checkout seems to all work, but customer gets error message saying, "unable to process Paypal at this time."
ZC 1.5.8a; Paypal 1.0.4
Turned on error logging and tried it myself:
Logfile includes:
Line 134: The curlPost (v2/checkout/orders) request was successful (200).
Line 242: The curlPost (v2/checkout/orders/6NH65985XU492371R/confirm-payment-source) request was successful (200).
Line 334: The curlGet (v2/checkout/orders/6NH65985XU492371R) request was successful (200).
Line 457: 2024-09-25 09:17:01: (index) Order's status set to APPROVED; posting back to checkout_one_confirmation.
Line 473: 2024-09-25 09:17:01: (checkout_one_confirmation) pre_confirmation_check, completed for payment-source paypal.
Lines: 484-493:
TokenCache::get, using saved access-token; expires in 31559 seconds.
handleCurlError for curlPost (v2/checkout/orders/6NH65985XU492371R/authorize) : CURL error ({
"errNum": -2,
"errMsg": "Operation timed out after 45002 milliseconds with 0 bytes received",
"curlErrno": 28,
"name": "n\/a",
"message": "n\/a",
"details": "n\/a",
"debug_id": "n\/a"
}
Line 506: 2024-09-25 09:17:46: (checkout_process) ==> End authorizeOrderWe are unable to process your PayPal Checkout payment at this time. Please contact us for assistance.
From my standpoint as the customer, everything looked fine: logged into Paypal, selected payment method, clicked confirm.
Any hints as to what needs to be done?
Thank you.
Re: PayPal RESTful Suddenly stopped allowing successful checkout. Throwing Curl Error
Quote:
Originally Posted by
apollowilcox
Good morning. Hoping for some help.
Paypal Restful 1.0.4 stopped working for us on 9/17. No changes had been made to any files. Upgrade to 1.0.4 in August had been working fine. I checked/ re-installed all files and re-checked all steps. Everything looks fine.
Checkout seems to all work, but customer gets error message saying, "unable to process Paypal at this time."
ZC 1.5.8a; Paypal 1.0.4
Turned on error logging and tried it myself:
Logfile includes:
Line 134: The curlPost (v2/checkout/orders) request was successful (200).
Line 242: The curlPost (v2/checkout/orders/6NH65985XU492371R/confirm-payment-source) request was successful (200).
Line 334: The curlGet (v2/checkout/orders/6NH65985XU492371R) request was successful (200).
Line 457: 2024-09-25 09:17:01: (index) Order's status set to APPROVED; posting back to checkout_one_confirmation.
Line 473: 2024-09-25 09:17:01: (checkout_one_confirmation) pre_confirmation_check, completed for payment-source paypal.
Lines: 484-493:
TokenCache::get, using saved access-token; expires in 31559 seconds.
handleCurlError for curlPost (v2/checkout/orders/6NH65985XU492371R/authorize) : CURL error ({
"errNum": -2,
"errMsg": "Operation timed out after 45002 milliseconds with 0 bytes received",
"curlErrno": 28,
"name": "n\/a",
"message": "n\/a",
"details": "n\/a",
"debug_id": "n\/a"
}
Line 506: 2024-09-25 09:17:46: (checkout_process) ==> End authorizeOrderWe are unable to process your PayPal Checkout payment at this time. Please contact us for assistance.
From my standpoint as the customer, everything looked fine: logged into Paypal, selected payment method, clicked confirm.
Any hints as to what needs to be done?
Thank you.
Sounds like your webhost might have changed something.
Re: PayPal RESTful Suddenly stopped allowing successful checkout. Throwing Curl Error
Deleting original post. We had accidentally clicked on the EDIT order button which caused the error in question. Doesn't seem related to the PayPal Restful module.
Re: PayPal RESTful Suddenly stopped allowing successful checkout. Throwing Curl Error
I posted elsewhere about this same warning from Paypal, and only then saw the reference to this thread. I see that it is valid for 1.58. Can anyone confirm that it will work with 1.57 as well?
Re: PayPal RESTful Suddenly stopped allowing successful checkout. Throwing Curl Error
Quote:
Originally Posted by
HeleneWallis
I posted elsewhere about this same warning from Paypal, and only then saw the reference to this thread. I see that it is valid for 1.58. Can anyone confirm that it will work with 1.57 as well?
If "it" is the PayPal RESTful payment module, the answer is "No"; the module requires Zen Carts 1.5.8a or later.
Re: PayPal RESTful Suddenly stopped allowing successful checkout. Throwing Curl Error
The module discussed in this thread is different from the built-in PayPal modules in Zen Cart.
See https://docs.zen-cart.com/user/payment/paypal_overview/ for details.
1 Attachment(s)
Re: PayPal RESTful API Payment Module
Is it just me or is the following backwards?
Attachment 20812
If I select True, everyone can use CC from PayPal.
If I select False, only registered customers can use CC from PayPal.
Ther wording seems to be correct, but the action when selecting True or False seems to be reversed.
:huh:
Re: PayPal RESTful API Payment Module
Quote:
Originally Posted by
dbltoe
Is it just me or is the following backwards?
Attachment 20812
If I select True, everyone can use CC from PayPal.
If I select False, only registered customers can use CC from PayPal.
Ther wording seems to be correct, but the action when selecting True or False seems to be reversed.
:huh:
I think it's just you.:blush:
true ... anyone checking out (guests included) can use credit cards
false ... no one can use credit cards
Account-Holders Only ... anyone with an account can use credit cards, i.e. guest customers cannot.
Re: PayPal RESTful API Payment Module
Do you consider the same results if you slightly modify what is being stated?
Essentially, it is say do you want to limit and the default is no. (false)
However, selecting that I do want to limit, gives access to all.
Perhaps "If you are using One Page Checkout, you can limit credit card payments. Who can access your store's credit card processing? Default Everyone.
Everyone
No One
Account Holders Only
That covers all the bases although I can't think of a scenario where a business would want to deny CC processing completely unless they're a street-corner, cash-only business.:P
I'm probably number 1189 on the top ten list of PHP knowledge but I do have an extensive English background with three English majors in the family. They all guessed that the selection of false let everyone process. All based on the emphasis on limit.