Comments (10)
Hello @ezain701, unfortunately without access to the underlying receipt, it is very difficult to debug this type of issue. If this is a production receipt, I recommend filing a ticket in Feedback Assistant with the complete receipt.
from app-store-server-library-node.
@alexanderjordanbaker This is a sandbox receipt
from app-store-server-library-node.
Could you please post the receipt or file a ticket in Feedback Assistant?
from app-store-server-library-node.
@alexanderjordanbaker Should I share the base64 receipt string with you that frontend is sending?
from app-store-server-library-node.
TUlBR0NTcUdTSWIzRFFFSEFxQ0FNSUFDQVFFeER6QU5CZ2xnaGtnQlpRTUVBZ0VGQURDQUJna3Foa2lHOXcwQkJ3R2dnQ1NBQklJQmJER0NBV2d3RHdJQkFBSUJBUVFIREFWWVkyOWtaVEFMQWdFQkFnRUJCQU1DQVFBd0t3SUJBZ0lCQVFRakRDRmpiMjB1Ylc5eVpXZHZiMlJrWVhsekxtMXZjbVZuYjI5a1pHRjVjeTFoY0hBd0RBSUJBd0lCQVFRRURBSXpOVEFRQWdFRUFnRUJCQWhXMXYzK0RRQUFBREFjQWdFRkFnRUJCQlFrcmhQa3JReGxnOG1maEgxNWpxSVkxS1RIQ3pBS0FnRUlBZ0VCQkFJV0FEQWVBZ0VNQWdFQkJCWVdGREl3TWpRdE1ERXRNekJVTURRNk1UWTZOVFphTUlHUUFnRVJBZ0VCQklHSE1ZR0VNQXdDQWdhbEFnRUJCQU1DQVFFd0ZnSUNCcVlDQVFFRURRd0xaR1YyWDJWNGNHeHZjbVV3REFJQ0JxY0NBUUVFQXd3Qk1EQWZBZ0lHcUFJQkFRUVdGaFF5TURJMExUQXhMVEk1VkRBeE9qVXlPakU1V2pBZkFnSUdyQUlCQVFRV0ZoUXlNREkwTFRBeUxUSTVWREF4T2pVeU9qRTVXakFNQWdJR3R3SUJBUVFEQWdFQU1CNENBUlVDQVFFRUZoWVVOREF3TVMwd01TMHdNVlF3TURvd01Eb3dNRm9BQUFBQUFBQ2dnZ040TUlJRGREQ0NBbHlnQXdJQkFnSUJBVEFOQmdrcWhraUc5dzBCQVFzRkF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QydUZiYnVZSzJVL0pSQXhqaVh6L3ZjV0JLdE1OeW9GZzFNeG5aeW5nR0x0WHFhanI0ekxFdWc2QmQ0Qzc5UnROYTVuTFZvN1RhWW53QSs1cmN3aXZmVXRBbkhrRlVTelEzLzlnQUFBQUFBQUE9PQ==
from app-store-server-library-node.
Ah, after decoding, I see this is an Xcode receipt, not a Sandbox receipt, they can have TIDs of 0, see the unit test should extract a transaction id from an xcode receipt with a transaction
from app-store-server-library-node.
@alexanderjordanbaker So that means the frontend is sending the wrong receipt string?
I need to verify the receipt by calling apple store server api. With a transactonId of 0
, I cannot verify.
from app-store-server-library-node.
Xcode receipts are generated locally and aren’t created by Apple servers and can’t be used with the App Store Server API. See https://developer.apple.com/documentation/xcode/setting-up-storekit-testing-in-xcode/ for more information on testing in Xcode
from app-store-server-library-node.
@alexanderjordanbaker
We enable store kit to test redeem code as you know we can't test redeem code in sandbox beta and sandbox test so can you confirm how we can test redeem code using store kit
Our backend needs to verify the receipt with redeem code that is created using storekit in this case
from app-store-server-library-node.
If you have a question or feedback about the underlying behavior of the Sandbox environment outside of the App Store Server Library, I would recommend filing a ticket in Feedback Assistant for the best support
from app-store-server-library-node.
Related Issues (20)
- applicationUsername.toLowerCase is not a function at PromotionalOfferSignatureCreator.createSignature HOT 4
- How to verify purchase with data from in_app_purchase_ios flutter package? HOT 2
- server endpoints not support ipv6? HOT 1
- getting wrong transaction id in extractTransactionIdFromAppReceipt method HOT 9
- getAllSubscriptionStatuses works in Sandbox, but not in Production
- Original Store Kit App Receipt Server Validation HOT 6
- Exported OfferDiscountType Enum Values HOT 1
- How can I identify the environment of the signed notification? HOT 2
- Explanation on the best practices to load root certificates HOT 4
- TypeError: Cannot read properties of null (reading 'length') - while extracting transactionId
- TypeError: Cannot read properties of null (reading 'length') -- while extracting transactionId from receipt HOT 3
- APIException.apiError 4040010 is missing HOT 5
- High Sev CVE Flag from dependency on `jsrsasign` older than v11 HOT 1
- I get an error when trying to decrypt my signed payload HOT 8
- Error: secretOrPrivateKey must be an asymmetric key when using ES256 in Production environment HOT 11
- Missing an example for how to verify an IAP transaction receipt HOT 6
- Add appAppleId null comment to README and throw if appAppleId is null and environment is Production
- Missing receiptType on decodedAppTransaction in verifyAndDecodeAppTransaction HOT 18
- ResponseBodyV2DecodedPayload is missing the externalPurchaseToken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app-store-server-library-node.