@bootpay/bp-commerce-sdk
Advanced tools
| import { BootpayEventHook } from '../../../vendor/mixins/hook'; | ||
| declare class BrandpayHook extends BootpayEventHook { | ||
| constructor(hooks?: { | ||
| [key: string]: Function; | ||
| }); | ||
| } | ||
| export declare const BrandpayHooks: BrandpayHook; | ||
| export {}; |
| export declare const BrandpayEvents: { | ||
| brandpayWalletUpdated(data: any): void; | ||
| brandpayManagerWindowReady: (data: any) => void; | ||
| bootpayWidgetPaymentWindowResize: (data: any) => void; | ||
| brandpayExternalPassword: (data: { | ||
| popup: boolean; | ||
| url: string; | ||
| }) => void; | ||
| externalPasswordResponse: (data: any) => void; | ||
| }; |
| import { BootpayWindowEvent } from '../../vendor/mixins/event'; | ||
| declare class BootpayWidgetEventManager extends BootpayWindowEvent { | ||
| constructor(); | ||
| } | ||
| export declare const BootpayWidgetEvent: BootpayWidgetEventManager; | ||
| export {}; |
| import { TemplateManager } from '../../vendor/mixins/template-manager'; | ||
| declare class TemplateBrandpayManager extends TemplateManager { | ||
| $template: string; | ||
| $iFrameId: string; | ||
| $iFrameContainerId: string; | ||
| $exOverlayId: string; | ||
| $exOverlayContainerId: string; | ||
| $el: string | undefined; | ||
| constructor(); | ||
| render(el: string, requestData: { | ||
| clientKey: string; | ||
| loginToken: string; | ||
| }): void; | ||
| templateRender({ clientKey, loginToken }: { | ||
| clientKey: string; | ||
| loginToken: string; | ||
| }): void; | ||
| resize(resizeData: any): void; | ||
| postMessage(event: string, data: any): void; | ||
| setIframeUrl(uri: string): void; | ||
| externalPassword({ popup, url }: { | ||
| popup: boolean; | ||
| url: string; | ||
| }): void; | ||
| } | ||
| export declare const TemplateBrandpay: TemplateBrandpayManager; | ||
| export {}; |
| export declare const Const: { | ||
| PLATFORM: { | ||
| JS: number; | ||
| ANDROID: number; | ||
| IOS: number; | ||
| REST: number; | ||
| }; | ||
| STORAGE_PREFIX(name: string): string; | ||
| }; |
@@ -9,2 +9,6 @@ import { BootpayManager } from '../vendor/mixins/bootpay-manager'; | ||
| requestCheckoutUrl(url: string): Promise<any>; | ||
| launchBrandpayManager(el: string, requestData: { | ||
| clientKey: string; | ||
| loginToken: string; | ||
| }): void; | ||
| hideAlert(eventName?: string): void; | ||
@@ -11,0 +15,0 @@ sendEvent(eventName: string, data: any): void; |
@@ -15,2 +15,7 @@ export declare const EnvironmentEx: { | ||
| }; | ||
| WIDGET_URL: { | ||
| development: string; | ||
| stage: string; | ||
| production: string; | ||
| }; | ||
| set(env: "development" | "stage" | "production"): void; | ||
@@ -21,4 +26,5 @@ setClientKey(clientKey: string): string | undefined; | ||
| toCheckoutApiUrl(uri: string): string; | ||
| toWidget(url: string): string; | ||
| isMobile(): boolean; | ||
| isMobileSafari(): boolean; | ||
| }; |
@@ -15,2 +15,4 @@ interface BootpayCommerceInterface { | ||
| setLogLevel(level: number): void | ||
| launchBrandpayManager(el: string, requestData: { client_key: string, login_token: string }): void | ||
| } | ||
@@ -75,3 +77,2 @@ | ||
| use_auto_login?: boolean | ||
| use_notification?: boolean | ||
| expired_at?: string | ||
@@ -78,0 +79,0 @@ metadata?: Record<string, any> |
+1
-1
| { | ||
| "name": "@bootpay/bp-commerce-sdk", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "main": "dist/index.mjs", | ||
@@ -5,0 +5,0 @@ "exports": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
458407
3.24%46
12.2%8784
3.44%