Skip to content

Commit f4ebf68

Browse files
authored
Merge pull request #61 from capsula4/mapper-remove-backfill_order
CHECKOUT-3035 Provide config setter
2 parents 2a14a10 + 0d58b2b commit f4ebf68

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/client/client.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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]

src/payment/url-helper.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)