Forums / PayPal RESTful support / PayPal RESTful API Payment Module

PayPal RESTful API Payment Module

Views: 84,737

Results 81 to 100 of 491
28 Mar 2024, 1:54 AM
#81
jsquared avatar

jsquared

New Zenner

Join Date:
Dec 2005
Location:
Kalamazoo, MI
Posts:
65
Plugin Contributions:
0

PayPal RESTful API Payment Module

Hello. I'm between a bit of a rock and a hard place. I'm still on 1.5.7D (I know), which this module does not support. It also looks like PayPal is no longer accepting signups for Website Payments Pro so I can't use that module. Express works fine for PayPal, but I want to also use PayPal for credit card transactions. Do I have any viable options short of an upgrade? Would the old Payments Standard work? Could I convert the lang file back to the old format and get the new mod to work in 1.5.7? I figured I'd explore these options before looking at something else like Square.
Thanks much.

J.J. Meddaugh
http://www.atguys.com

28 Mar 2024, 10:14 AM
#82
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

Unless told to do so, PayPal will try to get folks to open an account by "hiding" the option for credit card use after so many times the card is used on their system without an actual PayPal account.

If you have the right PayPal account, you can use the steps at https://myzencarthost.com/index.php?rp=/knowledgebase/8/PayPal-Express-Optional-Credit-Card-Setting.html to setup PayPal Express to always present the credit card option.

I would still go with some other form of credit card processing simply to have a backup if one is down. You never know when one might go down. Square was inop for several hours not too long ago. Twitter was down for 43 minutes this morning and T-Mobile for 39.

neat link - https://downforeveryoneorjustme.com/

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

29 Mar 2024, 3:47 PM
#83
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

BillJ:

Thank you. Log on its way.
I can see from the log that the card failed the CVV check. The customer probably mis-typed it. Despite having an account, they had checked out as a guest using OPC.
I'm not seeing receipt of that log, nor am I able to reproduce on PayPal's sandbox.

1 Apr 2024, 10:55 PM
#84
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: PayPal RESTful API Payment Module

lat9:

I'm not seeing receipt of that log, nor am I able to reproduce on PayPal's sandbox.
I've just had another one this evening. I'll PM for your e-mail address in case I got it wrong last time.

28 Apr 2024, 8:01 PM
#85
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.2 of the PayPal RESTful payment module is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2382

This release contains changes associated with the following GitHub issues:

#13: Full cost breakdown not submitted to PayPal when the order has discounts
#14: Level-3 Data's ships_from_postal_code "doesn't like" intervening blanks
#15: Correct PHP Warning when voiding a transaction.
#16: Show spinner on transition from the webhook to the target page.
#17: "Identify" as a payment module that collects card-data on-site.
#18: Correctly identify 3DS declined transactions; orders were invalidly being created.
#19: Set an error message in the API class when an interface error is detected.
#20: Correct addresses in the "Channel Islands" (and others) being disallowed.
#21: Correct method-/constant-names when a card-declined reason-code isn't recognized.
#22: Adding more "recognized" card-declined reason-codes.

Many thanks to @BillJ for his help in debugging and correcting those 3DS-related issues!

12 May 2024, 1:28 AM
#86
siliconbug avatar

siliconbug

Zen Follower

Join Date:
Apr 2009
Posts:
125
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

ZenCart v1.5.8a
PayPal checkout (RESTful) v1.0.2

PayPal checkout (RESTful) turns itself off and sends an email: "The required notifications in the order_total.php class were not applied; the payment module cannot place orders. The payment module has been automatically disabled."

Error log:

2024-05-11 18:17:15: (checkout_payment) validateCredentials: Checking (1).
TokenCache::get, using saved access-token; expires in 32210 seconds.



2024-05-11 18:17:21: (checkout_confirmation) validateCredentials: Checking (1).
TokenCache::get, using saved access-token; expires in 32204 seconds.



2024-05-11 18:17:21: (checkout_confirmation) pre_confirmation_check starts ...
We are unable to process your PayPal Checkout payment at this time. Please contact us for assistance.

