You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @description Errors that occur when [creating the Data Collector component](./module-braintree-web_data-collector.html#.create).
6
-
* @property {MERCHANT} DATA_COLLECTOR_KOUNT_NOT_ENABLED Occurs when Kount is enabled in creation options but is not enabled on the Braintree control panel.
7
-
* @property {MERCHANT} DATA_COLLECTOR_KOUNT_ERROR Occurs when Kount errors while setting up.
8
-
* @property {MERCHANT} DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS Occurs when Kount or PayPal Fraudnet could not be enabled.
6
+
* @property {MERCHANT} DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS Occurs when PayPal Fraudnet could not be enabled.
@@ -18,7 +17,7 @@ var errors = require("./errors");
18
17
* @global
19
18
* @name DataCollector
20
19
* @description <strong>Do not use this constructor directly. Use {@link module:braintree-web/data-collector.create|braintree-web.data-collector.create} instead.</strong>
21
-
* @classdesc This class is used for fraud integration with PayPal and Kount. Instances of this class have {@link DataCollector#deviceData|deviceData} which is used to correlate user sessions with server transactions.
20
+
* @classdesc This class is used for fraud integration with PayPal. Instances of this class have {@link DataCollector#deviceData|deviceData} which is used to correlate user sessions with server transactions.
22
21
*/
23
22
24
23
/**
@@ -83,13 +82,10 @@ var errors = require("./errors");
83
82
* @static
84
83
* @function create
85
84
* @description Creates a DataCollector instance and collects device data based on your merchant configuration. We recommend that you call this method as early as possible, e.g. as soon as your website loads. If that's too early, call it at the beginning of customer checkout.
86
-
* **Note:** To use your own Kount ID, contact our support team ([support@braintreepayments.com](mailto:support@braintreepayments.com) or [877.434.2894](tel:877.434.2894)).
87
85
* @param {object} options Creation options:
88
86
* @param {Client} [options.client] A {@link Client} instance.
89
87
* @param {string} [options.authorization] A tokenizationKey or clientToken. Can be used in place of `options.client`.
90
88
* @param {boolean} [options.useDeferredClient] Used in conjunction with `authorization`, allows the Data Collector instance to be available right away by fetching the client configuration in the background. When this option is used, {@link GooglePayment#getDeviceData} must be used to collect the device data.
91
-
* @param {boolean} [options.kount] Kount fraud data collection will occur if the merchant configuration has it enabled.
92
-
* **Note:** the data sent to Kount is asynchronous and may not have completed by the time the data collector create call is complete. In most cases, this will not matter, but if you create the data collector instance and immediately navigate away from the page, the device information may fail to be sent to Kount.
93
89
* @param {boolean} [options.paypal] *Deprecated:* PayPal fraud data collection will occur when the DataCollector instance is created.
94
90
* @param {string} [options.riskCorrelationId] Pass a custom risk correlation id when creating the data collector.
95
91
* @param {string} [options.clientMetadataId] Deprecated. Use `options.riskCorrelationId` instead.
Copy file name to clipboardExpand all lines: src/paypal-checkout/paypal-checkout.js
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -435,6 +435,7 @@ PayPalCheckout.prototype._setupFrameService = function (client) {
435
435
* @param {string} [options.planType] Determines the charge pattern for the Recurring Billing Agreement. Can be 'RECURRING', 'SUBSCRIPTION', 'UNSCHEDULED', or 'INSTALLMENTS'.
436
436
* @param {planMetadata} [options.planMetadata] When plan type is defined, allows for {@link PayPalCheckout~planMetadata|plan metadata} to be set for the Billing Agreement.
437
437
* @param {string} [options.userAuthenticationEmail] Optional merchant-provided buyer email, used to streamline the sign-in process for both one-time checkout and vault flows.
438
+
* @param {string} [options.shippingCallbackUrl] Optional server side shipping callback URL to be notified when a customer updates their shipping address or options. A callback request will be sent to the merchant server at this URL.
438
439
* @param {callback} [callback] The second argument is a PayPal `paymentId` or `billingToken` string, depending on whether `options.flow` is `checkout` or `vault`. This is also what is resolved by the promise if no callback is provided.
439
440
* @example
440
441
* // this paypal object is created by the PayPal JS SDK
@@ -669,6 +670,7 @@ PayPalCheckout.prototype._createPaymentResource = function (options, config) {
669
670
* @param {(string|number)} options.amount The amount of the transaction, including the amount of the selected shipping option, and all `line_items`.
670
671
* * Supports up to 2 decimal digits.
671
672
* @param {string} options.currency The currency code of the amount, such as 'USD'. Required when using the Checkout flow.
673
+
* @param {string} [options.recipientEmail] Email address of the contact and shipping recipient of the order.
672
674
* @param {shippingOption[]} [options.shippingOptions] List of {@link PayPalCheckout~shippingOption|shipping options} offered by the payee or merchant to the payer to ship or pick up their items.
673
675
* @param {lineItem[]} [options.lineItems] The {@link PayPalCheckout~lineItem|line items} for this transaction. It can include up to 249 line items.
674
676
* @param {object} [options.amountBreakdown] Optional collection of amounts that break down the total into individual pieces.
@@ -1488,6 +1490,10 @@ PayPalCheckout.prototype._formatPaymentResourceData = function (
* @param {boolean} [options.cardAddChallengeRequested] If set to `true`, a card-add challenge will be requested from the issuer. If set to `false`, a card-add challenge will not be requested. If the param is missing, a card-add challenge will only be requested for $0 amount. An authentication created using this flag should only be used for vaulting operations (creation of customers' credit cards or payment methods) and not for creating transactions.
407
407
* @param {boolean} [options.cardAdd] *Deprecated:* Use `cardAddChallengeRequested` instead.
408
408
* @param {boolean} [options.challengeRequested] If set to true, an authentication challenge will be forced if possible.
409
-
* @param {boolean} [options.dataOnlyRequested] Indicates whether to use the dataonly flow. In this flow, frictionless 3DS is ensured for Mastercard cardholders as the card scheme provides a risk score for the issuer to determine whether to approve. If dataonly is not supported by the processor, a validation error will be raised. Non-Mastercard cardholders will fallback to a normal 3DS flow.
409
+
* @param {boolean} [options.dataOnlyRequested] Indicates whether to use the data-only 3DS flow. If data-only is not supported by the processor, card brand or the transaction is in a PSD2 regulated region, it will fallback to a normal 3DS flow.
410
410
* @param {boolean} [options.exemptionRequested] *Deprecated:* Use `requestedExemptionType` instead.
411
411
* @param {boolean} [options.requestVisaDAF] Request to use VISA Digital Authentication Framework. If set to true, a Visa DAF authenticated payment credential will be created and/or used for authentication if the merchant is eligible.
412
412
* @param {string} [options.merchantName] Allows to override the merchant name that is shown in the challenge.
0 commit comments