Forums / PayPal RESTful support / PayPal RESTful API Payment Module

PayPal RESTful API Payment Module

Views: 84,737

Results 41 to 60 of 491
8 Feb 2024, 8:22 PM
#41
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

PayPal RESTful API Payment Module

Bubbadood:

Sorry for the obvious question, once this is up and running I assume it's recommended to disable PayPal Payments Pro and PayPal Express Checkout ?

To be very specific, the recommended operation will be to retire the old modules. See documentation:

https://docs.zen-cart.com/user/payment/paypal_restful/

https://docs.zen-cart.com/user/payment/retirement/

In 2.0.0, this can be done through the admin; in prior versions it requires a code tweak (shown on the second help page above).

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Feb 2024, 9:17 AM
#42
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

swguy:

To be very specific, the recommended operation will be to retire the old modules. See documentation:

https://docs.zen-cart.com/user/payment/paypal_restful/

https://docs.zen-cart.com/user/payment/retirement/

In 2.0.0, this can be done through the admin; in prior versions it requires a code tweak (shown on the second help page above).

Thank you for the clarification @swguy

Simon

9 Feb 2024, 5:44 PM
#43
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

Maybe another silly question, is this okay to use for UK paypal? As recently paypal pro was stopped for most here due to the verified updates. I did move to another payment provider, but interesting to see how this goes in the future.

9 Feb 2024, 5:50 PM
#44
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,848
Plugin Contributions:
17

Re: PayPal RESTful API Payment Module

Is the pre-158 retirement procedure needed witht the mod not supporting pre-158?

Asking for a friend:P

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

9 Feb 2024, 5:58 PM
#45
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

Re: PayPal RESTful API Payment Module

It doesn't say "pre-1.5.8" it says "1.5.8 and Prior." I am highly confident that someone will (at least attempt to) do the fiddling to make it work on a pre-1.5.8 site.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Feb 2024, 6:12 PM
#46
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,848
Plugin Contributions:
17

Re: PayPal RESTful API Payment Module

Just wondering if we should send non-coders like myself on a Don Quixote mission. :P

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

9 Feb 2024, 7:34 PM
#47
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

Re: PayPal RESTful API Payment Module

I can change it to "Prior to 2.0.0" for clarity.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Feb 2024, 10:57 PM
#48
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: PayPal RESTful API Payment Module

HeathenMagic:

Maybe another silly question, is this okay to use for UK paypal? As recently paypal pro was stopped for most here due to the verified updates. I did move to another payment provider, but interesting to see how this goes in the future.
I've not tried on a UK PayPal site, but based on PayPal's documentation I *believe *that the payment module should work for UK PayPal as well.

13 Feb 2024, 2:41 PM
#50
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: PayPal RESTful API Payment Module

v1.0.1 of the payment module is now available for download.

This release corrects GitHub issue #12 (PHP Parse error occurs when doing transaction void).

14 Feb 2024, 3:34 PM
#51
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,297
Plugin Contributions:
39

Re: PayPal RESTful API Payment Module

Having some issues with v1.0.1 ... 2 different sites, both fresh plugin installs as well as 1 upgrade, which is unaffected & without error is (Zen 1.5.8; PHP 7.4.33; bootstrap 3.5.2; OPC 2.4.5)

#1 Zen 1.5.8; PHP 7.4.33; bootstrap 3.5.0; OPC 2.4.5
#2 Zen 1.5.8; PHP 7.4.33; bootstrap 3.5.0; OPC 2.4.5

Logs

[14-Feb-2024 15:23:38 UTC] Request URI: /XXX/index.php?cmd=modules&set=payment&module=paypalr, IP address: 000.000.000.000
#1 paypaldp->__construct() called at [/home/XXXX/public_html/XXX/modules.php:187]
#2 require(/home/XXXX/public_html/XXX/modules.php) called at [/home/XXXX/public_html/XXX/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/XXXX/public_html/includes/modules/payment/paypaldp.php on line 268.

[14-Feb-2024 15:23:38 UTC] Request URI: /XXX/index.php?cmd=modules&set=payment&module=paypalr, IP address: 000.000.000.000
#1 paypaldp->__construct() called at [/home/XXXX/public_html/XXX/modules.php:187]
#2 require(/home/XXXX/public_html/XXX/modules.php) called at [/home/XXXX/public_html/XXX/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/XXXX/public_html/includes/modules/payment/paypaldp.php on line 268.

