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(fxa-payments-server): capture productId with PayPal payments #12566

Merged
merged 1 commit into from
Apr 20, 2022
Merged

fix(fxa-payments-server): capture productId with PayPal payments #12566

merged 1 commit into from
Apr 20, 2022

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Apr 19, 2022

Because

  • PayPal payments events were not capturing the Product ID of the selected Plan.

This pull request

  • Makes sure that the Product ID is captured for PayPal payments.

Issue that this pull request solves

Closes: #12432

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

n/a

Other information (Optional)

n/a

@caugner caugner requested a review from a team as a code owner April 19, 2022 17:37
@caugner caugner marked this pull request as draft April 19, 2022 17:43
@caugner caugner marked this pull request as ready for review April 19, 2022 18:22
@caugner
Copy link
Contributor Author

caugner commented Apr 19, 2022

FWIW The failed check is unrelated:

/bin/bash: CIRCLE_TOKEN: Please provide a CircleCI API token for this orb to work!

@StaberindeZA
Copy link
Contributor

StaberindeZA commented Apr 19, 2022

@caugner Thank you for the change. I had a quick look at the code and it looks good.

There are just a few small things I was hoping you could address. I've listed them below.

  • Could you please squash your commits so that there's only 1 commit with all changes?
  • Regarding the commit message, could you please review the contribution guidelines found here. At the moment the commits are missing a body.
  • Finally, to get the Circle CI tests to pass, could you please create a new PR and push your changes directly to mozilla/fxa instead of your fork. We had a similar situation with a first time contributor recently. (Here's their PR for reference)

@caugner
Copy link
Contributor Author

caugner commented Apr 19, 2022

Finally, to get the Circle CI tests to pass, could you please create a new PR and push your changes directly to mozilla/fxa instead of your fork. We had a similar situation with a first time contributor recently.

@StaberindeZA How do I get push access to this repository?

ERROR: Permission to mozilla/fxa.git denied to caugner.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Edit: Probably it would be good to update CONTRIBUTING.md with the new contribution instructions. That document has some dead links, mentions npm and grunt as well as forking, but not squashing.

Because:

* PayPal payment events were missing the productId values.

This commit:

* Passes the selected plan to Amplitude via the PayPalButton.

Closes #12432
@caugner caugner requested a review from biancadanforth April 19, 2022 22:12
@caugner
Copy link
Contributor Author

caugner commented Apr 19, 2022

@StaberindeZA I have now squashed, and updated the commit message according to the contribution guidelines.

Copy link
Contributor

@biancadanforth biancadanforth left a comment

Choose a reason for hiding this comment

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

LGTM and CI passed thanks to Barry's DNM PR. Thank you Claas for the patch.

@biancadanforth biancadanforth merged commit e9e8071 into mozilla:main Apr 20, 2022
@caugner caugner deleted the capture-product-id-for-paypal-payments branch April 20, 2022 15:07
@caugner
Copy link
Contributor Author

caugner commented May 3, 2022

@annasob Have these changes already landed on production? Asking, because I'm not yet seeing a productId on PayPal subscription events (https://mozilla.cloud.looker.com/dashboards/596).

@annasob
Copy link
Contributor

annasob commented May 3, 2022

Train 231 will be deployed tomorrow starting at 1pm EST

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.

Payment logs not recording product_id with successfull paypal subscription creation
4 participants