Posts

Recurring PayPal Payment in CodeIgniter with subscribe button

- create function in controller to call view file and pass below details in subscription form <?php $data['loggedInUserID'] = $this->session->userId; $data['paypalURL']   = 'https://www.sandbox.paypal.com/cgi-bin/webscr'; $data['paypalID'] = 'jayesh.borse@gmail.com'; //your paypal business email id  $data['successURL']  = base_url($data['clang'].'/paypal/success'); $data['cancelURL']   = base_url($data['clang'].'/paypal/cancel'); $data['notifyURL']   = base_url($data['clang'].'/paypal/ipn_paypal'); $data['selected_plan'] = $selected_plan; $this->load->view('includes/header',$data); $this->load->view('validation_msg'); $this->load->view('myaccount_sidebar',$data); $this->load->view('acc_type',$data); $this->load->view('includes/footer',$data); ?> - below is the vi...

Upload video on youtube without client authentication using codeigniter

Image
Here we are going to create a form in codeigniter using this form we can upload video on youtube without authentication. - download library from following link  and copy src folder place it in libraries folder. https://github.com/sameerpspaceo/Youtube_Demo step 1) go to google console link where you have to create a project https://console.developers.google.com/apis Step 2) - create new project - go to library tab - enable libraries - YouTube Data API v3, YouTube Analytics API, Gmail API, Google+ API, Google Calendar API Step 3) - create credentials for new project - click on oAuth Client ID. - select Web application from Application type. - give your auth oAuth name - enter you controller Authorized redirect URIs. Auth Redirect Url ex:- http://localhost/example/youtube_controller/youtube_upload - and save it - copy your Client ID and Client secret. Step 4) - if you want to upload video without client authentication you have to follow below steps. - cre...