Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Added description BraintreeInput #909

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/code/Magento/BraintreeGraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ input PaymentMethodInput {
}

input BraintreeInput {
payment_method_nonce: String!
is_active_payment_token_enabler: Boolean!
device_data: String
payment_method_nonce: String! @doc(description:"Required input for Braintrees payments")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, the added description doesn't explain the field purpose.
The payment_method_nonce is a one-time payment token generated by Braintree payment gateway based on card details and this token is required to make sale transaction.

is_active_payment_token_enabler: Boolean! @doc(description:"Required input for Braintrees payments")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This field is required only if Vault is enabled for Braintree payment integration. The is_active_payment_token_enabler shows if an entered by a customer credit/debit card should be tokenized for later usage.

device_data: String @doc(description:"Additional information for Braintrees payments")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The device_data will be presented only in a case if Kount (advanced fraud protection) is enabled for Braintree payment integration. The device data contains a fingerprint provided by Braintree JS SDK and should be sent with sale transaction details to the Braintree payment gateway.

}

input BraintreeCcVaultInput {
Expand Down