[14-Feb-2024 15:23:38 UTC] Request URI: /XXX/index.php?cmd=modules&set=payment&module=paypalr, IP address: 000.000.000.000
#1 paypaldp->__construct() called at [/home/XXXX/public_html/XXX/modules.php:187]
#2 require(/home/XXXX/public_html/XXX/modules.php) called at [/home/XXXX/public_html/XXX/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/XXXX/public_html/includes/modules/payment/paypaldp.php on line 282.

[14-Feb-2024 15:23:38 UTC] Request URI: /XXX/index.php?cmd=modules&set=payment&module=paypalr, IP address: 000.000.000.000
#1 paypaldp->__construct() called at [/home/XXXX/public_html/XXX/modules.php:187]
#2 require(/home/XXXX/public_html/XXX/modules.php) called at [/home/XXXX/public_html/XXX/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/XXXX/public_html/includes/modules/payment/paypaldp.php on line 282.

[14-Feb-2024 15:23:38 UTC] Request URI: /XXX/index.php?cmd=modules&set=payment&module=paypalr, IP address: 000.000.000.000
#1 paypaldp->__construct() called at [/home/XXXX/public_html/XXX/modules.php:187]
#2 require(/home/XXXX/public_html/XXX/modules.php) called at [/home/XXXX/public_html/XXX/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/XXXX/public_html/includes/modules/payment/paypaldp.php on line 283.

[14-Feb-2024 15:23:38 UTC] Request URI: /XXX/index.php?cmd=modules&set=payment&module=paypalr, IP address: 000.000.000.000
#1 paypaldp->__construct() called at [/home/XXXX/public_html/XXX/modules.php:187]
#2 require(/home/XXXX/public_html/XXX/modules.php) called at [/home/XXXX/public_html/XXX/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/XXXX/public_html/includes/modules/payment/paypaldp.php on line 283.

[14-Feb-2024 15:23:38 UTC] Request URI: /XXX/index.php?cmd=modules&set=payment&module=paypalr, IP address: 000.000.000.000
#1 paypaldp->__construct() called at [/home/XXXX/public_html/XXX/modules.php:187]
#2 require(/home/XXXX/public_html/XXX/modules.php) called at [/home/XXXX/public_html/XXX/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed 'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a future version of PHP) in /home/XXXX/public_html/includes/modules/payment/paypaldp.php on line 283.


2024-02-14 15:08:11: (checkout_one) validateCredentials: Checking (1).
TokenCache::clear, clearing cached token.
The curlPost (v1/oauth2/token) request was successful (200).
{
"token_type": "Bearer",
"expires_in": 32007
}
TokenCache::save, saving access-token; valid for 32007 seconds.



2024-02-14 15:08:18: (checkout_one) validateCredentials: Checking (1).
TokenCache::get, using saved access-token; expires in 32000 seconds.



2024-02-14 15:08:18: (checkout_one_confirmation) validateCredentials: Checking (1).
TokenCache::get, using saved access-token; expires in 32000 seconds.



2024-02-14 15:08:18: (checkout_one_confirmation) pre_confirmation_check starts ...
We are unable to process your PayPal Checkout payment at this time. Please contact us for assistance.


2024-02-14 15:09:00: (checkout_one) validateCredentials: Checking (1).
TokenCache::get, using saved access-token; expires in 31958 seconds.



2024-02-14 15:09:03: (checkout_one) validateCredentials: Checking (1).
TokenCache::get, using saved access-token; expires in 31955 seconds.



2024-02-14 15:09:03: (checkout_one_confirmation) validateCredentials: Checking (1).
TokenCache::get, using saved access-token; expires in 31955 seconds.



2024-02-14 15:09:03: (checkout_one_confirmation) pre_confirmation_check starts ...
We are unable to process your PayPal Checkout payment at this time. Please contact us for assistance.


2024-02-14 15:08:57: () validateCredentials: Checking ().The curlPost (v1/oauth2/token) request was successful (200).
{
"token_type": "Bearer",
"expires_in": 31961
}



2024-02-14 15:08:57: () validateCredentials: Checking ().The curlPost (v1/oauth2/token) request was successful (200).
{
"token_type": "Bearer",
"expires_in": 31960
}


I also have an OPC log that looks ok, I can pm you if needed.

Thanks
~Melanie

14 Feb 2024, 5:31 PM
#52
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: PayPal RESTful API Payment Module

Those logs are being generated by paypaldp, not paypalr:

