Closed BorisBresciani closed 7 years ago
For anyone looking at this in the future, the problem was that no flow
property was included in the PayPal configuration.
I found it in the V3. Even after adding the flow option I get the same error as above: "No value passed to payment"
@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.
It was due to wrong Paypal sandbox account linked in braintree.
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?
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 !