• Resolved Ron Boyd

    (@orionsweb)


    The from submits to email however it does not open the PayPal payment page?

    This is the tag from the generator in Contact Form 7:
    <p>[paypalsubmit class:PayPalBtn email:[email protected] currency:CAD itemamount:totalamt itemname:BYOT-Registration sandbox "Pay Online Now"]</p>

    Here’s the code that generates from a view source:
    <p><input type="submit" value="Pay Online Now" class="wpcf7-form-control wpcf7-paypalsubmit PayPalBtn" onclick="returnURL(&quot;https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_xclick&business=emailaddress%40gmail.com&currency_code=CAD&return=http%3A%2F%2Fbyotmoot.ca&cancel_return=http%3A%2F%2Fbyotmoot.ca&quot;,&quot;totalamt&quot;,&quot;BYOT-Registration&quot;,&quot;&quot;);" /></p>

    https://ww.wp.xz.cn/plugins/contact-form-7-paypal-extension/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ZealousWeb

    (@zealopensource)

    Hi Ron,

    Please check our new Version 1.4. This will solve your problem.

    Thank you!!

    ZealousWeb

    Tarun Paliwal

    (@tarun-paliwal)

    Hi ZealousWeb ,

    I have face this same problem.

    I am Using 1.4 Version and my submit button code is:

    <p><input type=”submit” value=”Submit” class=”wpcf7-form-control wpcf7-paypalsubmit classbtn classbtn-success” id=”forms_field_86″ onclick=”returnURL(“https://www.paypal.com/us/cgi-bin/webscr?cmd=_xclick&business=emailaddress%40gmail.com&currency_code=USD&return=http%3A%2F%2Fmysitename.com%2Fgift-vouchers&cancel_return=http%3A%2F%2Fmysitename.com%2Fgift-vouchers&notify_url=http%3A%2F%2Fkinsalegourmetacademy.com%2Fgift-vouchers&#8221;,”amount”,”Name”,”value”);”></p>

    But from is not going for paypal.

    Please help.

    Thanks

    Plugin Author ZealousWeb

    (@zealopensource)

    Hello Tarun,

    Please use below given code in your form and check if is working,

    ————————————————————————————–
    <p>Item name
    [text itemname id:itemname] </p>
    <p>Item amount
    [text itemamount id:itemamount] </p>
    <p>[paypalsubmit class:paypalbtn email:[email protected] itemamount:itemamount itemname:itemname return_url:http://mysitename.com cancel_url:http://mysitename.com “Pay With PayPal”]</p>
    ————————————————————————————–

    If you find any issue, please respond with url of the Contact Form 7 page.

    Thank you!!
    ZealousWeb

    Tarun Paliwal

    (@tarun-paliwal)

    Thanks ZealousWeb for reply.

    I Use this code as it is and it works.
    But, next time For amount field, I use
    [number itemamount id:itemamount]
    and it stop going to paypal. If I use Text field instant of number than it works.

    Does any other method for use number Type field For amount ??

    Please see this URL : http://kinsalegourmetacademy.com/gift-vouchers/
    I Try These two Fields::
    [number* itemamount id:itemamount “30”] : Not Work
    [text* itemamount id:itemamount “30”] : Works
    All other fields I keep same every time of Test.

    Thanks.
    Tarun Paliwal

    Tarun Paliwal

    (@tarun-paliwal)

    Hi ZealousWeb,
    plz update this issue in next Version of plugin. Currently
    I found the solution of using number field. we use number field to make amount dynamic and validate.
    But Form does not go for Paypal.

    Solution:

    On Line Number : 75 in plugins/contact-form-7-paypal-extension/contact-form-7-paypal-extension.php

    if(type == ‘text’){
    amount = jQuery(‘#’+itemamount).val();
    } else
    amount = jQuery(‘#’+itemamount+’ :checked’).val();
    }

    Replace with

    if(type == ‘text’){
    amount = jQuery(‘#’+itemamount).val();
    } else if(type == ‘number’){
    amount = jQuery(‘#’+itemamount).val();
    } else {
    amount = jQuery(‘#’+itemamount+’ :checked’).val();
    }

    Now we can use the number field for amount.

    Also do not forget to add id “itemamount” for amount field.

    Thanks
    Tarun Paliwal

    Plugin Author ZealousWeb

    (@zealopensource)

    Hi Tarun,

    Thanks you showing your interest in our plugin. We have resolved this issue in Version 1.5.

    Thanks,
    ZealousWeb

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Not opening PayPal’ is closed to new replies.