• Resolved xw7

    (@xw7)


    I’m hoping someone may be able to help with a couple of custom parameters I need to pass with each transaction.

    On the older version of this plugin I was able to pass both the application_fee and destination in the class-wc-gateway-stripe.php file within the generate_payment_request function using $post_data, however on the new one I am unable to pass them using $stripe_params, wonder if anyone can help point me in the right direction.

    Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Hi @xw7,

    The current version of the Stripe plugin still has a filter named wc_stripe_params which can be used to override the parameters sent to Stripe.

    Can you explain exactly what you are trying to accomplish? As far as I’m aware, the application_fee is only used for Stripe Connect. This plugin doesn’t use Stripe Connect.

    Thread Starter xw7

    (@xw7)

    Hi @shellbeezy

    Thank you for your reply.

    You are correct it is used for connect accounts, we have a main platform account with over 300 custom connect accounts and each one needs to have a fee deducted based on what we have agreed with them as we get volume pricing and we needed to send these values over as well which we have managed to do using the abstract file.

    It’s quite unique what we were trying to do and understand the plugin isn’t exactly designed to do that but we wanted the latest version for SCA.

    As we have managed to complete this task I will now mark it as resolved.

    • This reply was modified 6 years, 10 months ago by xw7. Reason: Resolved
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Parameters (Desitnation, Application Fee)’ is closed to new replies.