-
Notifications
You must be signed in to change notification settings - Fork 60
1. Hosted Fields
Juliusz Nadbereżny edited this page May 9, 2016
·
1 revision
Options described below can be changed in Administrator Panel → Hosted Fields 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 → Hosted Fields 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 |
Expiration Date Placeholder | Placeholder | Expiration Date Placeholder is text that will be displayed as label and placeholder in expiration date input. More information | Card Expiration Date |
Expiration Date Selector | Selector | Expiration Date Selector is an HTML element that contains the expiration date iframe. More information | #hosted-fields-expiration-date |
CVV Placeholder | Placeholder | CVV Placeholder is text that will be displayed as label and placeholder in cvv number input. More information | Cvv code |
CVV Selector | Selector | CVV Selector is an HTML element that contains the cvv number iframe. More information | #hosted-fields-cvv |
Number Placeholder | Placeholder | Number Placeholder is text that will be displayed as label and placeholder in credit card number input. More information | Card Number |
Number Selector | Selector | Number Selector is an HTML element that contains the credit card number iframe. More information | #hosted-fields-number |
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 | ID | Checkout Form is an HTML form to which braintree.js behavior is attached. More information | checkout_form_payment |
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 |
---|---|---|
onFieldEvent | _hosted_fields_on_field_event_callback.js.erb | Event is fired on focus, blur, and fieldStateChange. Partial is a body of onFieldEvent callback with access to returned objects. More information |
Style | _hosted_fields_styles.js.erb | Partial is a body of hostedFields.style option. It can contain css rules. More information |