Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I've followed the documentation to install module and create a sandbox credential on my PayPal account, but Drupal shows this 500 error when I save a new payment gateway with Paypal Checkout.
PHP Fatal error: Class 'Sainsburys\Guzzle\Oauth2\GrantType\ClientCredentials' not found in /xxx/public_html/modules/commerce_paypal/src/ClientCredentials.php on line 10
Drupal Commerce 8.x-2.12 installed with Ludwig
Commerce Paypal 8.x-1.0-beta4
Thanks for the support.
Comment | File | Size | Author |
---|---|---|---|
#6 | error-s.JPG | 17.66 KB | ConradFlashback |
#3 | commerce_paypal-add-ludwig-json-3046124-3.patch | 321 bytes | jsacksick |
Comments
Comment #2
jsacksick CreditAttribution: jsacksick at Centarro for PayPal, Inc commentedCould you try with the attached patch? It looks like you haven't installed the library required by the module.
Comment #3
jsacksick CreditAttribution: jsacksick at Centarro for PayPal, Inc commentedWith the correct patch :).
Comment #5
jsacksick CreditAttribution: jsacksick at Centarro for PayPal, Inc commentedCommitted the patch.
Comment #6
ConradFlashback CreditAttribution: ConradFlashback commentedThanks jsacksick for the fast support.
I've installed dev version and the library in Ludwig panel (see attachment).
But when I create a new payment gateway I now have this error:
Comment #7
ConradFlashback CreditAttribution: ConradFlashback commentedComment #8
jsacksick CreditAttribution: jsacksick at Centarro for PayPal, Inc commentedThe issue you're reporting now is completely unrelated, it looks like you're providing wrong credentials that aren't being validated...
See #3047382: Issues with the credentials validation.
I'm closing this issue.
Comment #10
mediameriquat CreditAttribution: mediameriquat as a volunteer commentedI have the exact same error message :
PHP Fatal error: Class 'Sainsburys\Guzzle\Oauth2\GrantType\ClientCredentials' not found in /xxx/public_html/modules/commerce_paypal/src/ClientCredentials.php on line 10
Commerce Paypal 8.x-1.0-beta5
Drupal Commerce 8.x-2.14 with Ludwig
sainsburys/guzzle-oauth2-plugin properly installed
Client ID and Secret provided
I tried both the beta5 and dev version, and I am still unable to activate a PayPal Gateway. Any hints?
Comment #11
jsacksick CreditAttribution: jsacksick at Centarro for PayPal, Inc commentedYou're obviously missing the library... I personally don't use Ludwig but somebody confirmed the patch was working..
Comment #12
soezkan CreditAttribution: soezkan commentedStill got this "PHP Fatal error: Class 'Sainsburys\Guzzle\Oauth2\GrantType\ClientCredentials' ..."
You say, "You're obviously missing the library..."
What library you referring to?
Comment #13
Vinoth M CreditAttribution: Vinoth M commentedIs there any solution for this? I am also facing the same problem. I am using shared hosting. So I don't have ssh and couldn't install the commerce PayPal via composer. So I used Ludwig for adding libraries. But this issue coming while add payment gateway. Please help me to fix this issue.
Thanks.
Comment #14
pcrex CreditAttribution: pcrex commentedcomposer require gregurco/guzzle-bundle-oauth2-plugin