Home › Forums › Quform PHP › how to post form values to payment plugin
- This topic has 2 replies, 2 voices, and was last updated 9 years, 6 months ago by
digital4u.
- AuthorPosts
- January 8, 2016 at 9:44 am #17860
digital4u
ParticipantHello,
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?
You can check the form at http://photolab.gr/pages/metalprint/
January 13, 2016 at 11:27 am #17911Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
January 26, 2016 at 9:46 am #18046digital4u
ParticipantThank you very much, your code worked perfectly.
- AuthorPosts
- You must be logged in to reply to this topic.