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

Rename PMME option type #444

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/types/src/valid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ const paymentMethodMessagingElement = elements.create(
'paymentMethodMessaging',
{
amount: 2000,
paymentMethods: ['afterpay_clearpay', 'klarna'],
paymentMethodTypes: ['afterpay_clearpay', 'klarna'],
countryCode: 'US',
currency: 'USD',
}
Expand Down
7 changes: 6 additions & 1 deletion types/stripe-js/elements/payment-method-messaging.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ export interface StripePaymentMethodMessagingElementOptions {
/**
* Payment methods to show messaging for.
*/
paymentMethods: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;
paymentMethodTypes: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;

/**
* @deprecated Use `paymentMethodTypes` instead.
*/
paymentMethods?: Array<'afterpay_clearpay' | 'klarna' | 'affirm'>;

/**
* The country the end-buyer is in.
Expand Down