-
Notifications
You must be signed in to change notification settings - Fork 59
3. Drop in UI
Juliusz Nadberezny edited this page May 5, 2016
·
1 revision
Options described below can be changed in Administrator Panel → Drop-in UI Payment Method edit in General settings section.
Spree Braintree Option | Braintree Option | Description | Default value |
---|---|---|---|
Merchant ID | Merchant ID | Merchant identifier is needed for proper gateway functioning. More information | |
Public Key | Public key | Public key is needed for proper gateway functioning. More information | |
Private Key | Private key | Private key is needed for proper gateway functioning. More information | |
Server | Environment | Server determines whether gateway uses sandbox or production environment. More information | sandbox |
Auto Capture | Submit for Settlement | Auto Capture determines whether an authorized transaction is submitted for settlement. More information | Use App Default (false) |
Active | Active setting determines whether payment method will be available for customers. If set to "No", this payment method will not be used. Drop-in UI and Hosted Fields payment methods use the same braintree.js events and can't be used simultaneously. When one of them is activated, the other is automatically deactivated. | Yes |
Options described below can be changed in Administrator Panel → Drop-in UI Payment Method edit in Advanced settings dropdown section.
Spree Braintree Option | Braintree Option | Description | Default value |
---|---|---|---|
Card or Bank statement name | Descriptor name | Card or Bank statement name will be displayed on consumer’s bank or card statement. More information | |
Advanced Fraud Tools | Advanced Fraud Tools | Enabling Advanced Fraud Tools will add fraud protection for Vault payments. More information | Disabled |
Kount Merchant | Kount ID | Kount Merchant ID is used to determine Kount account, which provides advanced fraud detection technology. More information | Disabled |
Pass Billing and Shipping Address | Store Shipping Address in Vault | Pass Billing and Shipping Address determines whether addresses should be always associated with user. Parameter is only used when payment is stored in Vault. More information | Disabled |
3D Secure | 3D Secure | Enabling 3D Secure will add additional layer of verification for credit card payments. More information | Disabled |
Store Payments in Vault | Store in Vault | Store Payment in Vault describes Vault behavior. It can be set to always store payment, to store only successful payments, or not to store payment at all. More information | Do not store |
Error Messages Container | Error Messages Container is an HTML element that is used to display error messages in form of flash messages. | content | |
Checkout Form | Form | Checkout Form is an HTML form to which braintree.js behavior is attached. More information | checkout_form_payment |
Drop-in UI Container | Container | Drop-in UI Container is an HTML element that contains the Drop-in UI inline form. More information | payment-form |
On the contrary, options described below can be set by overriding proper partial. This allows to keep javascript code in repository, instead of writing it in administrator panel.
Braintree Event | Spree Braintree Partial | Description |
---|---|---|
onReady | _dropin_on_ready_callback.js.erb | Event is fired when Braintree has finished setting up the entire integration and is capable of generating a nonce. Partial is a body of onReady callback with access to returned object. More information |
onError | _dropin_on_error_callback.js.erb | Event is fired when an error occurs. Partial is a body of onReady callback with access to returned objects. More information |