Use this option to change the language, links, and terminology used throughout Drop-in. #dropin-container.ĭeprecated: Now an alias for ntainer. If authorization is a client token created with a customer ID, Drop-in will render saved payment methods and automatically store any newly-added payment methods in their Vault record.Ī reference to an empty element, such as a, where Drop-in will be included on your page or the selector for the empty element. Object containing all Dropin options: Properties NameĪ tokenization key or a client token. It is used for creating Dropin instances. This function is the entry point for braintree.dropin. Including a required cardholder name field in card form Including an optional cardholder name field in card form Specifying a locale and payment option priority Source:Ī full example accepting cards, PayPal, and PayPal credit See our demo app for an example of using our script tag integration. The following configuration properties may be set:įor more control and customization, use dropin.create instead. Specify creation options as data attributes in your script tag, as shown in the examples below. If you have data collector enabled, the device data will be injected into a hidden input with the name device_data before form submission. If the tokenization is unsuccessful, a relevant error will be shown in the UI. If the tokenization is successful, it will insert the payment method nonce into a hidden input with the name payment_method_nonce and then submit your form. When your form is submitted, Drop-in will intercept the form submission and attempt to tokenize the payment method. All you need to do is add the Drop-in script inside your form element where you want Drop-in to appear and include a data-braintree-dropin-authorization property with your tokenization key or client token. The script tag integration is the fastest way to integrate. There are two ways to integrate Drop-in into your page: a script tag integration and a JavaScript integration using dropin.create.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |