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

im using this guide for integrating paypal gateway in a website


the issue is here

line 195 of paypal.php in controller

/** Here Write your database logic like that insert record or value in database if you want **/

code throws an error at this line

A PHP Error was encountered
Severity: Notice

Message: Undefined property: Paypal::$paypal

Filename: controllers/Paypal.php

Line Number: 195


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


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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