@payrails/web-sdk 5.12.0-RC.0 → 5.12.0-RC.2
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/index.js +4 -4
- package/package.json +1 -1
- package/payrails-styles.css +14 -5
- package/payrails.d.ts +18 -5
- package/payrails.js +4 -4
package/package.json
CHANGED
package/payrails-styles.css
CHANGED
|
@@ -133,8 +133,10 @@
|
|
|
133
133
|
.payrails-payment-installments-dropdown select {
|
|
134
134
|
width: 100%;
|
|
135
135
|
padding: 10px 15px;
|
|
136
|
+
margin: 0;
|
|
136
137
|
border: 1px solid #eae8ee;
|
|
137
138
|
border-radius: 4px;
|
|
139
|
+
box-shadow: none;
|
|
138
140
|
appearance: none;
|
|
139
141
|
-webkit-appearance: none;
|
|
140
142
|
-moz-appearance: none;
|
|
@@ -142,19 +144,20 @@
|
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
.payrails-payment-installments-dropdown::after {
|
|
145
|
-
content: '
|
|
147
|
+
content: '';
|
|
148
|
+
width: 10px;
|
|
149
|
+
height: 10px;
|
|
150
|
+
clip-path: polygon(100% 0%, 0 0%, 50% 100%);
|
|
151
|
+
background-color: black;
|
|
146
152
|
position: absolute;
|
|
147
|
-
top:
|
|
148
|
-
transform: translateY(-50%);
|
|
153
|
+
top: calc(50% - 4px);
|
|
149
154
|
pointer-events: none;
|
|
150
|
-
color: rgba(25, 25, 25, 1);
|
|
151
155
|
right: 20px;
|
|
152
156
|
}
|
|
153
157
|
|
|
154
158
|
.payrails-card-form-payment-installments-container {
|
|
155
159
|
position: relative;
|
|
156
160
|
width: 100%;
|
|
157
|
-
margin-bottom: 8px;
|
|
158
161
|
}
|
|
159
162
|
|
|
160
163
|
#payrails-card-list * {
|
|
@@ -306,6 +309,12 @@
|
|
|
306
309
|
margin-top: 10px;
|
|
307
310
|
}
|
|
308
311
|
|
|
312
|
+
.payrails-dropin-item-container .payrails-stored-instrument-container {
|
|
313
|
+
display: flex;
|
|
314
|
+
flex-direction: column;
|
|
315
|
+
gap: 8px;
|
|
316
|
+
}
|
|
317
|
+
|
|
309
318
|
.payrails-dropin-item .payrails-store-instrument-icon {
|
|
310
319
|
width: 24px;
|
|
311
320
|
margin-right: 7px;
|
package/payrails.d.ts
CHANGED
|
@@ -703,7 +703,9 @@ declare class CardForm extends PayrailsElementWithStoreInstrumentCheckbox {
|
|
|
703
703
|
}>;
|
|
704
704
|
protected get selectedInstallment(): number | undefined;
|
|
705
705
|
private enforceEnrollInstrumentToNetworkOffersForMasterCard;
|
|
706
|
-
fetchBinLookup(): Promise<string |
|
|
706
|
+
fetchBinLookup(): Promise<string | {
|
|
707
|
+
bin: string;
|
|
708
|
+
}>;
|
|
707
709
|
get isPaymentInstallmentsEnabled(): boolean | undefined;
|
|
708
710
|
private getinstallmentOptions;
|
|
709
711
|
}
|
|
@@ -863,9 +865,13 @@ declare class GenericRedirectButton extends PayrailsElement {
|
|
|
863
865
|
protected options: GenericRedirectButtonOptions;
|
|
864
866
|
private readonly returnInfo?;
|
|
865
867
|
constructor(sdkConfig: SdkConfiguration, execution: WorkflowExecution, options: GenericRedirectButtonOptions, returnInfo?: ReturnInfo | undefined);
|
|
868
|
+
private popup;
|
|
866
869
|
private buildRedirectButton;
|
|
867
|
-
private paymentExecutor;
|
|
870
|
+
private readonly paymentExecutor;
|
|
868
871
|
private onClick;
|
|
872
|
+
private handleAuthorizationResult;
|
|
873
|
+
private createPopupWithTimeout;
|
|
874
|
+
private redirectToPaymentLink;
|
|
869
875
|
}
|
|
870
876
|
|
|
871
877
|
interface GenericRedirectDropinOptions {
|
|
@@ -968,10 +974,13 @@ declare class Dropin extends PayrailsElement {
|
|
|
968
974
|
private createCardPaymentButton;
|
|
969
975
|
private onAuthorizeSuccess;
|
|
970
976
|
private getElementEvents;
|
|
977
|
+
private onAuthorizePending;
|
|
971
978
|
private onAuthorizeFailed;
|
|
972
979
|
private isStoredInstrumentEnabled;
|
|
973
980
|
private applyStyles;
|
|
974
|
-
fetchBinLookup(): Promise<string |
|
|
981
|
+
fetchBinLookup(): Promise<string | {
|
|
982
|
+
bin: string;
|
|
983
|
+
} | undefined>;
|
|
975
984
|
}
|
|
976
985
|
interface StorablePaymentMethodConfiguration extends StoreInstrumentElementOptions {
|
|
977
986
|
showStoredInstruments?: boolean;
|
|
@@ -1001,6 +1010,7 @@ interface DropinOptions {
|
|
|
1001
1010
|
paymentResult?: {
|
|
1002
1011
|
success?: string;
|
|
1003
1012
|
fail?: string;
|
|
1013
|
+
pending?: string;
|
|
1004
1014
|
};
|
|
1005
1015
|
paypalButton?: PaypalDropinOptions['translations'];
|
|
1006
1016
|
mercadoPago?: GenericRedirectDropinOptions['translations'];
|
|
@@ -1121,6 +1131,7 @@ interface InitOptions {
|
|
|
1121
1131
|
interface PaymentEvents {
|
|
1122
1132
|
onAuthorizeSuccess?: (e?: any) => void;
|
|
1123
1133
|
onAuthorizeFailed?: (e?: any) => void;
|
|
1134
|
+
onAuthorizePending?: (e?: any) => void;
|
|
1124
1135
|
onPaymentButtonClicked?: (e?: {
|
|
1125
1136
|
bin?: string;
|
|
1126
1137
|
}) => Promise<boolean>;
|
|
@@ -1146,7 +1157,7 @@ interface SdkConfiguration {
|
|
|
1146
1157
|
holderReference: string;
|
|
1147
1158
|
usePayrailsFrames: boolean;
|
|
1148
1159
|
links?: {
|
|
1149
|
-
binLookup
|
|
1160
|
+
binLookup?: {
|
|
1150
1161
|
method: 'GET' | 'POST';
|
|
1151
1162
|
href: string;
|
|
1152
1163
|
};
|
|
@@ -1256,7 +1267,9 @@ declare class PayrailsCollectContainer implements Mountable {
|
|
|
1256
1267
|
private attachCustomEventHandler;
|
|
1257
1268
|
private formatBin;
|
|
1258
1269
|
private get elementToFieldMap();
|
|
1259
|
-
fetchBinLookup: (bin: string) => Promise<string | BinLookupResponse
|
|
1270
|
+
fetchBinLookup: (bin: string) => Promise<string | BinLookupResponse | {
|
|
1271
|
+
bin: string;
|
|
1272
|
+
}>;
|
|
1260
1273
|
}
|
|
1261
1274
|
interface TokenizeOptions {
|
|
1262
1275
|
futureUsage?: 'CardOnFile' | 'Subscription' | 'UnscheduledCardOnFile';
|