Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added payPalComplete property to PayPal DirectConfig type de… #913

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

magicink
Copy link

DirectConfig appears to be missing the payPalComplete property mentioned in the documentation.

@chrissrogers
Copy link
Member

Thanks for the contrib!

@@ -25,6 +25,7 @@ export type DirectConfig = {
logoImageUrl?: string;
headerImageUrl?: string;
};
payPalComplete?: boolean;
};

export type PayPalConfig = BraintreeConfig | DirectConfig;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think to match and hint at the underlying logic, we might consider the following:

export type PayPalCompleteConfig = {
  payPalComplete?: boolean;
};

export type PayPalConfig = BraintreeConfig | DirectConfig | PayPalCompleteConfig;

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes have been applied. I created a new PayPalCompleteConfig. I took a best guess at what other properties would be needed.

I think to match and hint at the underlying logic, we might consider the following:

export type PayPalCompleteConfig = {
  payPalComplete?: boolean;
};

export type PayPalConfig = BraintreeConfig | DirectConfig | PayPalCompleteConfig;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants