hi,, i m getting Fatal error: Class CI_Session_database_driver contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (SessionHandlerInterface::read) in C:\xampp\htdocs\paypal\system\libraries\Session\drivers\Session_database_driver.php on line 49 what could be causing this i imported your .sql to create tables and all . it worked firs time i think now its cause problem
tnx for reply, i got the solution after sometime of research . the issue was nothing just restarted the apache server it got fixed . but then now issue come in. When i m clicking on pay button its showing an error like this Message: Call to a member function getMessage() on null Filename: C:\xampp\htdocs\paypal\application\libraries\PayPal-PHP-SDK\paypal est-api-sdk-php\sample\common.php Line Number: 119 if you can please take a look. btw i m using your source code that you have on bitbucket no modification to that
Hi, I have a question; If i want to integrate a paypal gateway into my client website, do I need to guide him on how to create a business account and where to find API credentials to hand them to me? or is there an easier and better way? Because sometimes it is hard to tell them what to do and how to do it. This is not just for paypal api, any other api such as google or twitter? I want to know what you do in these situations? I hope you understood my question-sorry for my bad English. Your help is highly appreciated.
no worries mohamed, in these situations I have two options, if the client trusted me I do it myself,if not i give him an article or video tutorial to know how to do it ,then in the back-end i put inputs to fill without worries about what going behind the scene
I am Phasing this error and i Load a Library in autoload.php Message: require_once(public_html/CodeIgniter-3.1.101/application/libraries/paypal-php-sdk/paypal/rest-api-sdk-php/sample/bootstrap.php): failed to open stream: No such file or directory
Great Video. I have a quick question. On our e-commerce website made with PHP, we are able to accept payment in EUR but not in USD. Can you please tell the fault. We have added the codes for both the currencies but we are facing problem only with USD not in accepting any other currency. Please advise further, Thanks.
Hi, when I tested in local it's working really good but when I try this in live like under cpanel and aws hosting, its ending up with the errors. Severity: Warning Message: require_once(/var/www/html/application/libraries/paypal-php-sdk/paypal/rest-api-sdk-php/sample/bootstrap.php): failed to open stream: No such file or directory Filename: controllers/Paypal.php Line Number: 3 & Message: require_once(): Failed opening required '/var/www/html/application/libraries/paypal-php-sdk/paypal/rest-api-sdk-php/sample/bootstrap.php' (include_path='.:/usr/share/php') Filename: controllers/Paypal.php Line Number: 3 Please let me know what I was missing here. -Thanks
I appreciate your knowledge and information. I'd like to ask, if I have a Personal Account in paypal, can I use it for implementing PayPal getaway, or should I sign up for a new business account? or, can I convert my personal to business?? Thanks a lot again.
there is one thing if you are using 7.2.2 version or above it will give error ""sizeof(): Parameter must be an array or an object that implements Countable in paypal sdk error" like this you can fixe it easlly by adding this ""elseif (is_array($v) && sizeof($v)
My error C:\xampp\htdocs\jmnew\application\libraries/paypal-php-sdk/paypal/rest-api-sdk-php/sample/bootstrap.php failed to open stream: No such file or directory
it shows an error Message: sizeof(): Parameter must be an array or an object that implements Countable Filename: Common/PayPalModel.php Line Number: 179 not able to debug
When I am clicking on Pay now it's going to -> domain_name .com/paypal/paypal/create_payment_with_paypal (which is showing a 404 page not found error) How to fix it bro?
hello sir how can i fix this error?? Type: Error Message: Call to a member function toArray() on string Filename: C:\xampp\htdocs\TTPH\application\libraries\PayPal-PHP-SDK\paypal est-api-sdk-php\lib\PayPal\Common\PayPalModel.php Line Number: 178
Thanks man! Appreciate it! I have this problem, the design is not working. Maybe you know why the design doesn't apply to the web page where there's a Pay Now button, because every time I click that button is says error 404.
I don't understand how codeigniter works man, I downloaded CodeIgniter 3.x in their website but idk what to do next, sorry if I make things difficult for you.
because you should aware of the other fields that depends on quantity field,because if you have one item with price ten dollars is equal total ten but 3 items will make total is thirty dollars
hi ryan it is very easy to set shipping address just follow answer here stackoverflow.com/questions/19156477/how-to-set-billing-or-shipping-address-using-paypal-php-rest-api
Great tutorial. Thanks for your efforts, but when I make the payment: A Database Error Occurred Column 'PayerStatus' cannot be null. All the data are filled correctly but the PayerStatus is null. Please, could you tell me where the error would be? and also, is there just one table to be created (payments)? Thanks
webeasystep I set the default to 0, the same error appear. But when I let it take null value, it completed the order successfully and returned to my page and printed out: your payment was successful. When I check the table in database it inserted the payment row but with null PayerStatus. How I can fix this, please? Thanks
ههههه اهلا بيك يا احمد باشا ، لا والله مش مستخسر بدليل اني عاملها علي اليوتيوب،بس انا قررت اشتغل بالانجليزي عشان دي بقت لغة العلم دلوقت،وبالتالي هيستفيد منها العربي والغير عربي وبالتالي هستهدف شريحة اكبر من المتعلمين..اضف لذلك ان اي حد ناوي ينجح في المجال ده لازم يكون معاه انجليزي لأن ده ال هيساعده يستمر مع كل تطور وجديد في المجال..بالتوفيق
ازيك يا اخي الكريم ، والله انا بالفعل افكر في هذا الأمر منذ فترة ، لكن المشكلة الحقيقية ليست في امكانية او ارادة النشر بالعربية،لكن في قلة المتابعة،تخيل ان تبذل مجهود رهيب في التجهيز والشرح والمونتاج ثم بعد النشر تجد قلة قليلة من المشاهدات لا تشجعك حتى على الاستمرار..فكيف لك ان تستمر..للأسف المحتوى العربي التعليمي ينحسر بسبب قلة المتابعة في حين ان المحتوى الغير هادف هو الأكثر متابعة..شئ محبط بالفعل..عامة انا جدياً أفكر في انشاء قناة بالعربي..لكن ابحث في محتوى يكون أكثر من حيث المتابعة..ولك كل الشكر.
hi,, i m getting
Fatal error: Class CI_Session_database_driver contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (SessionHandlerInterface::read) in C:\xampp\htdocs\paypal\system\libraries\Session\drivers\Session_database_driver.php on line 49
what could be causing this i imported your .sql to create tables and all . it worked firs time i think now its cause problem
Thanks Robert for sharing your experience
tnx for reply,
i got the solution after sometime of research . the issue was nothing just restarted the apache server it got fixed . but then now issue come in.
When i m clicking on pay button its showing an error like this
Message: Call to a member function getMessage() on null
Filename: C:\xampp\htdocs\paypal\application\libraries\PayPal-PHP-SDK\paypal
est-api-sdk-php\sample\common.php
Line Number: 119
if you can please take a look. btw i m using your source code that you have on bitbucket no modification to that
try change name (PayPal-PHP-SDK) to small characters
Hi,
I have a question; If i want to integrate a paypal gateway into my client website, do I need to guide him on how to create a business account and where to find API credentials to hand them to me? or is there an easier and better way? Because sometimes it is hard to tell them what to do and how to do it. This is not just for paypal api, any other api such as google or twitter? I want to know what you do in these situations? I hope you understood my question-sorry for my bad English. Your help is highly appreciated.
no worries mohamed, in these situations I have two options, if the client trusted me I do it myself,if not i give him an article or video tutorial to know how to do it ,then in the back-end i put inputs to fill without worries about what going behind the scene
webeasystep Thank you very much!
you are welcome mohammed
I am Phasing this error
and i Load a Library in autoload.php
Message: require_once(public_html/CodeIgniter-3.1.101/application/libraries/paypal-php-sdk/paypal/rest-api-sdk-php/sample/bootstrap.php): failed to open stream: No such file or directory
how to fetch data of payement for specific users? and payer mail data is 0 in database why?
About payer mail , convert it to varchar to save data correctly
If the website in unsupported currency like SAR or JOD, how can I pass it to the paypal payment?
Thanks.
you can search in google for paypal supported currencies
in your 'PayerMail' column, I think it's supposed to be a varchar.
you are right
yes ur right....otherwise it save 0...
Great Video.
I have a quick question. On our e-commerce website made with PHP, we are able to accept payment in EUR but not in USD. Can you please tell the fault. We have added the codes for both the currencies but we are facing problem only with USD not in accepting any other currency. Please advise further, Thanks.
Hi, when I tested in local it's working really good but when I try this in live like under cpanel and aws hosting, its ending up with the errors.
Severity: Warning
Message: require_once(/var/www/html/application/libraries/paypal-php-sdk/paypal/rest-api-sdk-php/sample/bootstrap.php): failed to open stream: No such file or directory
Filename: controllers/Paypal.php
Line Number: 3
&
Message: require_once(): Failed opening required '/var/www/html/application/libraries/paypal-php-sdk/paypal/rest-api-sdk-php/sample/bootstrap.php' (include_path='.:/usr/share/php')
Filename: controllers/Paypal.php
Line Number: 3
Please let me know what I was missing here.
-Thanks
I appreciate your knowledge and information. I'd like to ask, if I have a Personal Account in paypal, can I use it for implementing PayPal getaway, or should I sign up for a new business account? or, can I convert my personal to business??
Thanks a lot again.
for testing use a sandbox account,for production use a business account
webeasystep thank you very much
there is one thing
if you are using 7.2.2 version or above it will give error ""sizeof(): Parameter must be an array or an object that implements Countable in paypal sdk error" like this you can fixe it easlly by adding this ""elseif (is_array($v) && sizeof($v)
while testing sdk
Am download your "PayPal-PHP-SDK" but sample folder is not there... help me guys
My error C:\xampp\htdocs\jmnew\application\libraries/paypal-php-sdk/paypal/rest-api-sdk-php/sample/bootstrap.php failed to open stream: No such file or directory
No URI present. Default controller set. How can i fix this error?
it shows an error
Message: sizeof(): Parameter must be an array or an object that implements Countable
Filename: Common/PayPalModel.php
Line Number: 179
not able to debug
I have the same error, could you solve it?
When I am clicking on Pay now it's going to -> domain_name .com/paypal/paypal/create_payment_with_paypal (which is showing a 404 page not found error) How to fix it bro?
How can I integrate Credit/Debit card payment instead of paypal? Thanks
hello sir how can i fix this error??
Type: Error
Message: Call to a member function toArray() on string
Filename: C:\xampp\htdocs\TTPH\application\libraries\PayPal-PHP-SDK\paypal
est-api-sdk-php\lib\PayPal\Common\PayPalModel.php
Line Number: 178
Thanks! great tutorial
you are welcome armen
Uhmmm Hi @webeasytep, I would like to ask if I can still use this for a website that is up. I mean it's already live. Thanks bro.
for sure man,i already integrated it to many clients,but remember to change config settings from sandbox to live
Thanks man! Appreciate it! I have this problem, the design is not working. Maybe you know why the design doesn't apply to the web page where there's a Pay Now button, because every time I click that button is says error 404.
you are welcome,read the log file,you will find what happen behind the scene
I don't understand how codeigniter works man, I downloaded CodeIgniter 3.x in their website but idk what to do next, sorry if I make things difficult for you.
so as a beginner i recommended to follow a complete codeigniter tutorial like creating a blog or whatever then come back to this tutorial
How to display History Transactions of all items?
the preferred way is to save all theses transactions in database tables and retrieve it again rather than call Paypal API
Yes I know that but I selling on ebay and I want make integration paypal with my application on my server. So what API I should use and what metod?
Hi, I'm having a problem regarding to the quantity, if I'm changing the quantity it's giving me an error
because you should aware of the other fields that depends on quantity field,because if you have one item with price ten dollars is equal total ten but 3 items will make total is thirty dollars
I can't seem to understand where to put that quantity.. Can you show how to make it 2? Thanks =]
How can I change the database name demo? thanks
hi dear its not working code its alot of error
cant't you avail the dowload link for the code files
in the description
Sir am engineering student i need your help want to make a gateway partial payment system to my site as its our final year project
for private helping we can discuss through webeasystep website or mail,thank you
@webeasystep
Sir whats your email ???
thx u sir
Eyy bro, @webeasystep, How can I change the shipping address??
hi ryan it is very easy to set shipping address
just follow answer here
stackoverflow.com/questions/19156477/how-to-set-billing-or-shipping-address-using-paypal-php-rest-api
Bro, paypal's validator doesn't allow my web domain, how can I fix this?
may be you need to change to https to your domain
Thanks =D
Hello sir, why can i access the paypal php sdk?
hi,you can access it from here
github.com/paypal/PayPal-PHP-SDK
thank you so much!!
why is it there is no sample folder on your given link, i've downloaded it but doesnt have sample folder
for sure there is a sample folder here it is
github.com/paypal/PayPal-PHP-SDK/tree/master/sample
i can not get the database. please provide it
under tables folder,the full code in the description
hello sir i want to add more item.
how to do..?
how to make for multiple items
just add another $item array
and dont forget to set it here
$itemList->setItems(array($item1));
Thx
you are welcome :)
i cant create an app, can anyone help me? ive already verified my email
I have the same problem, did you figure it out ?
Clear of Cookies, Cache And history data from setting or just use another browswer.
Great tutorial. Thanks for your efforts, but when I make the payment:
A Database Error Occurred
Column 'PayerStatus' cannot be null.
All the data are filled correctly but the PayerStatus is null.
Please, could you tell me where the error would be? and also, is there just one table to be created (payments)?
Thanks
change Column 'PayerStatus' to varchar and set default value to 0
webeasystep its already defined as varchar 50 as you mentioned in the tutorial.
Thanks for your fast reply.
and set default value to 0
webeasystep I set the default to 0, the same error appear. But when I let it take null value, it completed the order successfully and returned to my page and printed out: your payment was successful.
When I check the table in database it inserted the payment row but with null PayerStatus.
How I can fix this, please?
Thanks
print the inserted PayerStatus Query to see what happen behind the scene to insure is data has sent successfully
Is there any way I can contact you with?
info@webeasystep.com
Puedes crear xcoins
thx bro
you are welcome :)
why not source code download???
you will find the link in the description and you will find downloads in the side menu click it then click to download now
You are so so slow, that I slept twice
Hi raghu , thanks for sharing your thoughts,as a side note you can increase video speed , thanks
احمد ممكن نتواصل بالمييل؟
تفضل webeasystep
Gateways not getaways. Someone needs a vacation
:)
يعني انت مصري ومستكتر تفيد اهل بلدك وبتشرح للجانب هههههههههه
ههههه اهلا بيك يا احمد باشا ، لا والله مش مستخسر بدليل اني عاملها علي اليوتيوب،بس انا قررت اشتغل بالانجليزي عشان دي بقت لغة العلم دلوقت،وبالتالي هيستفيد منها العربي والغير عربي وبالتالي هستهدف شريحة اكبر من المتعلمين..اضف لذلك ان اي حد ناوي ينجح في المجال ده لازم يكون معاه انجليزي لأن ده ال هيساعده يستمر مع كل تطور وجديد في المجال..بالتوفيق
حرام عليكو يا عرب ، لما لا تشرحون لنا هذا بالعربي هههه
ازيك يا اخي الكريم ، والله انا بالفعل افكر في هذا الأمر منذ فترة ، لكن المشكلة الحقيقية ليست في امكانية او ارادة النشر بالعربية،لكن في قلة المتابعة،تخيل ان تبذل مجهود رهيب في التجهيز والشرح والمونتاج ثم بعد النشر تجد قلة قليلة من المشاهدات لا تشجعك حتى على الاستمرار..فكيف لك ان تستمر..للأسف المحتوى العربي التعليمي ينحسر بسبب قلة المتابعة في حين ان المحتوى الغير هادف هو الأكثر متابعة..شئ محبط بالفعل..عامة انا جدياً أفكر في انشاء قناة بالعربي..لكن ابحث في محتوى يكون أكثر من حيث المتابعة..ولك كل الشكر.
معك حق و الله
نعم اخي نحن عرب الله يحفظك من كل شر حاول تعمل شرح بالعربية
hehe indians XD
how to fetch data of payement for specific users? and payer mail data is 0 in database why?