I was asked to include a payment plugin to allow visitors of page to buy the advertised products. The form is used to input the details of the product. There are two things i havent figured out yet:
1. How can i send the final price that is calculated by the form’s entries to the payment plugin? The plugin redirects to another page where a field price is to be completed. I tried with ‘$_post[finalprice]’ there but it returns an empty array. Is there another way to send to that new page field a value of the previus form?
2. There are 3 different payment methods, two of which need to redirect from the form page. I created a new select for these methods and tried to enter an IF statement in process.php to check of the selected value of the form and change the $config[‘redirect’] accordingly. The check ‘$form->getValue(‘paymethod’)==”cc”‘ doesnt work, also tried as ‘$_POST[paymethod]’ and it fails as well. How could i test the above correctly?