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 Build a Simple PHP Application Integrating with PayPal Creating Paypal Buttons

Philip Yiu Fai Leung
Philip Yiu Fai Leung
1,808 Points

No hosted_button_id and values for different items are all the same

I have created a Paypal developer account.

When I was creating the Paypal button, instead of getting a name =" hosted_button_id" value = "Q737MHZANLM3Q" , I got a name ="business" value ="Q737MHZANLM3Q".

And when I was creating the second and the third button using create similar button, the name and value I got was the same as the first one without any change.

I have tried a few times and it was the same, what should I do ?

1 Answer

Ricky Catron
Ricky Catron
13,023 Points

I believe once you create a similar button you need to edit it and give it a new name. This should create a new value. If this fails you can simply create a new button instead of using create similar.

Goodluck! --Ricky

Philip Yiu Fai Leung
Philip Yiu Fai Leung
1,808 Points

Hi Ricky,

Many thanks, I will try.

Philip