Skip to content

Feature/google payments types#855

Open
HackTheW2d wants to merge 4 commits intomainfrom
feature/google-payments-types
Open

Feature/google payments types#855
HackTheW2d wants to merge 4 commits intomainfrom
feature/google-payments-types

Conversation

@HackTheW2d
Copy link
Contributor

Add google payments types to v6 vanilla JS types

@HackTheW2d HackTheW2d requested a review from a team as a code owner March 12, 2026 15:50
@changeset-bot
Copy link

changeset-bot bot commented Mar 12, 2026

🦋 Changeset detected

Latest commit: 17e89f4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@paypal/paypal-js Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@nityasp nityasp left a comment

Choose a reason for hiding this comment

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

LGTM!! Good job @HackTheW2d

Comment on lines +318 to +332
/**
* Cancels the current session
*
* @remarks
* Cleans up session resources and listeners.
*/
cancel(): void;

/**
* Destroys the session
*
* @remarks
* Performs complete cleanup and makes the session unusable.
*/
destroy(): void;
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind double checking whether these methods are included on the Session class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. Good callout! I was thinking if it's helpful when merchants cancel the payment. But looks like it should be handled by google side. I'll remove this

Comment on lines +2 to +5
/**
* @module
* @internal
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should remove this @internal tag since there are types being exported publically from the file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed :)

* These are the parameters passed to session.confirmOrder().
* The clientId is managed internally by the SDK.
*/
type GooglePayConfirmOrderOptions = {
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about exporting this? It would be helpful for a dev typing the options object, in case it is created dynamically or something.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed :)

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