paypal payment gateway integration in php source code

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 134

  • @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

  • @nuruzzanamhimel5911
    @nuruzzanamhimel5911 Год назад

    thx u sir

  • @armenstepanyan2954
    @armenstepanyan2954 7 лет назад +1

    Thanks! great tutorial

  • @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.

  • @kinansharif7055
    @kinansharif7055 6 лет назад +2

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

  • @MOHAMMEDALHALWACHI
    @MOHAMMEDALHALWACHI 6 лет назад +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  6 лет назад

      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 6 лет назад +1

      webeasystep Thank you very much!

    • @Webeasystep
      @Webeasystep  6 лет назад

      you are welcome mohammed

  • @WaniaAliFoodSecret
    @WaniaAliFoodSecret 3 года назад

    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)

  • @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

  • @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

  • @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

  • @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

  • @edkalu9132
    @edkalu9132 7 лет назад

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

  • @cyprusrelax8487
    @cyprusrelax8487 7 лет назад +1

    thx bro

  • @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

  • @boopathir2380
    @boopathir2380 6 лет назад

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

  • @aikaparondo8569
    @aikaparondo8569 4 года назад

    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

  • @moviesdrames1809
    @moviesdrames1809 5 лет назад

    hi dear its not working code its alot of error

  • @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

  • @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

  • @michaelmillar1129
    @michaelmillar1129 6 лет назад

    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

  • @WUTHEEF
    @WUTHEEF 6 лет назад +1

    How to display History Transactions of all items?

    • @Webeasystep
      @Webeasystep  6 лет назад

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

    • @WUTHEEF
      @WUTHEEF 6 лет назад

      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?

  • @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?

  • @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

  • @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

  • @mademoiselle1234
    @mademoiselle1234 6 лет назад

    How can I change the database name demo? thanks

  • @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 =]

  • @techienomadiso8970
    @techienomadiso8970 6 лет назад +1

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

  • @mohitjajani2619
    @mohitjajani2619 6 лет назад +1

    i can not get the database. please provide it

    • @Webeasystep
      @Webeasystep  6 лет назад

      under tables folder,the full code in the description

  • @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

  • @kimsongly4416
    @kimsongly4416 6 лет назад

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

  • @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 ???

  • @paulasimon588
    @paulasimon588 6 лет назад +1

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

    • @Webeasystep
      @Webeasystep  6 лет назад

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

    • @paulasimon588
      @paulasimon588 6 лет назад

      thank you so much!!

    • @paulasimon588
      @paulasimon588 6 лет назад +1

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

    • @Webeasystep
      @Webeasystep  6 лет назад

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

  • @pesrosanchez4035
    @pesrosanchez4035 2 года назад

    Puedes crear xcoins

  • @steliyanstoyanov2518
    @steliyanstoyanov2518 7 лет назад +1

    how to make for multiple items

  • @MOHAMMEDALHALWACHI
    @MOHAMMEDALHALWACHI 6 лет назад

    Is there any way I can contact you with?

  • @johncarlogorospe3142
    @johncarlogorospe3142 7 лет назад

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

    • @kinansharif7055
      @kinansharif7055 6 лет назад

      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.

  • @chind0na
    @chind0na 7 лет назад

    Gateways not getaways. Someone needs a vacation

  • @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

  • @user-hw9bn5pi2y
    @user-hw9bn5pi2y 5 лет назад

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

  • @ahmedfarouk2883
    @ahmedfarouk2883 6 лет назад +1

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

    • @Webeasystep
      @Webeasystep  6 лет назад +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?