Class 'PayPalCheckoutSdk\Orders\OrdersAuthorizeRequest' not found

BurakUeda
Contributor
Contributor

Hi,

I am trying to authorize an order before capturing it, using information from this page:

https://developer.paypal.com/docs/checkout/reference/server-integration/authorize-transaction/#

However, I can't find the OrdersAuthorizeRequest class anywhere.

Can anyone help?

Thanks.

Login to Me Too
1 REPLY 1

NewSemantics
New Community Member

Just download the following repositories:

https://github.com/paypal/Checkout-PHP-SDK

https://github.com/paypal/paypalhttp_php

 

and copy the content of the folder 'lib' to 'paypal/rest-api-sdk-php/lib/' of the PayPal Rest API SDK for PHP. The autoloader will then load everything.

This also works for other Order Classes are used for payments.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.