Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 18.104.22.168 release ready!
Owner and Founder. Opencart
I have already shared a blog where I implemented In-App Subscription in iOS. If you have not read yet then click here.
In this blog, I am going to show how we validate the Subscription? I will start with Step 11 from the previous blog.
Step 1: Call the receiptValidation() Method from the updatedTransactions. Note that only receiptValidation() call only when Transaction State is purchased.
Step 2: Now handle the receiptValidation() method.
There is two verifyReceiptURL for gathering the information from iTunes for both sandbox and live.
The verifyReceiptURL API having 2 params. One is receipt-data which content local receipt stored data and the second one is the password where you have to pass Shared Secret.
Step 3: Now get the expire date from the response data.
Call the getExpirationDateFromResponse() after the data received from the API.
So please follow the above steps to validate the subscription and And if you have any issue or suggestion you can leave your message in the comment section I will try to solve this.
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
let recieptString = receiptData?.base64EncodedString(options: .endLineWithCarriageReturn)
When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.