Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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