-
Notifications
You must be signed in to change notification settings - Fork 13
feat: add service payment integration #1010
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
packages/admin-sdk/src/index.ts
Outdated
| data, | ||
| composables, | ||
| iap, | ||
| service, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
service as a name is too generic. We should be more specific here
| "@shopware-ag/meteor-admin-sdk": minor | ||
| --- | ||
|
|
||
| add the service payment integration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation for this new feature is missing
| }; | ||
| }; | ||
|
|
||
| export const addPaymentIframe = async ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should avoid complex logic like this in the Meteor Admin SDK. The main purpose is to interact with the administration from an app or plugin, e.g. adding UI, etc.
Creating new iFrames within the SDK is not wanted.
|
|
||
| export const startPaymentFlow = async (): Promise<Flow> => { | ||
| await modal.open({ | ||
| locationId: servicePaymentModalLocationId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SDK methods shouldn't have dependencies on each other. Also the user doesn't know about the locationID from the modal and see then a white result. We should focus on just communicating with the admin
| --- | ||
| "@shopware-ag/meteor-admin-sdk": minor | ||
| --- | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I talked privately with Quan and the following things need to be done:
- The name
serviceis too generic. I would go forpaymentto be more specific - We need integration or unit tests for these methods. The other SDK methods are just types without logic. Here it has a lot of logic we need to cover and test
- We need a detailed documentation about this feature and how to use it
What?
Wrap the utilities function for services which want to intergrate the service payment flow