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

[FEATURE] Implement Checkmo #2927 #2969

Merged
merged 46 commits into from
Mar 12, 2021

Conversation

larsroettig
Copy link
Member

@larsroettig larsroettig commented Jan 25, 2021

Description

  • ImplementsCheckmo

Related Issue

Closes PWA-1242.
Closes #2927

Acceptance

  • Check/Money order is available during checkout if it's enabled for the website, available in the customer's country and the order total threshold is met. (Admin Panel Stores>configuration> Sales> Payment Methods> Check/Money Order)
  • Check/Money order appears in the list of available payment methods according to the sorting order set in the Admin Configuration
  • Billing address fields are shown for the check/money order payment if the Admin Panel configuration (Store>Configuration>Sales>Checkout> Checkout options> Display billing address on) set to Payment Method
  • Make Check payable to and Send Check to values are store view specific and taken from Admin Panel Configuration. (Admin Panel Stores>configuration> Sales> Payment Methods> Check/Money Order)
  • Payment method title _Pay by Check or Money order" is configurable in Admin Panel
  • When Customer selects Check/Money order order, they complete checkout without providing any additional information related to payment method
  • Customer sees payment information is displayed on order confirmation page and order history

Verification Steps

  1. Checkout Branch
  2. Config Checkmo in Magento backend
  3. Link Extension in venia-concept package.json via
"dependencies": {
   "@magento/venia-sample-payments-checkmo": "link:../extensions/venia-sample-payments-checkmo"
},
  1. run yarn install
  2. run yarn watch:venia

Screenshots / Screen Captures (if appropriate)

Checklist

  • I have added tests to cover my changes, if necessary.
  • I have added translations for new strings, if necessary.
  • I have updated the documentation accordingly, if necessary.

@PWAStudioBot
Copy link
Contributor

PWAStudioBot commented Jan 25, 2021

Fails
🚫 A version label is required. A maintainer must add one.
Messages
📖 DangerCI Failures related to missing labels/description/linked issues/etc will persist until the next push or next nightly build run (assuming they are fixed).
📖

Access a deployed version of this PR here. Make sure to wait for the "pwa-pull-request-deploy" job to complete.

Generated by 🚫 dangerJS against ce6c731

@larsroettig larsroettig marked this pull request as draft January 25, 2021 16:31
@revanth0212
Copy link
Contributor

Nice work Lars. Ill look into the PR soon.

Copy link
Contributor

@revanth0212 revanth0212 left a comment

Choose a reason for hiding this comment

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

Wonderful work @larsroettig.

I love the fact that you have moved the Billing Address into a component of its own. I would suggest you make the changes to the existing payment methods that implement their own billing address to use this component. If you think that is gonna increase the scope of this PR, no problem let me know and Ill create a backlog ticket in our JIRA to take care of it.

Also, I have provided feedback. Most of them are general questions and some minor aesthetic changes.

Please make sure you add the tests once you have completed the work on the PR.

Lars Roettig and others added 6 commits February 2, 2021 07:58
Co-authored-by: Revanth Kumar Annavarapu <35203638+revanth0212@users.noreply.github.com>
Co-authored-by: Revanth Kumar Annavarapu <35203638+revanth0212@users.noreply.github.com>
Co-authored-by: Revanth Kumar Annavarapu <35203638+revanth0212@users.noreply.github.com>
Co-authored-by: Revanth Kumar Annavarapu <35203638+revanth0212@users.noreply.github.com>
Co-authored-by: Revanth Kumar Annavarapu <35203638+revanth0212@users.noreply.github.com>
Co-authored-by: Revanth Kumar Annavarapu <35203638+revanth0212@users.noreply.github.com>
fooman
fooman previously approved these changes Mar 5, 2021
Copy link
Contributor

@fooman fooman left a comment

Choose a reason for hiding this comment

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

This is looking great to me. I like how you split out the BillingAddress as that will get lots of reuse. Overall I believe with this payment extension ready there will be one iteration left of the payment methods in general to have another look at how else we can make implementing payment methods easier.

This started with Luma but I really dislike how involved payment methods get with address handling and how each needs to implement their own order processing flow. Again apologies this is not the space for that discussion and this PR looks great 💯

@fooman fooman removed their assignment Mar 5, 2021
sirugh
sirugh previously approved these changes Mar 12, 2021
"peerDependencies": {
"@magento/peregrine": ">= 8.0.0",
"@magento/pwa-buildpack": "~8.0.1",
"@magento/venia-ui": ">= 5.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

@larsroettig With our current capabilities this >= would cause manual check for every package publishing in future. Can these dependencies be in sync with rest of the project with latest versions? something like -

    "@magento/peregrine": "~9.0.0",
    "@magento/pwa-buildpack": "~8.0.1",
    "@magento/venia-ui": "~6.0.1",

Copy link
Member Author

Choose a reason for hiding this comment

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

@dpatil-magento Sure i can do but this mean before publish you replace any version ?

Copy link
Contributor

Choose a reason for hiding this comment

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

@larsroettig Yes, we update dependencies to respective release latest versions. Example - When we go for next release and peregrine we identify as 10.0.0 then in above case "@magento/peregrine": "~9.0.0", will be replaced to "@magento/peregrine": "~10.0.0",

Copy link
Member Author

@larsroettig larsroettig Mar 12, 2021

Choose a reason for hiding this comment

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

Good to know thanks pull commit the change now

Copy link
Member Author

@larsroettig larsroettig Mar 12, 2021

Choose a reason for hiding this comment

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

07f0164 done ✔️

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks @larsroettig

@larsroettig larsroettig dismissed stale reviews from sirugh, fooman, and revanth0212 via 07f0164 March 12, 2021 16:23
@dpatil-magento
Copy link
Contributor

@larsroettig Data for Make Check Payable to and Send Check to is always static and not pulled from Admin configs. Please check this.

image

Another thing can be to haveEdit link once user has reviewed order but this is optional and should not block merging this PR.

image

@larsroettig
Copy link
Member Author

@larsroettig Data for Make Check Payable to and Send Check to is always static and not pulled from Admin configs. Please check this.

image

Another thing can be to haveEdit link once user has reviewed order but this is optional and should not block merging this PR.

image

Hi @dpatil-magento, about Payable to and Send Check to is knowen because graphql coverage is not there for the backend.

Is accept at UX and productmangment

@dpatil-magento
Copy link
Contributor

@larsroettig Thanks for the info, i was not knowing about graphql limitation. Will merge this soon :)

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

Successfully merging this pull request may close these issues.

[feature]: Static payment methods for Venia (check/money order)
10 participants