• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
paypal php sdk issue

#1
im using this guide for integrating paypal gateway in a website

http://webeasystep.com/blog/view_article...odeigniter

the issue is here

line 195 of paypal.php in controller


Code:
/** Here Write your database logic like that insert record or value in database if you want **/
           $this->paypal->create($Total,$Subtotal,$Tax,$PaymentMethod,$PayerStatus,$PayerMail,$saleId,$CreateTime,$UpdateTime,$State);

code throws an error at this line

Code:
A PHP Error was encountered
Severity: Notice

Message: Undefined property: Paypal::$paypal

Filename: controllers/Paypal.php

Line Number: 195

Backtrace:

File: /opt/lampp/htdocs/new2/application/controllers/Paypal.php
Line: 195
Function: _error_handler

File: /opt/lampp/htdocs/new2/index.php
Line: 315
Function: require_once

An uncaught Exception was encountered
Type: Error

Message: Call to a member function create() on null

Filename: /opt/lampp/htdocs/new2/application/controllers/Paypal.php

Line Number: 195

Backtrace:

File: /opt/lampp/htdocs/new2/index.php
Line: 315
Function: require_once


probably because it can't enter this information into the database?

i have a table called payments with above variables set in mysql database called dbpaypal

how do i enter this information into that table? or otherwise how do i fix this error
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.