Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Not getting a Paypal Hosted Button ID

Hi

I generated a Paypal button for setting up a shopping cart but I am not getting the Paypal Hosted Button ID as per the tutorial [http://teamtreehouse.com/library/programming/build-a-simple-php-application/integrating-with-paypal/creating-paypal-buttons], pls note that I am using a regular Paypal account out of India.

I am also getting the following in its place :

<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">

Praveen

Would you mind posting the code you received here? Then respond here with the link.

Thanks!

5 Answers

Praveen,

Perhaps it is no longer necessary for PayPal to work. Using your code I am able to add the button to my code and go to the checkout stage. Please advise if you are still a bit stuck on this one?

Thanks, Hampton

Hi Hampton

THanks for responding , here is the gist https://gist.github.com/spraveenitpro/303c6918cd302566da2a

As you see I am not getting a "Hosted button ID" hidden field which is mentioned in the tutorial , I don't have a merchant account and I am having a Paypal india account [Not Paypal US] Thanks.

Hi Hampton

Seems paypal has made some changes and is no longer necessary , thanks again.

Praveen Bangalore

geoffrey
geoffrey
28,736 Points

I know It's been a long time, but It seems It's still generated by paypal. At first, I didn't have that input neither, but I generated again the code, and now I have that hosted_button_id !

Check the link => https://www.paypal-community.com/t5/About-Settings-Archive/cant-find-hosted-button-id/td-p/665688

I had a business variable instead, the explanation is there :)

geoffrey
geoffrey
28,736 Points

I know It's been a long time, but It seems It's still generated by paypal. At first, I didn't have that input neither, but I generated again the code, and now I have that hosted_button_id !

Check the link => https://www.paypal-community.com/t5/About-Settings-Archive/cant-find-hosted-button-id/td-p/665688

I had a business variable instead, the explanation is there :)