@xsolla/payment-client-core 0.1.20 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/core/payment/initialize/initialize.service.mjs +4 -2
- package/fesm2015/xsolla-payment-client-core.mjs +3 -1
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +3 -1
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.1.21.tgz +0 -0
- package/xsolla-payment-client-core-0.1.20.tgz +0 -0
|
@@ -1583,11 +1583,13 @@ class InitializeService {
|
|
|
1583
1583
|
paymentWithSavedMethod: config.paymentWithSavedMethod === true
|
|
1584
1584
|
? "1" /* XpsBoolean.true */
|
|
1585
1585
|
: "0" /* XpsBoolean.false */,
|
|
1586
|
-
saved_method_id: config.savedMethodId,
|
|
1587
1586
|
save_payment_account_only: config.savePaymentMethod
|
|
1588
1587
|
? "1" /* XpsBoolean.true */
|
|
1589
1588
|
: "0" /* XpsBoolean.false */,
|
|
1590
1589
|
};
|
|
1590
|
+
if (config.savedMethodId) {
|
|
1591
|
+
requestParams.saved_method_id = config.savedMethodId;
|
|
1592
|
+
}
|
|
1591
1593
|
return this.xpsApiService
|
|
1592
1594
|
.directPaymentRequest(requestParams)
|
|
1593
1595
|
.then((xpsResponse) => {
|