• Resolved dev4ls

    (@dev4ls)


    Hello,

    I’m curious to know if it’s possible to charge a payment token/profile from an external system? That system handles our subscriptions and will auto create orders on the scheduled date within itself, but not post them back to the site. Currently, with tokenized CCs we can reference the token and use the payment, but not sure how to achieve that with this BrainTree plugin. BrainTree’s docs seem to imply this is possible if we Vault the payment prior to using it, but I don’t see any settings regarding that in the plugin. Seems possible with a custom integration, but wanted to evaluate the plugin.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @dev4ls,

    I’m curious to know if it’s possible to charge a payment token/profile from an external system?

    Yes it’s possible.

    urrently, with tokenized CCs we can reference the token and use the payment, but not sure how to achieve that with this BrainTree plugin.

    Sorry, I don’t understand what you mean. Can you please try to clarify?

    Are you asking how you can tokenize the customer’s payment method during the checkout process?

    Kind Regards,

    Thread Starter dev4ls

    (@dev4ls)

    Hello,

    I believe I am would like to know the process of ‘vaulting’ payment methods during checkout, for subscription use later by an external system.

    I say this because I’m not sure if that’s the solution needed to accomplish that goal with this plugin, but reading BrainTree docs, vaulted payments are the ones used for recurring payments so it leads me to think I do.

    Happy to be corrected if I misunderstood something!

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @dev4ls,

    If you’re needing to process a recurring payment via an external system, then yes you would want to vault the payment method during the checkout process. To accomplish that you can use the filters provided in the plugin to change the transaction args so that the payment method is vaulted.

    Example:

    add_filter('wc_braintree_order_transaction_args', function($args, $order){
        $args['options']['storeInVaultOnSuccess'] = true;
        return $args;
    }, 10, 2);

    Braintree Plugin API Docs

    You should require that your customers create an account on the checkout page (if they aren’t already logged in). That way the Braintree plugin will automatically create the Braintree Customer ID and associate it to the user.

    Kind Regards,

    Thread Starter dev4ls

    (@dev4ls)

    Lovely solution and great tip about the login requirement!

    Is there a working link or reference to the hook and action docs available for this plugin?

    Following the links on the site lead to 404s so I was unable to learn this information in an easily accessible manner.

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @dev4ls,

    The following link works which leads directly to the filter in the provided example:

    https://docs.paymentplugins.com/wc-braintree/api/source-class-WC_Braintree_Payment_Gateway.html#492

    We’re fixing the Hook Reference link on our API docs site.

    Kind Regards,

    Plugin Author Payment Plugins

    (@mrclayton)

    Hook reference link is now working and not returning a 404 on the docs site.

    Thread Starter dev4ls

    (@dev4ls)

    Thank you very much for the support on this!

    Plugin Author Payment Plugins

    (@mrclayton)

    You’re welcome. We always appreciate good feedback if you have time.

    https://www.ads-software.com/support/plugin/woo-payment-gateway/reviews/

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Charge a payment for subscription from external subsription system’ is closed to new replies.