Skip to content

Conversation

@quando1910
Copy link
Contributor

What?

Wrap the utilities function for services which want to intergrate the service payment flow

@vercel
Copy link

vercel bot commented Dec 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
meteor-component-library Ready Ready Preview, Comment Jan 7, 2026 8:58am

data,
composables,
iap,
service,
Copy link
Contributor

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
Copy link
Contributor

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 (
Copy link
Contributor

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,
Copy link
Contributor

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
---

Copy link
Contributor

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 service is too generic. I would go for payment to 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

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.

Add IAP payment utilities into admin-sdk

3 participants