-
Notifications
You must be signed in to change notification settings - Fork 245
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
Problem with transaction verification #222
Comments
Here are the steps to verify the transaction.
The |
thank you very much!!! |
Hi, I receive the following receipt: and I try to find tx by id in the sandbox func TestMain(t *testing.T) {
file, err := os.ReadFile("AuthKey_3ZX5PYQCC7.p8")
require.NoError(t, err)
c := &api.StoreConfig{
KeyContent: file, // Loads a .p8 certificate
KeyID: "3ZX5PYQCC7", // Your private key ID from App Store Connect (Ex: 2X9R4HXF34)
BundleID: "chat.n2n2.Chat.dev", // Your app’s bundle ID
Issuer: "d5395578-c557-4611-90ec-90e554597be7", // Your issuer ID from the Keys page in App Store Connect (Ex: "57246542-96fe-1a63-e053-0824d011072a")
Sandbox: true, // default is Production
}
originalTransactionId := "2000000366516012"
a := api.NewStoreClient(c)
query := &url.Values{}
// query.Set("productType", "AUTO_RENEWABLE")
// query.Set("productType", "NON_CONSUMABLE")
ctx := context.Background()
responses, err := a.GetTransactionHistory(ctx, originalTransactionId, query)
require.NoError(t, err)
for _, response := range responses {
transantions, err := a.ParseSignedTransactions(response.SignedTransactions)
require.NoError(t, err)
_ = transantions
}
} but I get an error: tell me pls, what am I doing wrong? |
@Dmytro-yakymuk , per doc https://developer.apple.com/documentation/appstoreserverapi/transactionidnotfounderror?changes=latest_minor
Please make sure the following items are correct
The |
thanks!! |
I have a problem with transaction verification, if in the old version we had an explicit method for this
, in the new version I only see
GetTransactionHistory
,ParseSignedTransactions
. How can I get some boolean value to understand that the transaction is valid?Besides, I don't know where to get the originalTransactionId. I get "originalTransactionIdentifierIOS": "0", could it be related to using sandbox?
The text was updated successfully, but these errors were encountered: