• joncon62

    (@joncon62)


    My site has multiple vendors selling different products and I would like to use your plugin?to link sales of their products to their own GoCardless accounts.

    I therefore need a way to filter the live_access_token so I can provide the correct token for the product being bought.

    Is this possible? 

    I am a developer so I’m happy to write extra code for this. Could you provide a filter for the token along with the order_id or similar parameter to allow me to determine what product is being bought?

    I do a very similar?thing with PayPal (standard) and Stripe which?has been working well for years.

    Jon

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

    (@kadament)

    Hi Jon, in theory I think this could work, but I would be very careful in terms of the security implications with this. I can add in filters as part of the next deployment if you’re able to please confirm which filters you require. Thanks.

    Thread Starter joncon62

    (@joncon62)

    Ah thank you for considering this. I need to filter the keys that are needed to determine the GC account being used. So I need to filter live_access_token (and sandbox_access_token for testing). I’m not sure at what point these are sent to GC, if the order has already been created then the $order object would be useful, but if the order hasn’t yet been created then the $cart would be good.

    If it helps, this is how it works for PayPal: https://www.businessbloomer.com/woocommerce-multiple-paypal-accounts/

    I only ever allow products from a single vendor in the cart so all the products will be linked to the same GC account.

    Thank you so much for this!

    Plugin Author Adam Kent

    (@kadament)

    Hi Jon, sorry for my slow reply. No problem – I’ve scheduled these into the next release (within the next few weeks). Thanks

    Thread Starter joncon62

    (@joncon62)

    That’s great news, thank you so much!

    Thread Starter joncon62

    (@joncon62)

    Any update on when you might publish your next release with the GC filters?

    Thread Starter joncon62

    (@joncon62)

    Have you stopped supporting this free version of the plugin? Does your pro version support filters for the access tokens?

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