Index: openacs-4/packages/ecommerce/tcl/paypal-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/tcl/paypal-procs.tcl,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/tcl/paypal-procs.tcl 12 Sep 2010 21:18:59 -0000 1.1 @@ -0,0 +1,69 @@ +ad_library { + + Paypal procs + + @creation-date Aug 2010 +} + +ad_proc -public ecds_paypal_checkout_button { + product_list_of_lists + tax + weight + shipping + invoice_ref + {thankyou_url} +} { + returns html fragment for checking out via PayPal standard "checkout update" process + product_list_of_lists is quantity,item_number,item_name,amount_each +} { +# paypal variable notes at: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables +# var 'rm' has special meaning on return: +# +#Return method. The FORM METHOD used to send data to the URL specified by the return variable after payment completion. Allowable values: +# 0 - all shopping cart transactions use the GET method +# 1 - the payer's browser is redirected to the return URL by the GET method, and no transaction variables are sent +# 2 - the payer's browser is redirected to the return URL by the POST method, and all transaction variables are also posted +# The default is 0. +#Note: The rm variable takes effect only if the return variable is also set. + +#by using rm = 2, can numbers be verified automatically? exploring this. + + set currency [parameter::get -package_id [ec_id] -parameter Currency -default USD] + set business [parameter::get -package_id [ec_id] -parameter PayPalBusiness -default [ec_system_owner]] + set paypal_button_html "
" + return $paypal_button_html +} Index: openacs-4/packages/ecommerce/tcl/social-networking-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/tcl/social-networking-procs.tcl,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/tcl/social-networking-procs.tcl 12 Sep 2010 21:18:59 -0000 1.1 @@ -0,0 +1,29 @@ +ad_library { + + Customization social networking utilities + + @creation-date Aug 2010 +} + +ad_proc -public ecds_share_bar { + {url ""} + {title ""} +} { + returns html fragment, a series of links for sharing a webpage with others using social networking +} { + if { $url eq "" } { + set url [ad_return_url] + } + if { $title eq "" } { + set title [ad_conn instance_name] + ns_log Notice "ecds_share_bar: title has no value, substituting with instance_name" + } + set links_html "" + return $links_html +}