PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

PHP Gform_product_info use mode with paypal

  1. Frederic
    Member

    Hi,

    I have made a JS hook to let the customer choose beetween full payment or deposit ("acompte") :

    function gform_product_total(formId, total){
    if(formId == 10){
    
    			if (jQuery('#input_10_71').val() =='acompte|0'){
    				total = total *.30;
    			}
    	}
    	return total;
    
    }

    The client chooses in a select list (product with 0,00€ price) the mode (full payment or deposit). If he chooses deposit, I calculate 30% of the total amount.

    Now, I have to make the php hook to replicate the behaviour before sending to paypal but I do not understand the parameters I have to deal with to make it.

    I have read a bunch of doc about it (form entry, gform..., etc.) but it is still a little bit dark.

    Can you show me the way ?

    Regards,

    Frédéric

    Posted 12 years ago on Monday January 30, 2012 | Permalink