paypal payment gateway integration in php source code

Поділитися
Вставка
  • Опубліковано 24 січ 2025

КОМЕНТАРІ • 134

  • @robertjohn419
    @robertjohn419 7 років тому +1

    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

    • @Webeasystep
      @Webeasystep  7 років тому

      Thanks Robert for sharing your experience

    • @robertjohn419
      @robertjohn419 7 років тому

      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

    • @Webeasystep
      @Webeasystep  7 років тому

      try change name (PayPal-PHP-SDK) to small characters

  • @MOHAMMEDALHALWACHI
    @MOHAMMEDALHALWACHI 7 років тому +1

    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.

    • @Webeasystep
      @Webeasystep  7 років тому

      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

    • @MOHAMMEDALHALWACHI
      @MOHAMMEDALHALWACHI 7 років тому +1

      webeasystep Thank you very much!

    • @Webeasystep
      @Webeasystep  7 років тому

      you are welcome mohammed

  • @sandeepahuja8720
    @sandeepahuja8720 5 років тому

    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

  • @sompuraproduction
    @sompuraproduction 6 років тому +1

    how to fetch data of payement for specific users? and payer mail data is 0 in database why?

    • @Webeasystep
      @Webeasystep  6 років тому

      About payer mail , convert it to varchar to save data correctly

  • @EngReem-id2yd
    @EngReem-id2yd 6 років тому +1

    If the website in unsupported currency like SAR or JOD, how can I pass it to the paypal payment?
    Thanks.

    • @Webeasystep
      @Webeasystep  6 років тому

      you can search in google for paypal supported currencies

  • @kinansharif7055
    @kinansharif7055 7 років тому +2

    in your 'PayerMail' column, I think it's supposed to be a varchar.

  • @esumedical
    @esumedical 4 роки тому

    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.

  • @tsb667
    @tsb667 6 років тому

    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

  • @EngReem-id2yd
    @EngReem-id2yd 6 років тому +1

    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.

    • @Webeasystep
      @Webeasystep  6 років тому

      for testing use a sandbox account,for production use a business account

    • @EngReem-id2yd
      @EngReem-id2yd 6 років тому

      webeasystep thank you very much

  • @WaniaAliFoodSecret
    @WaniaAliFoodSecret 4 роки тому

    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)

  • @boopathir2380
    @boopathir2380 6 років тому

    Am download your "PayPal-PHP-SDK" but sample folder is not there... help me guys

  • @boopathir2380
    @boopathir2380 6 років тому

    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

  • @aikaparondo8569
    @aikaparondo8569 5 років тому

    No URI present. Default controller set. How can i fix this error?

  • @sandeepahuja8720
    @sandeepahuja8720 5 років тому

    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

  • @iktousama8751
    @iktousama8751 6 років тому

    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?

  • @edkalu9132
    @edkalu9132 7 років тому

    How can I integrate Credit/Debit card payment instead of paypal? Thanks

  • @michaelmillar1129
    @michaelmillar1129 7 років тому

    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

  • @armenstepanyan2954
    @armenstepanyan2954 7 років тому +1

    Thanks! great tutorial

  • @ryansimper8011
    @ryansimper8011 7 років тому +2

    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.

    • @Webeasystep
      @Webeasystep  7 років тому +1

      for sure man,i already integrated it to many clients,but remember to change config settings from sandbox to live

    • @ryansimper8011
      @ryansimper8011 7 років тому

      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.

    • @Webeasystep
      @Webeasystep  7 років тому

      you are welcome,read the log file,you will find what happen behind the scene

    • @ryansimper8011
      @ryansimper8011 7 років тому +1

      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.

    • @Webeasystep
      @Webeasystep  7 років тому +1

      so as a beginner i recommended to follow a complete codeigniter tutorial like creating a blog or whatever then come back to this tutorial

  • @WUTHEEF
    @WUTHEEF 7 років тому +1

    How to display History Transactions of all items?

    • @Webeasystep
      @Webeasystep  7 років тому

      the preferred way is to save all theses transactions in database tables and retrieve it again rather than call Paypal API

    • @WUTHEEF
      @WUTHEEF 7 років тому

      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?

  • @ryansimper8011
    @ryansimper8011 7 років тому

    Hi, I'm having a problem regarding to the quantity, if I'm changing the quantity it's giving me an error

    • @Webeasystep
      @Webeasystep  7 років тому +1

      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

    • @ryansimper8011
      @ryansimper8011 7 років тому

      I can't seem to understand where to put that quantity.. Can you show how to make it 2? Thanks =]

  • @mademoiselle1234
    @mademoiselle1234 6 років тому

    How can I change the database name demo? thanks

  • @moviesdrames1809
    @moviesdrames1809 5 років тому

    hi dear its not working code its alot of error

  • @techienomadiso8970
    @techienomadiso8970 7 років тому +1

    cant't you avail the dowload link for the code files

  • @venturousbloke5667
    @venturousbloke5667 6 років тому

    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

    • @Webeasystep
      @Webeasystep  6 років тому

      for private helping we can discuss through webeasystep website or mail,thank you

    • @venturousbloke5667
      @venturousbloke5667 6 років тому

      @webeasystep
      Sir whats your email ???

  • @nuruzzanamhimel5911
    @nuruzzanamhimel5911 Рік тому

    thx u sir

  • @ryansimper8011
    @ryansimper8011 7 років тому +1

    Eyy bro, @webeasystep, How can I change the shipping address??

    • @Webeasystep
      @Webeasystep  7 років тому +1

      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

    • @ryansimper8011
      @ryansimper8011 7 років тому

      Bro, paypal's validator doesn't allow my web domain, how can I fix this?

    • @Webeasystep
      @Webeasystep  7 років тому +1

      may be you need to change to https to your domain

    • @ryansimper8011
      @ryansimper8011 7 років тому

      Thanks =D

  • @paulasimon588
    @paulasimon588 7 років тому +1

    Hello sir, why can i access the paypal php sdk?

    • @Webeasystep
      @Webeasystep  7 років тому

      hi,you can access it from here
      github.com/paypal/PayPal-PHP-SDK

    • @paulasimon588
      @paulasimon588 7 років тому

      thank you so much!!

    • @paulasimon588
      @paulasimon588 7 років тому +1

      why is it there is no sample folder on your given link, i've downloaded it but doesnt have sample folder

    • @Webeasystep
      @Webeasystep  7 років тому

      for sure there is a sample folder here it is
      github.com/paypal/PayPal-PHP-SDK/tree/master/sample

  • @mohitjajani
    @mohitjajani 7 років тому +1

    i can not get the database. please provide it

    • @Webeasystep
      @Webeasystep  7 років тому

      under tables folder,the full code in the description

  • @kimsongly4416
    @kimsongly4416 6 років тому

    hello sir i want to add more item.
    how to do..?

  • @steliyanstoyanov2518
    @steliyanstoyanov2518 7 років тому +1

    how to make for multiple items

    • @Webeasystep
      @Webeasystep  7 років тому +2

      just add another $item array
      and dont forget to set it here
      $itemList->setItems(array($item1));

    • @steliyanstoyanov2518
      @steliyanstoyanov2518 7 років тому +1

      Thx

    • @Webeasystep
      @Webeasystep  7 років тому

      you are welcome :)

  • @johncarlogorospe3142
    @johncarlogorospe3142 7 років тому

    i cant create an app, can anyone help me? ive already verified my email

    • @kinansharif7055
      @kinansharif7055 7 років тому

      I have the same problem, did you figure it out ?

    • @iktousama8751
      @iktousama8751 6 років тому

      Clear of Cookies, Cache And history data from setting or just use another browswer.

  • @EngReem-id2yd
    @EngReem-id2yd 6 років тому +1

    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
      @Webeasystep  6 років тому

      change Column 'PayerStatus' to varchar and set default value to 0

    • @EngReem-id2yd
      @EngReem-id2yd 6 років тому

      webeasystep its already defined as varchar 50 as you mentioned in the tutorial.
      Thanks for your fast reply.

    • @Webeasystep
      @Webeasystep  6 років тому

      and set default value to 0

    • @EngReem-id2yd
      @EngReem-id2yd 6 років тому +1

      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

    • @Webeasystep
      @Webeasystep  6 років тому

      print the inserted PayerStatus Query to see what happen behind the scene to insure is data has sent successfully

  • @MOHAMMEDALHALWACHI
    @MOHAMMEDALHALWACHI 7 років тому

    Is there any way I can contact you with?

  • @pesrosanchez4035
    @pesrosanchez4035 2 роки тому

    Puedes crear xcoins

  • @cyprusrelax8487
    @cyprusrelax8487 7 років тому +1

    thx bro

  • @AhmadRaza-yi6mj
    @AhmadRaza-yi6mj 5 років тому

    why not source code download???

    • @web_easy_step
      @web_easy_step 5 років тому

      you will find the link in the description and you will find downloads in the side menu click it then click to download now

  • @raghu.acharya
    @raghu.acharya 5 років тому +3

    You are so so slow, that I slept twice

    • @Webeasystep
      @Webeasystep  5 років тому +5

      Hi raghu , thanks for sharing your thoughts,as a side note you can increase video speed , thanks

  • @סליםמסרי-נ6ק
    @סליםמסרי-נ6ק 5 років тому

    احمد ممكن نتواصل بالمييل؟

  • @chind0na
    @chind0na 7 років тому

    Gateways not getaways. Someone needs a vacation

  • @ahmedfarouk2883
    @ahmedfarouk2883 7 років тому +1

    يعني انت مصري ومستكتر تفيد اهل بلدك وبتشرح للجانب هههههههههه

    • @Webeasystep
      @Webeasystep  7 років тому +2

      ههههه اهلا بيك يا احمد باشا ، لا والله مش مستخسر بدليل اني عاملها علي اليوتيوب،بس انا قررت اشتغل بالانجليزي عشان دي بقت لغة العلم دلوقت،وبالتالي هيستفيد منها العربي والغير عربي وبالتالي هستهدف شريحة اكبر من المتعلمين..اضف لذلك ان اي حد ناوي ينجح في المجال ده لازم يكون معاه انجليزي لأن ده ال هيساعده يستمر مع كل تطور وجديد في المجال..بالتوفيق

  • @honamalouma
    @honamalouma 6 років тому

    حرام عليكو يا عرب ، لما لا تشرحون لنا هذا بالعربي هههه

    • @Webeasystep
      @Webeasystep  6 років тому

      ازيك يا اخي الكريم ، والله انا بالفعل افكر في هذا الأمر منذ فترة ، لكن المشكلة الحقيقية ليست في امكانية او ارادة النشر بالعربية،لكن في قلة المتابعة،تخيل ان تبذل مجهود رهيب في التجهيز والشرح والمونتاج ثم بعد النشر تجد قلة قليلة من المشاهدات لا تشجعك حتى على الاستمرار..فكيف لك ان تستمر..للأسف المحتوى العربي التعليمي ينحسر بسبب قلة المتابعة في حين ان المحتوى الغير هادف هو الأكثر متابعة..شئ محبط بالفعل..عامة انا جدياً أفكر في انشاء قناة بالعربي..لكن ابحث في محتوى يكون أكثر من حيث المتابعة..ولك كل الشكر.

    • @honamalouma
      @honamalouma 6 років тому

      معك حق و الله

    • @paypalservise6444
      @paypalservise6444 5 років тому

      نعم اخي نحن عرب الله يحفظك من كل شر حاول تعمل شرح بالعربية

  • @felipecastillo4048
    @felipecastillo4048 7 років тому

    hehe indians XD

  • @sompuraproduction
    @sompuraproduction 6 років тому

    how to fetch data of payement for specific users? and payer mail data is 0 in database why?