braintree / braintree-web-drop-in

Braintree Drop-in for the web
MIT License
200 stars 126 forks source link

Error paypal dropin #216

Closed BorisBresciani closed 7 years ago

BorisBresciani commented 7 years ago

General information

Issue description

Screen: http://i.imgur.com/ef244va.png

When I click on 'Pay' on the 'Paypal' button I have a popup that opens and then closes directly with the errors displayed on the screenshot.

Code: braintree.dropin.create({ authorization: 'token' selector: '#dropin-container', paypal: { amount: 10.00, currency: 'EUR' } }, function (err, dropinInstance) { if (err) { // Handle any errors that might've occurred when creating Drop-in console.error(err); return; } submitButton.addEventListener('click', function () { dropinInstance.requestPaymentMethod(function (err, payload) { if (err) { // Handle errors in requesting payment method } console.log(payload); }); }); });

Thanks you !

crookedneighbor commented 7 years ago

For anyone looking at this in the future, the problem was that no flow property was included in the PayPal configuration.

ciokan commented 7 years ago

I found it in the V3. Even after adding the flow option I get the same error as above: "No value passed to payment"

crookedneighbor commented 7 years ago

@ciokan If you're having issues, please open a ticket with our support team. It's unlikely that it's an issue with the SDK itself.

https://developers.braintreepayments.com/forms/contact

ciokan commented 7 years ago

It was due to wrong Paypal sandbox account linked in braintree.

ilnli commented 3 years ago

It was due to wrong Paypal sandbox account linked in braintree.

I'm hitting the same issue, although I have a Paypal sandbox account linked to the Braintree account, but it keeps giving me "No value passed to payment", could you please tell me what's different in your correct Paypal sandbox that's making it accept the payments now but wasn't before with the wrong account?