@payrails/web-sdk 5.38.2 → 5.39.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.
- package/README.md +9 -0
- package/index.js +4 -4
- package/package.json +1 -1
- package/payrails-styles.css +11 -11
- package/payrails.d.ts +10 -6
- package/payrails.js +4 -4
package/package.json
CHANGED
package/payrails-styles.css
CHANGED
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
align-items: center;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
.payrails-container-wrapper {
|
|
10
|
+
width: 100%;
|
|
11
|
+
min-height: 90px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.with-card-holder .payrails-container-wrapper {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: min-content;
|
|
17
|
+
min-height: 120px;
|
|
18
|
+
}
|
|
19
|
+
|
|
9
20
|
#payrails-card-payment-button {
|
|
10
21
|
display: flex;
|
|
11
22
|
flex-direction: row;
|
|
@@ -879,14 +890,3 @@ button.payrails-generic-button {
|
|
|
879
890
|
background-color: unset;
|
|
880
891
|
color: unset;
|
|
881
892
|
}
|
|
882
|
-
|
|
883
|
-
.payrails-container-wrapper {
|
|
884
|
-
width: 100%;
|
|
885
|
-
min-height: 90px;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
.with-card-holder .payrails-container-wrapper {
|
|
889
|
-
width: 100%;
|
|
890
|
-
height: min-content;
|
|
891
|
-
min-height: 120px;
|
|
892
|
-
}
|
package/payrails.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { LogLevel as LogLevel$1 } from '@payrails/logger';
|
|
2
1
|
import { FraudProvider } from '@payrails/fraud-sdk';
|
|
3
|
-
import * as _payrails_iframe_event_bus from '@payrails/iframe-event-bus';
|
|
4
2
|
|
|
5
3
|
declare const UI_POSITION_FIELD = "ui:position";
|
|
6
4
|
|
|
@@ -617,6 +615,11 @@ interface PayoutReqBody {
|
|
|
617
615
|
}
|
|
618
616
|
type ERROR_RESULT = 'Unknown' | 'UnexpectedProviderResponse' | 'ProviderUnknownError' | 'ProviderConnectionError' | 'Timeout' | 'ProviderTimeout' | 'GenericRejection' | 'DuplicateOperation' | 'OperationNotAllowed' | 'NetworkTransactionReferenceRejected' | 'PayerCanceled' | 'LimitExceeded' | 'InstrumentNotAllowed' | 'InvalidInstrument' | 'InsufficientBalance' | 'BlockedInstrument' | 'ExpiredInstrument' | 'ValidationError' | 'ParamsError' | 'ProviderConfigError' | 'InvalidSignature' | 'InternalServerError' | 'AuthenticationError' | 'PaymentMethodNotSupported' | 'PayerAuthenticationRequired' | 'PayerAuthenticationFailed' | 'FraudRisk';
|
|
619
617
|
|
|
618
|
+
type IframeEventBusLike = {
|
|
619
|
+
emit: (...args: any[]) => unknown;
|
|
620
|
+
on: (...args: any[]) => unknown;
|
|
621
|
+
off?: (...args: any[]) => unknown;
|
|
622
|
+
};
|
|
620
623
|
interface Mountable {
|
|
621
624
|
mount(selector: string | PayrailsElement): void;
|
|
622
625
|
unmount(): void;
|
|
@@ -632,7 +635,7 @@ declare class PayrailsElement implements Mountable {
|
|
|
632
635
|
protected subElements: Array<Mountable>;
|
|
633
636
|
readonly id: string | undefined;
|
|
634
637
|
readonly dataTestId: string | undefined;
|
|
635
|
-
protected eventBus:
|
|
638
|
+
protected eventBus: IframeEventBusLike;
|
|
636
639
|
constructor(elementType: string, { id, className, dataTestId }?: ElementOptions);
|
|
637
640
|
get parentElement(): HTMLElement | null;
|
|
638
641
|
get selector(): string;
|
|
@@ -2116,6 +2119,7 @@ declare enum PayrailsEnvironment {
|
|
|
2116
2119
|
PRODUCTION = "PRODUCTION"
|
|
2117
2120
|
}
|
|
2118
2121
|
|
|
2122
|
+
type TelemetryLogLevel = 'debug' | 'error';
|
|
2119
2123
|
interface PayrailsClientOptions {
|
|
2120
2124
|
environment?: PayrailsEnvironment;
|
|
2121
2125
|
events?: ClientEvents;
|
|
@@ -2123,10 +2127,10 @@ interface PayrailsClientOptions {
|
|
|
2123
2127
|
returnInfo?: ReturnInfo;
|
|
2124
2128
|
telemetry?: {
|
|
2125
2129
|
enabled?: boolean;
|
|
2126
|
-
logLevel?:
|
|
2130
|
+
logLevel?: TelemetryLogLevel;
|
|
2127
2131
|
collectMetadata?: boolean;
|
|
2128
2132
|
};
|
|
2129
2133
|
}
|
|
2130
2134
|
|
|
2131
|
-
export { AuthorizationFailureReasons, ElementType, INTEGRATION_TYPE, PAYMENT_METHOD_CODES, Payrails, PayrailsEnvironment };
|
|
2132
|
-
export type { ApplePayButtonOptions, CardFormOptions, CardListOptions, CardPaymentButtonOptions, DropinOptions, ExecutionMeta, ExecutionMetaCustomer, ExecutionMetaKey, GenericRedirectButtonOptions, GooglePayButtonOptions, InitOptions, PaymentEvents, PaypalButtonOptions, PayrailsAmount, PayrailsClientOptions, PayrailsContainerType, PayrailsSecureField, PayrailsSecureFieldEvent, ReturnInfo, SaveInstrumentResponse, WorkflowExecutionResponse };
|
|
2135
|
+
export { AuthorizationFailureReasons, ElementType, INTEGRATION_TYPE, PAYMENT_METHOD_CODES, Payrails, PayrailsCollectContainer, PayrailsEnvironment };
|
|
2136
|
+
export type { ApplePayButtonOptions, CardFormOptions, CardListOptions, CardPaymentButtonOptions, CollectContainerOptions, DropinOptions, ExecutionMeta, ExecutionMetaCustomer, ExecutionMetaKey, GenericRedirectButtonOptions, GooglePayButtonOptions, InitOptions, PaymentEvents, PaypalButtonOptions, PayrailsAmount, PayrailsClientOptions, PayrailsContainerType, PayrailsSecureField, PayrailsSecureFieldEvent, ReturnInfo, SaveInstrumentResponse, WorkflowExecutionResponse };
|