File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ export default class Client {
7171 this . storeRequestSender = storeRequestSender ;
7272 }
7373
74+ setHost ( host ) {
75+ this . config . host = host ;
76+ }
77+
7478 /**
7579 * @param {PaymentRequestData } data
7680 * @param {Function } [callback]
Original file line number Diff line number Diff line change @@ -13,12 +13,20 @@ export default class UrlHelper {
1313 * @param {string } config.host
1414 * @returns {void }
1515 */
16- constructor ( { host } ) {
16+ constructor ( config ) {
1717 /**
1818 * @private
19- * @type {string }
19+ * @type {Object }
2020 */
21- this . host = host ;
21+ this . config = config ;
22+ }
23+
24+ /**
25+ * @private
26+ * @returns {string }
27+ */
28+ get host ( ) {
29+ return this . config . host ;
2230 }
2331
2432 /**
You can’t perform that action at this time.
0 commit comments