• Hi

    I have begun using Fluent Forms a powerful Forms plugin with a lot of features. I would be great to extend the VIPPS plugin to also work with various Form plugins. As it would be a way to extend how it can be used.

    I actually asked AI for tips on connecting Fluent Forms and VIPPS plugin and it suggested using WordPress Hooks and among other things said this:
    “Here’s an example of how you might use a WordPress hook to connect the two plugins, but keep in mind that this is a simplified example and the actual implementation will depend on the specific functionality of the WooCommerce VIPS plugin:”


    add_action('fluentform_after_submission', 'connect_fluentform_to_vips', 10, 3);
    function connect_fluentform_to_vips($insertId, $formData, $form) {
        // Check for a specific form
        if ($form->id != YOUR_FLUENT_FORM_ID) {
            return;
        }
        
        // Get the WooCommerce user or order
        $user_id = get_current_user_id(); // or get the user ID/order ID from $formData



    It would be great to explore.

    Do you have some suggestions?
    Tusen takk!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    You may find the Login With Vipps plugin, located here: https://www.ads-software.com/plugins/login-with-vipps/ useful. In addition to implementing logging in with Vipps/Mobilepay it can be extended using hooks and filters to basically do anything after authenticating with Vipps. I know it has been used to automatically fill out a form with personal details without actually logging in the user, for instance, as well as to perform age checks.

    How easy it is in practice will depend on the form/form plugin, but it is certainly possible.

    Doing this in the Login with Vipps plugin requires defining an “application” for your usecase and hooks that will handle this application when the user logs in. You will need to write errorhandlers too, as well as possibly working around various WordPress quirks, so it won’t be completely trival. But you could for instance create an application that would submit a form with the email, phone and personalia from Vipps.

    This plugin in particular integrates the payment APIs of Vipps only, and does require all of WooCommerce to be installed for order management and so forth. It may not be the best starting-point for other integrations, as this is a pretty complex setup already.

    Thread Starter Paal Joachim Romdahl

    (@paaljoachim)

    So bottom line is that it is pretty difficult in adding a kind of bridge between this Mobile Vips play plugin – hook etc and that is it used as a payment option in Fluent Forms Pro.

    The reason why I am working on setting up Vips payment in Fluent Forms Pro is that it gives me additional nice easy to use option to pay for a service using that Forms plugin.

    Plugin Author Iver Odin Kvello

    (@iverok)

    I see! Yes, this plugin is tightly integrated with WooCommerce and cannot be easily used in other context.

    I would imagine that Fluent Forms Pro also has a payment gateway system; and integrating Vipps with that is probably not particularily difficult (See the VippsApi.class.php in the woo-vipps plugin for details). Almost all the complexity in the plugin has to do with the integration with WooCommerce, the order flow, the customer objects and so forth.

    However, I’m not familiar with Fluent Forms Pro, so I can’t be more specific as to the complexity of this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.