• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

paypal "hosted button ID" integration with triggercmd

Raspberry Pi
2
4
294
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    hehaha
    last edited by Mar 14, 2023, 8:47 PM

    I was trying to follow the post on setting up paypal integration with raspberry pi using the below guide.

    https://www.hackster.io/triggercmd/charge-money-for-your-raspberry-pi-to-do-something-076310

    I was able to get through most of the code but could not find the "hosted button id" in the code that paypal generated for me so that i can enter it into the paywall on triggercmd. Can someone please tell me why paypal is not generating the hosted button id?

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="thay.chau@gmail.com">
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="item_name" value="One Load">
    <input type="hidden" name="amount" value="1.00">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="button_subtype" value="services">
    <input type="hidden" name="no_note" value="0">
    <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>

    R 1 Reply Last reply Mar 14, 2023, 9:51 PM Reply Quote 0
    • R
      Russ @hehaha
      last edited by Russ Mar 14, 2023, 9:52 PM Mar 14, 2023, 9:51 PM

      @hehaha, I'm not sure why it's not showing up in your button code. I just created a test button and it does show up in mine.

      <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
      <input type="hidden" name="cmd" value="_s-xclick">
      <input type="hidden" name="hosted_button_id" value="5JHS4U8KM4QX8">
      <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
      <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
      </form>
      

      Another way to see the button ID is to expand the button using the arrow on the left, or the Action pulldown on the right.

      c8170af8-d8f2-4980-b3c9-f0cd423e1f45-image.png

      Maybe your button settings are different from mine. Did you create a "Buy Now" button?

      68343b0b-a913-4efe-a29f-f24d30771583-image.png

      Russell VanderMey

      H 1 Reply Last reply Mar 14, 2023, 10:36 PM Reply Quote 0
      • H
        hehaha @Russ
        last edited by Mar 14, 2023, 10:36 PM

        @Russ
        Hi Russ,

        Thank you for the quick feedback. Apparently, the issue was that I was not logging into my paypal account with my password and only using a one-time code sent to my cellphone for login. Paypal kept asking me to login each time I tried to view my saved buttons. I finally entered in my password into PayPal and the paypal code generated as expected. I can't wait to get my project setup and thanks for your help.
        BTW, is there a venmo integration similar to PayPal?

        Thanks,
        hehaha

        R 1 Reply Last reply Mar 15, 2023, 12:34 PM Reply Quote 0
        • R
          Russ @hehaha
          last edited by Russ Mar 15, 2023, 12:34 PM Mar 15, 2023, 12:34 PM

          @hehaha, good. I'm glad you got it working. And no, no Venmo, only PayPal.

          Russell VanderMey

          1 Reply Last reply Reply Quote 0
          3 out of 4
          • First post
            3/4
            Last post