-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
De-couple PaymentMethod from PaymentMethodHandler #671
Comments
Relates to #671 BREAKING CHANGE: The PaymentMethod entity and type has changed. Previously, a PaymentMethod was coupled to the configured PaymentMethodHandlers 1-to-1. Now the PaymentMethodHandler is just a configurable _property_ of the PaymentMethod, much in the same way that a ShippingCalculator relates to a ShippingMethod. Any existing PaymentMethod entities will need to be migrated to the new structure.
Could you also add the vendure/packages/core/src/service/services/payment-method.service.ts Lines 111 to 116 in c3c5888
Also, if I understand correctly, Edit: |
@stefanvanherwijnen could you please open a new issue for this so I don't forget about it?
The |
The PaymentMethod entity has a "code" field which is supposed to refer to one of the configured PaymentMethodHandlers. However, in the GraphQL API
updatePaymentMethod
mutation, as well as in the Admin UI, this "code" can be edited.There seems to be no good reason to allow setting this code. Rather, it would make more sense to de-couple the handler and the method, so that you can create a PaymentMethod and then select from one of the configured handlers.
Additionally, the PaymentMethod should have a "name" and "description" field.
Also add some e2e tests for the PaymentMethodResolver.
The text was updated successfully, but these errors were encountered: