Prev | Current Page 357 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

99" />


value="http://www.example.com/mistletoe-t-shirt-p84/" />




CHAPTER 9 ?–  RECEIVING PAYMENTS USING PAYPAL 252
If you load this form in a web browser, you get a form like the one shown in Figure 9-1.
Figure 9-1. The PayPal Add to Cart form and button
?– Tip Although we won??™t use them for our site, it??™s good to know that PayPal provides button generators
based on certain data you provide (like product name and product price), giving you an HTML code block
similar to the one shown previously.
Yes, it??™s just that simple to manufacture an Add to Cart link! The form fields except on0, os0,
on1, and os1, have predefined meaning, and their names are self-explanatory. The on0 and os0,
and on1 and os1 elements can be used to define custom product attributes; in our case, we
used them to define Size and Color. Note that PayPal accepts a maximum of two attributes, so
you can??™t add more of them.
The most important parameter is business, which must be the e-mail address you used
when you registered the PayPal account (the e-mail address that will receive the money).


Pages:
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369