--> PHP Warning: Use of undefined constant  MODULE_PAYMENT_PAYPALDP_DEBUGGING - assumed  'MODULE_PAYMENT_PAYPALDP_DEBUGGING' (this will throw an Error in a  future version of PHP) in  /home/XXXX/public_html/includes/[B]modules/payment/paypaldp.php[/B] on line  268.
14 Feb 2024, 6:18 PM
#53
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,297
Plugin Contributions:
39

Re: PayPal RESTful API Payment Module

mprough:

Having some issues with v1.0.1 ... 2 different sites, both fresh plugin installs as well as 1 upgrade, which is unaffected & without error is (Zen 1.5.8; PHP 7.4.33; bootstrap 3.5.2; OPC 2.4.5)

#1 Zen 1.5.8; PHP 7.4.33; bootstrap 3.5.0; OPC 2.4.5
#2 Zen 1.5.8; PHP 7.4.33; bootstrap 3.5.0; OPC 2.4.5

Logs

I also have an OPC log that looks ok, I can pm you if needed.

Thanks
~Melanie

I know, but no logs before the installation, thought it might be related. The new plugin isn't working, gives me "We are unable to process your PayPal Checkout payment at this time. Please contact us for assistance."

14 Feb 2024, 6:37 PM
#54
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: PayPal RESTful API Payment Module

mprough:

I know, but no logs before the installation, thought it might be related. The new plugin isn't working, gives me "We are unable to process your PayPal Checkout payment at this time. Please contact us for assistance."
Did paypalr auto-disable itself for some reason?

14 Feb 2024, 8:19 PM
#55
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,297
Plugin Contributions:
39

Re: PayPal RESTful API Payment Module

lat9:

Did paypalr auto-disable itself for some reason?

Yes, everytime.

19 Feb 2024, 12:28 PM
#56
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,297
Plugin Contributions:
39

Re: PayPal RESTful API Payment Module

mprough:

Yes, everytime.

To be clear, I set up the module... test transaction causes "We are unable to process your PayPal Checkout payment at this time. Please contact us for assistance." and the plugin turns itself off.

=)
Melanie

19 Feb 2024, 3:21 PM
#57
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: PayPal RESTful API Payment Module

@mprough, you'd indicated

Having some issues with v1.0.1 ... 2 different sites, both fresh plugin  installs as well as 1 upgrade, which is unaffected & without error  is (Zen 1.5.8; PHP 7.4.33; bootstrap 3.5.2; OPC 2.4.5)

#1 Zen 1.5.8; PHP 7.4.33; bootstrap 3.5.0; OPC 2.4.5
#2 Zen 1.5.8; PHP 7.4.33; bootstrap 3.5.0; OPC 2.4.5

Are all three sites running on the same server?

In reviewing the changes from Bootstrap 3.5.0 to 3.5.2, I'm not seeing anything that stands out as a potential source of the issue. I'll note, though, that my testing was done with Zen Cart 1.5.8a and Bootstrap 3.6.2.

19 Feb 2024, 3:39 PM
#58
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,297
Plugin Contributions:
39

Re: PayPal RESTful API Payment Module

lat9:

@mprough, you'd indicated

Having some issues with v1.0.1 ... 2 different sites, both fresh plugin installs as well as 1 upgrade, which is unaffected & without error is (Zen 1.5.8; PHP 7.4.33; bootstrap 3.5.2; OPC 2.4.5)

#1 Zen 1.5.8; PHP 7.4.33; bootstrap 3.5.0; OPC 2.4.5
#2 Zen 1.5.8; PHP 7.4.33; bootstrap 3.5.0; OPC 2.4.5

> Are all three sites running on the same server?  
> 
> In reviewing the changes from Bootstrap 3.5.0 to 3.5.2, I'm not seeing anything that stands out as a potential source of the issue.  I'll note, though, that my testing was done with Zen Cart 1.5.8**a** and Bootstrap 3.6.2.

I actually have 5 of these now. 3 on the same servers, 4 servers in all... 3 different hosts
19 Feb 2024, 3:58 PM
#59
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: PayPal RESTful API Payment Module

mprough:

I actually have 5 of these now. 3 on the same servers, 4 servers in all... 3 different hosts
... and the respective Zen Cart, PHP, OPC and Bootstrap versions?

19 Feb 2024, 4:12 PM
#60
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,297
Plugin Contributions:
39

Re: PayPal RESTful API Payment Module

lat9:

... and the respective Zen Cart, PHP, OPC and Bootstrap versions?

very similar