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

Error on buy product #25

Closed
flashfoxter opened this issue Aug 23, 2022 · 2 comments
Closed

Error on buy product #25

flashfoxter opened this issue Aug 23, 2022 · 2 comments

Comments

@flashfoxter
Copy link

I have error with kbsync from iPhone

Store buyProduct failed! Message: main.py:205
MZCommerce.ConfirmPaymentSheet_message (errorType
-MZCommerce.ConfirmPaymentSheet)

@defparam
Copy link

I saw you posted here as well, so I will also crosspost:

After reversing appstored a little bit I noticed that 2 requests to the /WebObjects/MZBuy.woa/wa/buyProduct endpoint are sent. One is sent right when you attempt to get an app to install and the response from the server is MZCommerce.ConfirmPaymentSheet. This actually causes appstored to open the dialog box to confirm the purchase/installation. After you hit the install button a second request to the /WebObjects/MZBuy.woa/wa/buyProduct is sent but this time it contains:

        <key>hasConfirmedPaymentSheet</key>
        <string>true</string>

I believe this tells the server that the purchase (free or otherwise) has been confirmed and it responds with an authorized response along with the links to the your relevant IPAs.

I'm not sure, but I don't believe ipatool-py inserts the hasConfirmedPaymentSheet key which is probably what is causing it to fail with the ids from your device.

@NyaMisty
Copy link
Owner

Hm that's strange, it's possibly related to your appstore accouont. I'll suggest you finish the purchasing manually on the itunes first, then continue to use ipatool-py.

@defparam it's cool of you to finding that property. I know that hasConfirmedPaymentSheet property, However that's from appstored, and we are using Windows iTunes actually. On windows it's not using that logic. Probably need more debugging.

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

No branches or pull requests

3 participants