Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Braintree - Failed payment looks like the order completed successfully. #536

Closed
angelleye opened this issue Aug 15, 2016 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@angelleye
Copy link
Collaborator

angelleye commented Aug 15, 2016

Reported by our PayPal rep certifying our Braintree integration.

I think I found a case where a decline was being treated as a successful transaction. Here are the steps to reproduce:

o Link a PayPal Sandbox account to your Braintree Sandbox account. (If you don’t have this set up, let me know – I can help you with that.)

o On the PayPal Sandbox account, enable Payment Review (from https://developer.paypal.com -- if you don’t know how to do this, let me know – I can help you with that.)

o In the WooCommerce plugin, enable the drop-in UI.

o On the checkout page, click the PayPal button and go through the PayPal checkout.

o Click “Place Order”. The order is accepted, even though Braintree sends back a “2081: PayPal pending payments are not supported” error.

o Here’s what I see as a buyer:

Here is what I see in the WooCommerce checkout when completed.
image

Here is what Braintree admin panel shows for the transaction...
image

Here is what the log shows...

08-15-2016 @ 19:13:07 - Begin Braintree_Transaction::sale request
08-15-2016 @ 19:13:07 - Order: 16
08-15-2016 @ 19:13:07 - Braintree_Transaction::sale Reuest Data Array
(
    [billing] => Array
        (
            [firstName] => Merchant
            [lastName] => Testing
            [company] => 
            [streetAddress] => 7700 Eastport Pkwy
            [extendedAddress] => 
            [locality] => La Vista
            [region] => NE
            [postalCode] => 68128
            [countryCodeAlpha2] => US
        )

    [shipping] => Array
        (
            [firstName] => Merchant
            [lastName] => Testing
            [company] => 
            [streetAddress] => 7700 Eastport Pkwy
            [extendedAddress] => 
            [locality] => La Vista
            [region] => NE
            [postalCode] => 68128
            [countryCodeAlpha2] => US
        )

    [paymentMethodNonce] => *********************
    [customer] => Array
        (
            [firstName] => Merchant
            [lastName] => Testing
            [company] => 
            [phone] => 4025559876
            [email] => macole@paypal.com
        )

    [amount] => 1.00
    [merchantAccountId] => ggv7vr9vzwdpbdnp
    [orderId] => 16
    [options] => Array
        (
            [submitForSettlement] => 1
            [storeInVaultOnSuccess] => 
        )

    [channel] => AngellEYEPayPalforWoo_BT
)

08-15-2016 @ 19:13:12 - Braintree_Transaction::sale Response code: 2081
08-15-2016 @ 19:13:12 - Braintree_Transaction::sale Response message: PayPal pending payments are not supported (2081 : )
@angelleye angelleye added this to the 1.2.4 milestone Aug 15, 2016
@angelleye angelleye added the bug label Aug 15, 2016
@angelleye
Copy link
Collaborator Author

angelleye commented Aug 15, 2016

Follow up from PayPal rep...

· On the first attempt, I saw two full Braintree payment forms. (One disappeared when I completed the PayPal checkout.)

· On the second attempt, I wasn’t watching – I don’t know what happened there.

· On the third attempt, I saw two “loading” spinners come up (one right below the other). One disappeared before it was able to load completely.

I set up a copy on my personal server (external to PayPal); on that one, this is what I’m seeing:
· Spinner pops up

· Payment form pops up

· Payment form disappears

· Another spinner pops up

· Another payment form pops up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant