@paypal/checkout-components 5.0.380 → 5.0.381-alpha-966201d.0
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/package.json
CHANGED
|
@@ -48,8 +48,9 @@ export function getVenmoConfig(): FundingSourceConfig {
|
|
|
48
48
|
|
|
49
49
|
requires: ({ experiment, platform }) => {
|
|
50
50
|
const isNonNativeSupported =
|
|
51
|
-
experiment?.venmoEnableWebOnNonNativeBrowser === true
|
|
52
|
-
|
|
51
|
+
experiment?.venmoEnableWebOnNonNativeBrowser === true &&
|
|
52
|
+
__WEB__ &&
|
|
53
|
+
window.popupBridge;
|
|
53
54
|
|
|
54
55
|
if (platform === PLATFORM.MOBILE) {
|
|
55
56
|
return {
|
|
@@ -772,6 +772,11 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
|
|
|
772
772
|
start: (url) => {
|
|
773
773
|
return new ZalgoPromise((resolve, reject) => {
|
|
774
774
|
window.popupBridge.onComplete = (err, result) => {
|
|
775
|
+
if (!err && !result) {
|
|
776
|
+
resolve({
|
|
777
|
+
opType: "user_closed_window",
|
|
778
|
+
});
|
|
779
|
+
}
|
|
775
780
|
const queryItems =
|
|
776
781
|
result && result.queryItems ? result.queryItems : {};
|
|
777
782
|
return err ? reject(err) : resolve(queryItems);
|