• Resolved joncon62

    (@joncon62)


    I am trying to get your plugin to work with multiple paypal accounts in one woocommerce store and I nearly have it working.

    If I individually change the merchant_email, merchant_id, client?id and client_secret options in the plugin settings then transactions work as expected to the correct account and refunds etc are handled correctly.

    However, if I dynamically change those 4 option values (including their respective sandbox values, eg merchant_email_sandbox) using custom code, money ends up in the right account, but refunds etc don’t work as the API is still linked to the original plugin settings when saved.

    How can get this to work, is there a function call to update the API settings with the new option values or are there some other values I need to modify?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @joncon62

    The PayPal Payments plugin can store the API credentials for one live and one sandbox account, but it is meant for use with only one account at a time.

    Using multiple PayPal live or sandbox merchants on the same website is not supported or recommended. So while you may be able to create transactions for different merchants by exchanging the API credentials, we cannot recommend doing so as certain features in the plugin do not anticipate switching the API credentials dynamically and, therefore, may not work correctly.

    The plugin does allow you to customize it to your needs by creating a custom module. But this is not so trivial of a task, especially when changing core plugin behavior such as the onboarding logic.

    How can get this to work, is there a function call to update the API settings with the new option values or are there some other values I need to modify?

    I’m afraid we can’t provide much guidance in this regard. The better option may be to look for alternative PayPal integrations supporting multi-account configurations. There are some solutions on the market, though I’m only aware of paid ones.

    Kind regards,
    Niklas

    Thread Starter joncon62

    (@joncon62)

    I’ve got this working now, including refunds being made correctly. It seems I only need to change the merchant_id (and maybe merchant_email) for the money to hit to correct vendor account, I don’t need to modify the client_id or client_secret from the admin settings, does that make any sense to you?

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @joncon62

    The PayPal Payments plugin credentials are made up of different parts that all serve different purposes. Oversimplified, all credentials combined assemble a key that allows you to receive a token from PayPal to confirm the API connection.

    Manually tinkering with the credentials may be possible to a certain degree. Still, we cannot guarantee that everything will work as expected — especially with more advanced features such as PayPal Vaulting or Shipment Tracking.

    So if you encounter any problems with your customizations, you can share them with the support team?directly for additional guidance. The team is always happy to help, but please remember that we cannot support all kinds of customizations. Thanks!

    Kind regards,
    Niklas

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello,

    Since we have not received any response or further questions from you, we assume that everything is working according to your requirements. If you still have any questions for us, please open a new thread as we will mark this one as resolved.

    Regards,
    Krystian

    Hi @joncon62,

    im looking for a similar solution. Would you be able to share some code or details where you made the changes within the plugin to change email, secret etc.

    Thanks,

    Lukas

    Thread Starter joncon62

    (@joncon62)

    Hi @bg000331,

    I’m sorry but I didn’t get it working in the end so I gave up. I’m currently using paypal standard with mutilple accounts which does work. You can find the code for that here: https://www.businessbloomer.com/woocommerce-multiple-paypal-accounts/

    Best wishes
    Jon

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multiple PayPal accounts’ is closed to new replies.