Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PayPal Commerce plugin. OAuth tokens used for every transaction #7036

Open
renaldas opened this issue Jan 24, 2024 · 0 comments
Open

PayPal Commerce plugin. OAuth tokens used for every transaction #7036

renaldas opened this issue Jan 24, 2024 · 0 comments

Comments

@renaldas
Copy link

renaldas commented Jan 24, 2024

nopCommerce version: 4.60.5

we had many sales recently and encountering rate-limiting issues with PayPal API when requesting OAuth tokens for every transaction.:

Payments.PayPalCommerce error:
One or more errors occurred. ({"name":"RATE_LIMIT_REACHED","debug_id":"82314f17885c7","message":"Too many requests. Blocked due to rate limiting.","links":[]})

After contacting PayPal Merchant Technical Support, it was identified that our system is being rate-limited due to the frequent request of new OAuth tokens for each transaction. PayPal recommends caching tokens to avoid rate-limiting issues.

Recommendation from PayPal Support:

OAuth tokens have a lifespan of around 9 hours and should be reused during that time; however, your system is requesting new OAuth tokens for every transaction. Requesting a new OAuth token for every transaction, at scale, is highly problematic and will result in rate limiting.

To resolve this issue, please ensure your system follows the rate limiting guidelines linked below. If you reach out to your web developer or third-party checkout plugin provider, they can further assist.
"Rather than generate an OAuth 2.0 access token for each transaction, cache tokens."
https://developer.paypal.com/api/rest/reference/rate-limiting/

Impact:
The current approach of requesting new OAuth tokens for every transaction is causing rate-limiting, potentially affecting the overall system performance and transaction processing.

Action Required:
Adjust the system behavior to cache OAuth tokens as recommended by PayPal to avoid rate-limiting issues.

@RomanovM RomanovM added this to the Version 4.70 milestone Jan 24, 2024
@RomanovM RomanovM self-assigned this Jan 24, 2024
@AndreiMaz AndreiMaz changed the title PayPalCommerce plugin. OAuth tokens used for every transaction PayPal Commerce plugin. OAuth tokens used for every transaction Apr 19, 2024
@RomanovM RomanovM modified the milestones: Version 4.70, Version 4.80 Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants