How to integrate PayPal API with Node.js

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

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

  • @neoseleka
    @neoseleka 11 дней назад

    Thanks from South Africa, this was really helpful

  • @abduljabbarfuad4222
    @abduljabbarfuad4222 5 месяцев назад

    Thank you very much for the useful and clear explanation! It helped me a lot in understanding the topic and applying it correctly. I appreciate your effort and time in helping us.

    • @manfraio
      @manfraio  5 месяцев назад

      Thank you. Glad I could help🤜🏻🤛🏻

  • @leandrodeoliveira6779
    @leandrodeoliveira6779 2 месяца назад +1

    Thanks from Brazil
    Good video

  • @lalitkumardev
    @lalitkumardev 3 месяца назад

    Thanks for the video really brief and helpful

  • @alexdioliver
    @alexdioliver 6 месяцев назад +1

    Exacly what I needed! Thank you for sharing.

  • @phoney_the_Hypo
    @phoney_the_Hypo 3 месяца назад

    Superb mate ❤

  • @diogofavillag.jacintho1693
    @diogofavillag.jacintho1693 6 месяцев назад

    perfect tutorial, god bless you!!

  • @dharsanr6504
    @dharsanr6504 6 месяцев назад +3

    Please create full fledged production grade projects that will be very useful

    • @manfraio
      @manfraio  6 месяцев назад +1

      Yes, in a few weeks there will be a full project with emails and payment handling.

    • @dharsanr6504
      @dharsanr6504 6 месяцев назад +1

      @@manfraio need more from you : )

  • @TheMinecraftteando
    @TheMinecraftteando 4 месяца назад

    wow great tutorial !!!

  • @bradleygangnou2077
    @bradleygangnou2077 4 месяца назад

    U save my school year , thanks

    • @manfraio
      @manfraio  4 месяца назад

      Glad I could help🤜🏻🤛🏻

  • @Khey1
    @Khey1 6 месяцев назад

    Gracias por tu video! Me ayudo bastante

  • @RAKHIRAI-xw8vk
    @RAKHIRAI-xw8vk 22 дня назад +1

    bro can you make video on ' how to switch from sandbox to live' if you are not able to make it then please guide me

    • @manfraio
      @manfraio  22 дня назад

      I intend to do a video about this but with a complete project. But for now here are the steps you can follow to move from sandbox to production (live mode):
      Make sure to create a PayPal business account. Then login to that account - switch to the Live mode by selecting the option at the top-right corner - in the dashboard, navigate to My Apps & Credentials - create an app - replace the sandbox credentials, inside your code, to the live credentials (clientId and secret) - replace the endpoints in your code, with the production (live) one (api.paypal.com).
      PayPal may require additional information (e.g., business details) before allowing your app to go live. They might also review your integration to ensure compliance with their policies.

  • @jbcdtv5012
    @jbcdtv5012 2 месяца назад

    Thanks for the video it helps a lot. I have some question, will it work for more than one product purchase? could you please make tutorial for that? thanks again.

    • @manfraio
      @manfraio  2 месяца назад +1

      Yes. All you need to do is add more objects inside the items array, inside the purchase_units array:
      purchase_units: [
      {
      items: [
      {
      name: 'First product',
      description: 'First product description',
      quantity: 1,
      unit_amount: {
      currency_code: 'USD',
      value: '100.00'
      }
      },
      {
      name: 'Second product',
      description: 'Second product description',
      quantity: 1,
      unit_amount: {
      currency_code: 'USD',
      value: '500.00'
      }
      }
      ],
      amount: {
      currency_code: 'USD',
      value: '150.00',
      breakdown: {
      item_total: {
      currency_code: 'USD',
      value: '150.00'
      }
      }
      }
      }
      ]

    • @jbcdtv5012
      @jbcdtv5012 Месяц назад

      @@manfraio thank you, I really appreciate your immediate response, regarding with your response I actually tried that and I am getting this error "Error: AxiosError: Request failed with status code 422"

  • @omartaha7105
    @omartaha7105 4 месяца назад

    Thanks for this video. Do you know if it's possible to retrieve all the transactions of my application using this Restful API? and is it time sensitive? I did everything correctly but when I try the endpoint of transaction in Postman, it never shows up

    • @manfraio
      @manfraio  4 месяца назад

      Thank you for the comment. Are you calling the GET /v1/reporting/transactions endpoint?

  • @mostafaedoctor4766
    @mostafaedoctor4766 3 месяца назад +1

    Error: AxiosError: Request failed with status code 403

    • @manfraio
      @manfraio  3 месяца назад

      Ok so there might be a few reasons for that. First check if you’re using the sandbox credentials and the api url is pointing to the sandbox base url as well.
      Is axios returning more information like an error message?

  • @venkateshJJmaticz
    @venkateshJJmaticz 2 месяца назад

    Hi mat, how to do this live mode transfer one account to another account in nodejs

    • @manfraio
      @manfraio  2 месяца назад

      Hey. I’m not sure I understand. You want to transfer money from one PayPal account to another? Just transferring, not purchasing something?

    • @manraj1987
      @manraj1987 2 месяца назад

      I am looking for same thing transferring from one PayPal account to another not purchasing anything.

  • @phoney_the_Hypo
    @phoney_the_Hypo 3 месяца назад

    could you guys
    please save this video for future reference

  • @hemalpansuriya4665
    @hemalpansuriya4665 Месяц назад

    Please Help!! Followed same flow but facing below error.
    We’re sorry. This seller doesn’t accept payments in your currency. Please return to the seller and choose another way to pay. Thank you in Advance 🙌

    • @manfraio
      @manfraio  Месяц назад

      Hey my friend, hope this will fix your issue:
      1. Log in to the PayPal business account.
      2. Go to Profile > Account Settings.
      3.Under Money, banks, and cards, click Manage currencies.
      4. Add the currency you want to accept payments in.

  • @puttayyakattimath1725
    @puttayyakattimath1725 6 месяцев назад

    Great video! Could you please make video for Paypal/Stripe subscription and webhooks 😊. Thank you

    • @manfraio
      @manfraio  6 месяцев назад +1

      Thank you. Therw will be a Stripe Connect video first, and a Subscription checkout video.

  • @yyyd6559
    @yyyd6559 4 месяца назад

    how to implement subscription

    • @manfraio
      @manfraio  4 месяца назад

      This month we’ll have a video about Subscriptions with Stripe and after, with Paypal API.

  • @nobudev
    @nobudev 7 месяцев назад

    Can you start making Typescript projects 🙏

    • @manfraio
      @manfraio  7 месяцев назад +1

      Yes, soon we’ll create entire projects using TypeScript.

  • @beautyofworld1700
    @beautyofworld1700 5 месяцев назад

    How to track our item and user after successful payment? item ID and user ID

    • @manfraio
      @manfraio  5 месяцев назад

      You can track by the order ID

  • @mr.key7
    @mr.key7 5 месяцев назад

    bro you are amazing.
    But can you explain how to live because it is different from sandbox mode?!

    • @manfraio
      @manfraio  5 месяцев назад +1

      Thank you.
      To move to production, first you have to obtain your live credentials:
      - Log into the Dashboard with your merchant account
      - On My Apps & Credentials page, change to Live
      - You will have to create new app for the Live mode, on Create App option
      - Then paste the new client id and secret on your code (remember to put in somewhere save like a .env file)
      Then all calls to the PayPal api endpoints should be with the domain: api-m.paypal.com (instead of the sandbox)

    • @mr.key7
      @mr.key7 5 месяцев назад

      @@manfraio @@manfraio

    • @mr.key7
      @mr.key7 5 месяцев назад

      @@manfraio Thank you, it worked. However, when logging in to make a payment, this message appears: "We were unable to process your payment using your PayPal account at this time. Please return to the merchant and try using a different payment method." and the payment screen does not appear. What is the solution?

    • @manfraio
      @manfraio  5 месяцев назад

      @user-lv7hf8ip2q Are you trying to make a payment with another merchant account or personal?

    • @mr.key7
      @mr.key7 5 месяцев назад

      @@manfraio account business

  • @GL33T
    @GL33T 2 месяца назад

    🔥

  • @jmg9509
    @jmg9509 Месяц назад +1

    5:10