12 May 2024, 2:32 AM
#87
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

siliconbug:

ZenCart v1.5.8a
PayPal checkout (RESTful) v1.0.2

PayPal checkout (RESTful) turns itself off and sends an email: "The required notifications in the order_total.php class were not applied; the payment module cannot place orders. The payment module has been automatically disabled."

Error log:
Did you apply the required core-file changes identified here? https://github.com/lat9/paypalr/wiki/Required-changes-to-%60-includes-classes-order_total.php%60

13 May 2024, 10:32 AM
#89
siliconbug avatar

siliconbug

Zen Follower

Join Date:
Apr 2009
Posts:
125
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

ZCA Bootstrap Template v3.6.5

The zoom in/out setting of my browser is 100%, but the Discover Card logo isn't in the same row. Is there any setting I can adjust in this module?

Attachment 20607

13 May 2024, 12:12 PM
#90
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

siliconbug:

ZCA Bootstrap Template v3.6.5

The zoom in/out setting of my browser is 100%, but the Discover Card logo isn't in the same row. Is there any setting I can adjust in this module?

Attachment 20607

You'll need to provide a template-override for the payment-module's .css file. Copy /includes/modules/payment/paypal/PayPalRestful/paypalr.css to /includes/templates/YOUR_TEMPLATE/css/paypalr.css and then edit this section:

.ppr-button-choice label {
    cursor: pointer;
    height: 2.5rem;
    font-weight: bold;
[B]    width: 11rem;[/B]
    display: inline-block;
    text-align: center;
}

to adjust the width. It looks like **15rem **should work.

13 May 2024, 10:18 PM
#91
siliconbug avatar

siliconbug

Zen Follower

Join Date:
Apr 2009
Posts:
125
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

Thank you!

I copied /includes/modules/payment/paypal/PayPalRestful/paypalr.css to /includes/templates/bootstrap/css/paypalr.css and then changed the width to 15rem or bigger number, but nothing happened.
Attachment 20610

13 May 2024, 10:38 PM
#92
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

siliconbug:

Thank you!

I copied /includes/modules/payment/paypal/PayPalRestful/paypalr.css to /includes/templates/bootstrap/css/paypalr.css and then changed the width to 15rem or bigger number, but nothing happened.
Attachment 20610
My bad. Since you're using the Bootstrap template, copy the paypalr_bootstrap.css file and make the changes there.

13 May 2024, 11:03 PM
#93
siliconbug avatar

siliconbug

Zen Follower

Join Date:
Apr 2009
Posts:
125
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

It works, thank you!

2 Jun 2024, 3:35 PM
#94
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

Cindy,

I am finally getting my 2.0 site up to the point to start testing payment modules. I only saw that this is the new Paypal standard early this morning. We have used Paypal Express almost exclusively to this point. I have read through this entire thread and you mentioned a couple of times that you consider this a Beta release. Is that still accurate?

Also I have installed a new clean 2.0.1 as a dev site on my host and most things are working great (I did the database only upgrade). But I am always uncomfortable testing payment modules. My url for this site is formed like mysite.myhost.com NOT mysite.com so I am curious if that will cause any testing issues. I do have SSL working and that site is trusted. Any thoughts?

I still need to install OPC and EP4 but I am getting close and I wanted to plan out my final testing. I plan to install Zelle and Square as well but Paypal must be working first.

Thanks
Chris

2 Jun 2024, 4:42 PM
#95
lat9 avatar

lat9

Administrator

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

Re: PayPal RESTful API Payment Module

g2ktcf:

Cindy,

I am finally getting my 2.0 site up to the point to start testing payment modules. I only saw that this is the new Paypal standard early this morning. We have used Paypal Express almost exclusively to this point. I have read through this entire thread and you mentioned a couple of times that you consider this a Beta release. Is that still accurate?

Also I have installed a new clean 2.0.1 as a dev site on my host and most things are working great (I did the database only upgrade). But I am always uncomfortable testing payment modules. My url for this site is formed like mysite.myhost.com NOT mysite.com so I am curious if that will cause any testing issues. I do have SSL working and that site is trusted. Any thoughts?

