• Resolved ilflores

    (@ilflores)


    I am using your form and it’s fabulous. Great tool. The only thing I can’t make it work is the Venmo button to show up. I have the app installed on my phone but I can’t see the button. I didn’t deactivate Venmo on the disable funding sources on the advanced tab of your plugin. How can I do?

    Thanks so much in advance.

    • This topic was modified 1 year, 8 months ago by ilflores.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @ilflores

    I hope you are doing well.

    Could you please test:

    <?php add_filter( 'forminator_enqueue_form_scripts', 'wpmudev_add_venmo_funding', 10, 3 );
    function wpmudev_add_venmo_funding( $scripts, $is_preview, $is_ajax_load ) {
    	if ( $is_ajax_load ) {
    		foreach ( $scripts as $handle => $script ) {
    			if ( $handle == 'forminator-paypal-2910' ) {
    				$scripts[$handle]['src'] = $script['src'].'&enable-funding=venmo';
    			}
    		}
    	}
    
    	return $scripts;
    }

    Add it as a mu-plugin https://wpmudev.com/blog/wordpress-mu-plugins/ replace the forminator-paypal-2910 using your form ID, and make sure your form is loading from Ajax https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#rendering

    This is going to force the enable-funding=venmo string https://monosnap.com/file/0FLCpL5EAJ7u9iwk0YGj8Zr2Ms7noo but note, it is up to PayPal to show or not it, it must match the eligibility rules https://developer.paypal.com/docs/checkout/pay-with-venmo/#link-eligibility

    Best Regards
    Patrick Freitas

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @ilflores

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional questions or problems.

    Best Regards
    Patrick Freitas

    Thread Starter ilflores

    (@ilflores)

    Hello, first, thanks for your help. I tried everything you recommended but still don′t work. Can be due to this is the to the Forminator integrates PayPal not using the JavaScript SDK as PayPal requires to show/render the Venmo button?

    Eligibility

    • US-based merchants and US-based consumers only.
    • Payment must be in USD.
    • Must be integrated using JavaScript SDK.
    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @ilflores

    I’m not in the US and am not US based merchant and yet I was able to put Venmo on the Forminator form on my end:

    1. I made sure thet “Venmo” checkbox in PayPal field funding sources is NOT checked (note that this is always “opposite logic” – a checked checkbox means that given source is disabled!)

    2. add the script that my colleague shared earlier, and updated form ID in it to match my form; this is in this line of the shared code

    if ( $handle == 'forminator-paypal-2910' ) {

    and the 2910 number should be replaced with form’s ID (form ID is the number you see in shortcode).

    3. and finally, after updating the form, I have access the form page from US (via VPN).

    The blue “Venmo” button showed up nicely and I was able to make payment via Venmo Payment simulation (as I’m not Venmo user and I could only test PayPal sandbox mode).

    But ultimately – the implementation of PayPal in Forminator meets the requirements. The only problem here is that PayPal may decide on its own whether to show it or not (and it does the same with many other payment forms) based on various criteria.

    The shared script kind of “forces” it but that still may be overwritten by PayPal’s “decision” in some cases.

    But most likely, the script either wasn’t added correctly or form ID in the script was incorrect or there is some sort of caching/asset optimization on site that needed to be fully purged and regenerated.

    I see you have changed the form already to a different plugin and that seems to work out of the box but in case you’d still like to give Forminator a go – please make sure about those three things: correct script installation, form ID and purging all caches/regenerating optimized assets (if there are any optimization tools used).

    Kind regards,
    Adam

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I activate the Venmo button’ is closed to new replies.