Skip to content

Commit

Permalink
feat: added PayPalDisplayConfig type
Browse files Browse the repository at this point in the history
  • Loading branch information
signalcafe committed Dec 18, 2024
1 parent cd0b01c commit cd61fcd
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions types/lib/paypal.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { Emitter } from './emitter';

export type PayPalDisplayConfig = {
locale?: string;
displayName?: string;
amount?: string;
}

export type BraintreeConfig = {
braintree: {
clientAuthorization: string;
};
display?: {
locale?: string;
displayName?: string;
amount?: string;
display?: PayPalDisplayConfig & {
enableShippingAddress?: boolean;
shippingAddressOverride?: any;
shippingAddressEditable?: boolean;
Expand All @@ -18,22 +21,15 @@ export type BraintreeConfig = {

export type DirectConfig = {
gatewayCode?: string;
display?: {
locale?: string;
displayName?: string;
amount?: string;
display?: PayPalDisplayConfig & {
logoImageUrl?: string;
headerImageUrl?: string;
};
};

export type PayPalCompleteConfig = {
payPalComplete?: boolean;
display?: {
locale?: string;
displayName?: string;
amount?: string;
}
display?: PayPalDisplayConfig;
}

export type PayPalConfig = BraintreeConfig | DirectConfig | PayPalCompleteConfig
Expand Down

0 comments on commit cd61fcd

Please sign in to comment.