• Resolved Webby Scots

    (@webby-scots)


    Hi,

    I am using your plugin, but I have a problem. I have some custom code hooked onto the woocommerce_payment_complete hook, and that code is firing even on bad cards, I am in sandbox mode and taking cards from https://developers.braintreepayments.com/reference/general/testing/php which should be failing verification, but your plugin is firing the payment complete hook as if all is good. And the order notes also show the order is completing etc. What can we do here?

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

    (@mrclayton)

    Hi @webby-scots,

    If you look at the code you will see that payment_complete() is never called until payment is made successfully. If the payment is going through when it should be failing a verification then you most likely don’t have your CVV or AVS checks configured in your Braintree control panel.

    Thanks,

    Thread Starter Webby Scots

    (@webby-scots)

    OK so yeah, you were right.I put in my own braintree sandbox details and it has cvv configured and get the errors properly. I have now put the owners account back in and I am getting 422 (Unprocessable Entity) from the paypal popup. You click the yellow paypal button and the popup opens and immediately closes with that response from the api. The woocommerce notice says PayPal payment options are invalid. – any ideas?

    Plugin Author Clayton R

    (@mrclayton)

    Hello @webby-scots,

    Have you ensured that the merchants PayPal account is linked with their Braintree account?

    If you are using the Pro version of the plugin, please contact us at [email protected] and provide the website. These types of errors are almost always due to incomplete configuration.

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

The topic ‘Bad cards payment complete’ is closed to new replies.