@payrails/web-sdk 5.1.0 → 5.2.0
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 +5 -0
- package/payrails.d.ts +3 -1
package/package.json
CHANGED
package/payrails-styles.css
CHANGED
|
@@ -250,6 +250,11 @@
|
|
|
250
250
|
align-items: center;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
+
.payrails-dropin-item .payrails-store-instrument-icon {
|
|
254
|
+
width: 24px;
|
|
255
|
+
margin-right: 7px;
|
|
256
|
+
}
|
|
257
|
+
|
|
253
258
|
.payrails-dropin-item.payrails-store-instrument {
|
|
254
259
|
display: block;
|
|
255
260
|
margin-top: 20px !important;
|
package/payrails.d.ts
CHANGED
|
@@ -167,6 +167,7 @@ interface StoredPaymentInstrument<T = CardMetadata | PayPalMetadata> {
|
|
|
167
167
|
id: string;
|
|
168
168
|
status: PAYMENT_INSTRUMENT_STATUS;
|
|
169
169
|
paymentMethod: PAYMENT_METHOD_CODES;
|
|
170
|
+
displayName?: string;
|
|
170
171
|
data?: T;
|
|
171
172
|
}
|
|
172
173
|
interface PayPalMetadata {
|
|
@@ -175,6 +176,7 @@ interface PayPalMetadata {
|
|
|
175
176
|
interface CardMetadata {
|
|
176
177
|
bin?: string;
|
|
177
178
|
suffix?: string;
|
|
179
|
+
network?: string;
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
interface SaveInstrumentResponse {
|
|
@@ -743,7 +745,7 @@ declare abstract class DropinElement extends PayrailsElement {
|
|
|
743
745
|
protected isActive: boolean;
|
|
744
746
|
input: HTMLInputElement;
|
|
745
747
|
protected label: HTMLLabelElement;
|
|
746
|
-
protected constructor(id: string, label: string, events?: DropinElementEvents | undefined, styles?: DropinElementStyles | undefined);
|
|
748
|
+
protected constructor(id: string, label: string, icon?: string, events?: DropinElementEvents | undefined, styles?: DropinElementStyles | undefined);
|
|
747
749
|
get identifier(): string;
|
|
748
750
|
deactivate(): void;
|
|
749
751
|
protected applyBaseStyles(): void;
|