@tap-payments/apple-pay-button 1.0.14 → 1.0.15
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/README.md +5 -5
- package/build/features/ApplePayButton/ApplePayButton.d.ts +1 -1
- package/build/features/ApplePayButton/ApplePayButton.js +1 -1
- package/build/features/ApplePayButton/index.d.ts +2 -2
- package/build/features/ApplePayButton/index.js +2 -2
- package/build/index.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -141,16 +141,16 @@ const App = () => {
|
|
|
141
141
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
142
142
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
143
143
|
<title>apple pay button</title>
|
|
144
|
-
<link rel="stylesheet" href="https://tap-sdks.b-cdn.net/apple-pay/build-1.0.
|
|
145
|
-
<script src="https://tap-sdks.b-cdn.net/apple-pay/build-1.0.
|
|
144
|
+
<link rel="stylesheet" href="https://tap-sdks.b-cdn.net/apple-pay/build-1.0.15/main.css" />
|
|
145
|
+
<script src="https://tap-sdks.b-cdn.net/apple-pay/build-1.0.15/main.js"></script>
|
|
146
146
|
</head>
|
|
147
147
|
|
|
148
148
|
<body>
|
|
149
149
|
<div id="apple-pay-button"></div>
|
|
150
150
|
<script type="text/javascript">
|
|
151
|
-
const {
|
|
152
|
-
window.
|
|
153
|
-
|
|
151
|
+
const { render, ThemeMode, SupportedNetworks, Scope, Environment, Locale, ButtonType, Edges } =
|
|
152
|
+
window.TapApplepaySDK
|
|
153
|
+
render(
|
|
154
154
|
{
|
|
155
155
|
publicKey: 'pk_test_7xxxxxxxxx',
|
|
156
156
|
environment: Environment.Development,
|
|
@@ -3,4 +3,4 @@ import { ApplePayButtonProps } from '../../@types';
|
|
|
3
3
|
import './ApplePayButton.css';
|
|
4
4
|
export type { ApplePayButtonProps };
|
|
5
5
|
export declare function ApplePayButton(props: ApplePayButtonProps): JSX.Element;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const render: (props: ApplePayButtonProps, elementId: string) => any;
|
|
@@ -39,7 +39,7 @@ export function ApplePayButton(props) {
|
|
|
39
39
|
return _jsx(ApplePay, __assign({}, props));
|
|
40
40
|
}
|
|
41
41
|
var tapConnectInstance = null;
|
|
42
|
-
export var
|
|
42
|
+
export var render = function (props, elementId) {
|
|
43
43
|
if (tapConnectInstance) {
|
|
44
44
|
return tapConnectInstance;
|
|
45
45
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ApplePayButtonProps, ApplePayButton,
|
|
2
|
-
export { ApplePayButton,
|
|
1
|
+
import { ApplePayButtonProps, ApplePayButton, render } from './ApplePayButton';
|
|
2
|
+
export { ApplePayButton, render };
|
|
3
3
|
export type { ApplePayButtonProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ApplePayButton,
|
|
2
|
-
export { ApplePayButton,
|
|
1
|
+
import { ApplePayButton, render } from './ApplePayButton';
|
|
2
|
+
export { ApplePayButton, render };
|
package/build/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApplePayButton,
|
|
1
|
+
import { ApplePayButton, render } from './features/ApplePayButton';
|
|
2
2
|
import { ThemeMode, Scope, SupportedNetworks, Environment, Locale, ButtonType, Edges, MerchantCapabilities } from './constants';
|
|
3
3
|
export { ApplePayButton, ThemeMode, Scope, SupportedNetworks, Environment, Locale, ButtonType, Edges, MerchantCapabilities };
|
|
4
|
-
window['
|
|
5
|
-
|
|
4
|
+
window['TapApplepaySDK'] = {
|
|
5
|
+
render: render,
|
|
6
6
|
Scope: Scope,
|
|
7
7
|
SupportedNetworks: SupportedNetworks,
|
|
8
8
|
Environment: Environment,
|