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
* @property {object} fallback Configuration for what to do when app switching back from a Bank app on a mobile device.
84
+
* @property {object} fallback Configuration for what to do when app switching back from a Bank app on a mobile device. Only applicable to the popup flow.
80
85
* @property {string} fallback.buttonText The text to display in a button to redirect back to the merchant page.
81
86
* @property {string} fallback.url The url to redirect to when the redirect button is pressed. Query params will be added to the url to process the data returned from the bank.
82
87
* @property {string} fallback.cancelButtonText The text to display in a button to redirect back to the merchant page when the customer cancels. If no `cancelButtonText` is provided, `buttonText` will be used.
83
88
* @property {string} fallback.cancelUrl The url to redirect to when the redirect button is pressed when the customer cancels. Query params will be added to the url to check the state of the payment. If no `cancelUrl` is provided, `url` will be used.
84
-
* @property {object} [windowOptions] The options for configuring the window that is opened when starting the payment.
89
+
* @property {object} [windowOptions] The options for configuring the window that is opened when starting the payment. Only applicable to the popup flow.
85
90
* @property {number} [windowOptions.width=1282] The width in pixels of the window opened when starting the payment. The default width size is this large to allow various banking partner landing pages to display the QR Code to be scanned by the bank's mobile app. Many will not display the QR code when the window size is smaller than a standard desktop screen.
86
91
* @property {number} [windowOptions.height=720] The height in pixels of the window opened when starting the payment.
87
92
* @property {string} amount The amount to authorize for the transaction.
@@ -409,10 +414,17 @@ LocalPayment.prototype.startPayment = function (options) {
@@ -21,6 +22,7 @@ var errors = require("./shared/errors");
21
22
* @param {Client} [options.client] A {@link Client} instance.
22
23
* @param {string} [options.authorization] A tokenizationKey or clientToken. Can be used in place of `options.client`.
23
24
* @param {string} [options.merchantAccountId] A non-default merchant account ID to use for tokenization and creation of the authorizing transaction. Braintree strongly recommends specifying this parameter.
25
+
* @param {redirectUrl} When provided, triggers full page redirect flow instead of popup flow.
24
26
* @param {callback} callback The second argument, `data`, is the {@link LocalPayment} instance.
25
27
* @example <caption>Using the local payment component to set up an iDEAL button</caption>
26
28
* var idealButton = document.querySelector('.ideal-button');
0 commit comments