Skip to content

Commit 951a575

Browse files
authoredFeb 27, 2024··
Set script src (#92)
1 parent 53b96ac commit 951a575

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎test/paypal.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
/* @flow */
22

3-
import { setupSDK, insertMockSDKScript } from "@paypal/sdk-client/src";
3+
import { setupSDK } from "@paypal/sdk-client/src";
44

55
import * as paypalCheckout from "../src/interface"; // eslint-disable-line import/no-namespace
66

7-
insertMockSDKScript();
7+
document.currentScript?.setAttribute(
8+
"src",
9+
"test.paypal.com/sdk/js?client-id=abcxyz123"
10+
);
811

912
window.mockDomain = "mock://www.paypal.com";
1013

0 commit comments

Comments
 (0)
Please sign in to comment.