dblayout
|
| Posted: 07/21/2003, 10:20 PM |
|
I have been reading over the Tips & Articles "Intergrating PayPal with CodeCharge" and am a bit confused. Does anyone have a small sample HTML/ASP CCS page that I can see so I can understand what I am missing?
I don't really understand this paragraph:
"To create an 'add to cart button' on your grid or record form you need to create a label type field, and check mark the html in the field properties. Then on the form-properties-events tab, select the event-type 'before show', then set the fldname = the paypal connection string using other field-names as variables to create the string. Below is an example of the string built for a grid form in ASP"
What is a 'label type field'? Is it actually a Label field or a hyprelink label field? Where it says 'check mark the HTML', does it mean to set the 'Content' to HTML for this 'Label type field'? It says to set the fldname to xxx. Where is fldname defined? Is it the name of my 'label type field'?
Thanks for any help.
Chris
|
|
|
 |
Ben
|
| Posted: 07/23/2003, 8:41 AM |
|
Basicly, the "Label Field" is a plain text displayed on screen. But you can set this field to display something else, i.e. any HTML elements or codes, not just hyperlink. Then when you set "HTML" in the field property, you can add any valid HTML element, as example an image representing Paypal Button with his parameters. Now, you must defined what it will be displayed on this field. You do that by applying the correct HTML codes (statically or dynamically with use of variables) in the form properties since you can customized events only at the Form level, not field level.
Since you add the codes at the form level, you must defined to which field variable it will be applied, i.e. fldname. You must replace "fldname" by your own field name. Then, yes, it's the name of your Label type field.
Hope this helps.
Ben
|
|
|
 |
RonB
|
| Posted: 07/24/2003, 4:30 AM |
|
I found the traditional paypal integration has some serious drawbacks. It inserts 1 item at a time into the paypal basket. If a customer decides to cancel you are left with a fantom order in the database. I now handle the entire order in a table called temp_orders. The total is put into the paypal basket. I integrated IPN from paypal so if the customer pays paypal sends a notification to a script on the websever wich then transports the corresponding temp_order to the definite order and sets the order status to completed. The temp order table is being emptied after 7 days for order that are older then today (this makes sure the tem order table isn't building up to a monster size The owner of the website only sees the orders that were payed for and can take the apropriate action.
Ron
|
|
|
 |
|