• Resolved mnp98

    (@mnp98)


    On this site I am working on, I’m connecting to another API to fetch customer data. This API holds information such as: name, address, payment info etc; The card information updates to braintree fine, But obviously its not updating to the api that holds the customer data. Is there a way I can send the payment method to braintree as well as the api that is being used?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @mnp98,

    Is there a way I can send the payment method to braintree as well as the api that is being used?

    So are you asking how to send Braintree payment info to this 3rd party API? The answer to that depends on factors like when are you trying to send this data? I can’t really answer your questions without having some more info from you.

    Thread Starter mnp98

    (@mnp98)

    So are you asking how to send Braintree payment info to this 3rd party API?

    – Yes.

    Thanks for replying, sorry if the question was unclear. I would like to send it when the payment method is saved.

    Plugin Author Clayton R

    (@mrclayton)

    @mnp98 I’d recommend looking at the action woocommerce_before_payment_token__object_save. That action is triggered by WooCommerce before the payment token is saved in the database.

    You can use the token’s data to fetch what you need from the Braintree API and send it to your 3rd party API.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Send Card to third party api’ is closed to new replies.