@alipay/ams-checkout 0.0.1717583358-dev.0 → 0.0.1717583358-dev.1
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.
@@ -116,8 +116,7 @@ export var PaypalBusSubscriber = /*#__PURE__*/function (_BusSubscriber) {
|
|
116
116
|
blockPayPalPayLaterButton = _ref2.blockPayPalPayLaterButton,
|
117
117
|
displayPayPalPayLaterButtonOnly = _ref2.displayPayPalPayLaterButtonOnly,
|
118
118
|
enableMessages = _ref2.enableMessages,
|
119
|
-
intent = _ref2.intent
|
120
|
-
buyerCountry = _ref2.buyerCountry;
|
119
|
+
intent = _ref2.intent;
|
121
120
|
var script = document.createElement('script');
|
122
121
|
var src = "https://www.paypal.com/sdk/js?";
|
123
122
|
var urlSearchParams = new URLSearchParams({
|
@@ -126,8 +125,6 @@ export var PaypalBusSubscriber = /*#__PURE__*/function (_BusSubscriber) {
|
|
126
125
|
'client-id': channelMerchantAccountId
|
127
126
|
});
|
128
127
|
var disableFundingArr = ['bancontact', 'blik', 'eps', 'giropay', 'ideal', 'mercadopago', 'mybank', 'p24', 'sepa', 'sofort'];
|
129
|
-
// TODO: 上线后删除
|
130
|
-
// const disableFundingArr = [];
|
131
128
|
if (blockPayPalCreditButton && !displayPayPalPayLaterButtonOnly) {
|
132
129
|
disableFundingArr.push('card');
|
133
130
|
}
|
@@ -146,11 +143,6 @@ export var PaypalBusSubscriber = /*#__PURE__*/function (_BusSubscriber) {
|
|
146
143
|
urlSearchParams.append('intent', 'authorize');
|
147
144
|
urlSearchParams.append('commit', 'false');
|
148
145
|
}
|
149
|
-
|
150
|
-
// TODO: 上线后删除
|
151
|
-
if (buyerCountry) {
|
152
|
-
urlSearchParams.append('buyer-country', buyerCountry);
|
153
|
-
}
|
154
146
|
if (PaypalMethodEnum.PAYPAL_VAULT === paymentMethodType) {
|
155
147
|
urlSearchParams.append('vault', 'true');
|
156
148
|
}
|
package/esm/types/index.d.ts
CHANGED
@@ -91,7 +91,6 @@ export interface IPaypalConfiguration {
|
|
91
91
|
displayPayPalPayLaterButtonOnly?: boolean;
|
92
92
|
enableMessages?: boolean;
|
93
93
|
intent?: payPalConfigurationIntentEnum;
|
94
|
-
buyerCountry?: string;
|
95
94
|
}
|
96
95
|
export declare enum payPalConfigurationIntentEnum {
|
97
96
|
'intent' = "intent",
|