{"repo":"awa/go-iap","free":true,"listed":false,"github":"https://github.com/awa/go-iap","clone":"git clone https://github.com/awa/go-iap.git","description":"go-iap verifies the purchase receipt via AppStore, GooglePlayStore, AmazonAppStore and Huawei HMS.","language":"Go","stars":1054,"topics":["amazonappstrore","iap","appstore","purchase-receipt","iab","billing","googleplaystore","hms"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"go-iap ====== go-iap verifies the purchase receipt via AppStore, GooglePlayStore, Amazon AppStore, HMS or MicrosoftStore. Current API Documents: AppStore: AppStore Server API: GooglePlay: Amazon AppStore: Huawei HMS: Microsoft Store: Installation Quick Start In App Purchase (via App Store) Note : The verifyReceipt API has been deprecated as of 5 Jun 2023 . Please use App Store Server API instead. In App Billing (via GooglePlay) In App Purchase (via Amazon App Store) In App Purchase (via Huawei Mobile Services) In App Store Server API Note - The App Store Server API differentiates between a sandbox and a production environment based on the base URL: - Use https://api.storekit.itunes.apple.com/ for the production environment. - Use https://api.storekit-sandbox.itunes.apple.com/ for the sandbox environment. - If you're unsure about the environment, follow these steps: - Initiate a call to the endpoint using the production URL. If the call is successful, the transaction identifier is associated with the production environment. - If you encounter an error code 4040010 , indicating a TransactionIdNotFoundError , make a call to the endpoint using the sandbox URL. - If this call is successful, the transaction identifier is associated with the sandbox environment. If the call fails with the same error code, the transaction identifier doesn't exist in either environment. - GetTransactionInfo - GetTransactionHistory - Error handling - handler error per apple store server api error docum","default_branch":null,"files":null,"tree":[],"storefront":"/r/awa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/awa/go-iap/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}