Welcome Guest, Not a member yet? Register   Sign In
add paypal as library
#1

Hello,
i want use paypal sdk (expresscheckout) on my website CI4
How i can use the paypal as library?
thanks
Reply
#2

(This post was last modified: 08-23-2020, 09:02 AM by jreklund.)

There are no need to implement it in CodeIgniter itself, just use their own PHP SDK:
https://github.com/paypal/Checkout-PHP-SDK
https://developer.paypal.com/docs/checko...setup-sdk/

https://developer.paypal.com/docs/checkout/

Code:
// Just remove this line from all their example:
require __DIR__ . '/vendor/autoload.php';

// And add \ in front of all their use
use \Sample\PayPalClient;
use \PayPalCheckoutSdk\Orders\OrdersGetRequest;
Reply
#3

thanks for your reply,
but where and how i uplaod the paypal SDK in my website directories?
Reply
#4

Check my second link above, installation instruction are in their docs.

TLDR; You install it with Composer and get a /vendor/ folder in your CodeIgniter folder.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB