Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @pabloandres86,

    I am afraid this is not possible as of now but it looks to be a necessity at some point of time which is why I am sending this to the forminator to check if there is any possible way to achieve it sooner. I will update back to you about it here once I hear back from the team.

    Also, this looks to be a great feature addition which is why if that’s not possible atm, I would also be adding the same in the feature suggestions list.

    Thank you,
    Prathamesh

    Thread Starter pabloandres86

    (@pabloandres86)

    That would be too useful for me. Thank you!

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @pabloandres86,

    Our SLS team came up with a small mu-plugin which can be used to use an alternate Paypal account for a specific form. Here is the mu-plugin

    
    <?php
    add_filter( 'option_forminator_paypal_configuration', function( $config ){
    			if( is_page(123) ){
    				$config['sandbox_id'] = 'second_sandbox_client_id';
    				$config['sandbox_secret'] = 'second_sandbox_secret';
    				$config['live_id'] = 'second_live_client_id';
    				$config['live_secret'] = 'second_live_secret';
    				// $config['currency'] = 'USD';
    			}
    			return $config;
    		}, 10 );

    Here, you need to add the ID and secret in the above code in the place of second_sandbox_client_id & second_sandbox_secret.

    Now to use this on a particular form, please enter the conditional page_id in is_page(123) which contains form id for the form you want to have this PayPal account. You would need to change the number 123 with the form id. To get the form id, just copy the shortcode of that form and you would see a number in that shortcode. That number is the form id you would need to add in the place of the number 123.

    Now to understand what a mu-plugin is and how to install it, kindly check the following article for the step by step instructions with screenshots to it:
    https://premium.wpmudev.org/docs/getting-started/download-wpmu-dev-plugins-themes/#installing-mu-plugins

    Do let me know if that works for you.

    Thank you,
    Prathamesh Palve

    • This reply was modified 4 years, 2 months ago by Saurabh - WPMU DEV Support. Reason: Added more instructions to install mu plugin
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Two paypal account’ is closed to new replies.