Replies: 5 comments
-
There are a couple different ways to test PayPal with Braintree: https://developers.braintreepayments.com/guides/paypal/testing-go-live/ruby |
Beta Was this translation helpful? Give feedback.
-
Thank you @excid3. I have followed the link, and I have unlinked the paypal account, now using the Mocked flow. I am now getting a different error which is good progress 😅. I am passing the nonce from the browser, but somehow it is saying no customer found. Have you ever got this error before? |
Beta Was this translation helpful? Give feedback.
-
Did you delete that Braintree customer with that ID by chance? |
Beta Was this translation helpful? Give feedback.
-
I think so. I had purged the test data to start implementing your proposed solution on a fresh slate. I had not also purged my local reference. I finally got it working by setting I have a question. The app i'm building is an ecommerce platform and on checkout, do I have to check if the customer has the processor in their user object and hide the Paypal button/stripe fields, so that we can charge them with the payment details on file, so they do not have to go through the process of entering their details and approving our app? I ask this because I want to know if the card_tokens expire, or they are valid until the customer manually unsubscribes. |
Beta Was this translation helpful? Give feedback.
-
If you deleted the customer in Braintree, you'll just want to update your user in the database The For my apps, I display both the PayPal and Stripe fields and then submit Cards are stored in the payment processor, so they don't expire (as long as you assign it to the customer which Pay does automatically if you set |
Beta Was this translation helpful? Give feedback.
-
Good day. I have been struggling for the past week to get Braintree working.
Stripe was so simple and straight forward and I can test subscriptions and charges easily.
However with Braintree, I have not yet made a single successful test transaction in sandbox.
I have created a test Paypal app and connected it with Braintree and everything seems smooth up until the point where this gem has to charge the customer, that is when I get a
declined
error with no additional context.Is there anyone who has been able to successfully integrate Braintree?
Here is a screenshot of the error.

Beta Was this translation helpful? Give feedback.
All reactions