Welcome Guest, Not a member yet? Register   Sign In
paypal php sdk issue
#1

(This post was last modified: 03-22-2019, 11:46 AM by scatman98.)

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




Theme © iAndrew 2016 - Forum software by © MyBB