Comments (8)
Agreed. There is no reference in the Javascript SDK documentation for what functions and objects are available and what parameters can be used.
Questions I have for braintree.setup('your-client-token', 'custom', {container: 'payment-form'});
- What does the 2nd argument mean and what can you put there?
- What keys and values can be used in the config object (assuming that's what the 3rd argument is)?
Also, in the README, it references other low-level functions like tokenizeCard
, but there is no documentation for those at all.
from braintree-web.
+1! It took me a stupid long time to figure this out (esp that you could define a container for a paypal option with a custom form), and I eventually found the answer I was looking for on a stack overflow question that had barely had any traffic.
braintree.setup("client-token", "custom", {
id: "payment-form",
paypal: {
container: "paypal-container"
}
});
from braintree-web.
Hey @diafygi & @kt32291, thanks for echoing this - braintree.setup
is sparsely documented which is frustrating to all parties involved.
I'm opening a PR here (#11) that begins to add comprehensive documentation for it. I'm not sure whether people will want the final version to live in this README or on our docs site, but it's a start and hopefully it helps answer some questions.
from braintree-web.
Yes! It should be better!
from braintree-web.
Hi all,
We updated our documentation a while back - take a look at these links and let us know if that helps clear things up!
https://developers.braintreepayments.com/javascript+dotnet/guides/client-sdk#global-setup
from braintree-web.
For what it's worth, the new documentation is great, but I had no idea how to find it. Nothing in that left side menu looked obviously related, and the search function did not help. I had to google and go through this Github ticket in order to find it. I would have never thought it would be in the "Additional Features -> Hosted Fields (beta)" menu. It seems like a pretty core piece of functionality; it should probably be much more obvious to find.
from braintree-web.
Closing this issue because the links @rturumella provided should answer the original issue.
@mackstann I've passed your feedback onto our documentation team. Thanks for letting us know you had difficulty getting to the page. We'll keep it in mind as we improve the docs site.
from braintree-web.
Hi everyone,
I'm pleased to announce that we have consolidated documentation for braintree.setup
and posted it in the Client References section of our docs site.
from braintree-web.
Related Issues (20)
- TypeError: undefined is not an object (evaluating 'braintree_web__WEBPACK_IMPORTED_MODULE_12__.ApplePaySession.canMakePayments') HOT 1
- threeDSecure cardinal-sdk-setup-timeout HOT 6
- No callback function for loadPayPalSDK method HOT 3
- threeDSecure flow stops if Init request to cardinal fails HOT 5
- Hosted fields assets 404. HOT 3
- Upgrading to 3.98.0 hosted fields HOT 5
- ApplePay within an iframe HOT 7
- Support for text-fill-color styling in autofill styles HOT 1
- patch_payment_resource returns generic 422 on second request HOT 1
- Action required: Updates to required 3D Secure data fields HOT 1
- Request: Make commit messages meaningful HOT 1
- PayPal Button Integration not working on Production environment HOT 1
- Request: Include 3DS error codes in verifyPayload HOT 2
- Postal code validation does not work HOT 1
- Refused to display 'https://www.sandbox.paypal.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'." HOT 2
- Changes to Visa 3DS Data Requirements HOT 2
- Property 'updatePayment' does not exist on type 'PayPalCheckout' (braintree-web version: 3.102.0) HOT 1
- Local Payment Method (iDeal) Popups are blocked by Safari HOT 1
- PaymentDataRequest allowedCountryCodes not taking effect
- Verify if new Visa 3D Secure fields added succesfully?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braintree-web.