how to post form values to payment plugin

Home Forums Quform PHP how to post form values to payment plugin

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17860
    digital4u
    Participant

    Hello,

    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/

    #17911
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #18046
    digital4u
    Participant

    Thank you very much, your code worked perfectly.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy