Posts

Post not yet marked as solved
0 Replies
152 Views
I'm not able to login to the Apple Developer website to distribute an update. The status has shown Maintenance in Progress for over an hour. Is there an update as to when we can submit updates????
Posted
by Leeland.
Last updated
.
Post marked as solved
6 Replies
1.6k Views
Hi,I'm working on setting up my back end server. However, I'm getting weird results within the Sandbox environment. When I call the verifyReceipt, I get results back, however now matter how long it's been, I always get the same results. The entries I'm looking at are:status (always returns 0)pending_renewal_info[0].auto_renew_status (always returns 1)latest_receipt_info[0].expires_date_ms (always returns the original expires date from when the subscription was first started)I have an endpoint that accepts the server-to-server notifications, however it doesn't seem to be getting called at all. The workflow that I'm using is:1. User clicks subscribe and completes entries2. App receives receipt and sends it to the backend server.3. BE Server calls verifyReceipt. If receipt is verified it information is written to database and confirmation is sent to the app4. App calls finish transactionIf endpoint is called...1. BE Server parses body and pulls out latest_receipt2. latest_receipt is sent to /verifyReceipt3. If receipt is verified, information is written to the databaseI also have a cron job that checks for expired subscriptions and calls verify on them to make sure a notification wasn't missed somewhere. (Currently, I'm calling it manually but it will run nightly in production)1. Service queries for subscriptions that are active but expired date is earlier than current date2. For each entry, gets latest_receipt and calls verifyReceipt3. If receipt is valid, updates the database with the new entries (I currently only update the latest_receipt, auto_renew_status and the expires_date_ms4. If subscription is expired, service sends a data message to app to update (app also updates whenever it starts).Whenever I call the verifyReceipt, I always get the same values back no matter how long it's been since the subscription was started. Is this a sandbox issue or am I doing something wrong?TIALeeland
Posted
by Leeland.
Last updated
.