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

Added type declarations for BLIK payment. #411

Conversation

michalorman
Copy link
Contributor

Summary & motivation

Added type declarations for confirmBlikPayment (https://stripe.com/docs/js/payment_intents/confirm_blik_payment).

Testing & documentation

Added unit tests similar to other payment methods.

@CLAassistant
Copy link

CLAassistant commented Jan 21, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@rado-stripe rado-stripe left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution, some small changes needed and we can merge this.

/**
* An object containing payment-method-specific configuration to confirm the [PaymentIntent](https://stripe.com/docs/api/payment_intents) with.
*/
payment_method_options?: {
Copy link
Contributor

Choose a reason for hiding this comment

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

According to the docs - https://stripe.com/docs/js/payment_intents/confirm_blik_payment#stripe_confirm_blik_payment-data-payment_method_options-code

the following are all required properties - payment_method_options.blik.code so you will need to remove the ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Additionally I've also changed data parameter to required in confirmBlikPayment declaration, as it's required in the documentation.

@@ -1092,8 +1104,8 @@ export type EphemeralKeyNonceResult =
| {nonce: string; error?: undefined}
| {nonce?: undefined; error: StripeError};

/* A Radar Session is a snapshot of the browser metadata and device details that helps Radar make more accurate predictions on your payments.
This metadata includes information like IP address, browser, screen or device information, and other device characteristics.
/* A Radar Session is a snapshot of the browser metadata and device details that helps Radar make more accurate predictions on your payments.
Copy link
Contributor

Choose a reason for hiding this comment

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

can you revert this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reverted

@michalorman michalorman force-pushed the add-confirm-blik-payment-type-declarations branch from 307b732 to a0d22e6 Compare February 27, 2023 06:49
@stale
Copy link

stale bot commented Mar 19, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 19, 2023
Copy link
Contributor

@cbala-stripe cbala-stripe left a comment

Choose a reason for hiding this comment

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

LGTM

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.

4 participants