I still need to install OPC and EP4 but I am getting close and I wanted to plan out my final testing. I plan to install Zelle and Square as well but Paypal must be working first.

Thanks
Chris
No longer beta; make sure you get the updates for v1.0.2 of the payment module. This thread's been pretty quiet for a while.

7 Jun 2024, 10:59 AM
#96
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: PayPal RESTful API Payment Module

Paypal RESTful 1.0.2
Zen Cart 1.58a

Today I tried to make a partial refund. When the dialog came up I entered the amount and clicked the blue "Refund" button. When the red "Confirm" button appeared I inadvertently clicked on it twice. When the page refreshed I saw that two separate refunds had been logged so the customer got his refund twice.
Perhaps it would be worth disabling the button(s) once "Confirm" is clicked, or dismissing the dialog. That would also give some feedback that the process has been initiated. Otherwise the only indication is from the browser (for example, Chrome changes the "reload" button to an "X" while loading the page) and it isn't very obvious.

Finally, one minor enhancement would be to place the refund transaction ID on the message stack so it appears at the top of the page like it does on the "old" Paypal module and others. That makes it easier to copy the ID to put in our accounts system when we create a refund, since the ID is right at the top of the page when the page reloads. It isn't a big hassle to scroll down to the messages to find it there, though.

8 Jun 2024, 10:25 PM
#98
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: PayPal RESTful API Payment Module

lat9:

GitHub issue created: https://github.com/lat9/paypalr/issues/23
Thank you! :thumbsup:

13 Jun 2024, 2:58 PM
#99
siliconbug avatar

siliconbug

Zen Follower

Join Date:
Apr 2009
Posts:
125
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

Zen Cart v1.58a
Paypal RESTful v1.0.2
Payment Action: Auth Only

I disable PayPal Express Checkout and enable Paypal RESTful today.

There are two orders. The 1st order is paid by PayPal Wallet, and the 2nd order is paid by Credit Card.

The 1st payment goes through, but the 2nd order gives me an error:

The payment module's observer (auto.paypalrestful.php) was not loaded; the payment module has been disabled. The payment module has been automatically disabled.

Both orders get this error when I capture the payments, but I can get correct $$ into my PayPal account:

Request URI: /ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID - assumed 'MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID' (this will throw an Error in a future version of PHP) in /zencart/ipn_main_handler.php on line 475.

Something under PayPal Transactions doesn't look right.

[Attachment no longer available]

Should I remove PayPal Express Checkout completely? Or any possible issue I missed?

13 Jun 2024, 3:27 PM
#100
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

Re: PayPal RESTful API Payment Module

Why would I be getting an expired token? This is me trying to ENABLE the RESTful module.

2024-06-13 08:25:24: () validateCredentials: Checking ().
TokenCache::clear, clearing cached token.
The curlPost (v1/oauth2/token) request was unsuccessful.
{
"errNum": 401,
"errMsg": "An expired-token error was received.",
"curlErrno": 0,
"name": "n\/a",
"message": "n\/a",
"details": "n\/a",
"debug_id": "n\/a"
}
CURL Options: {
"78": 10,
"52": false,
"75": true,
"74": true,
"42": 0,
"19913": true,
"13": 45,
"47": true,
"10002": "https:\/\/api-m.paypal.com\/v1\/oauth2\/token"
}
************************************************

************************************************

2024-06-13 08:25:24: () validateCredentials: Checking ().
TokenCache::clear, clearing cached token.
The curlPost (v1/oauth2/token) request was unsuccessful.
{
"errNum": 401,
"errMsg": "An expired-token error was received.",
"curlErrno": 0,
"name": "n\/a",
"message": "n\/a",
"details": "n\/a",
"debug_id": "n\/a"
}
CURL Options: {
"78": 10,
"52": false,
"75": true,
"74": true,
"42": 0,
"19913": true,
"13": 45,
"47": true,
"10002": "https:\/\/api-m.paypal.com\/v1\/oauth2\/token"
}
************************************************