Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

iOS in-app subscription expire date
Started by ronald14 Oct 01 2018 07:52 AM

11 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

ronald14

[GLOBAL: userInfoPane.html]
ronald14
  • Observer

  • 4 posts
  • Corona SDK

I want to use the iOS subscription in-app purchase. When I do a purchase. I receive a transaction via the transaction listener. This gives me some information like: state, identifier , productIdentifier and more. 

 

I miss lots of fields defined by apple, see:

 

https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html#//apple_ref/doc/uid/TP40010573-CH106-SW1

 

Especially I miss the 'Subscription Expiration Date'

 

When I look at the receipt. I see a hex string like this: '<7b0a0922 7369676e 61747572 6522203d 20224133 346c4a78 516d6e33 48376f72 ....'

 

Is there a way to get the missing fields? 

 

Ronald



[TOPIC: post.html]
#2

xnailbender

[GLOBAL: userInfoPane.html]
xnailbender
  • Contributor

  • 348 posts
  • Corona SDK

Ronald,

 

Awhile ago, I tried to get IAP Subscriptions to work, I also ran into a dead end.

 

I hope Rob can clarify if Subscriptions are supported by Corona and if not, if they ever will be.  I believe Apple is trying to get developers to steer in this direction.

 

Nail



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,714 posts
  • Corona Staff

I'll ask



[TOPIC: post.html]
#4

ronald14

[GLOBAL: userInfoPane.html]
ronald14
  • Observer

  • 4 posts
  • Corona SDK

Thank you Rob, 

 

I really hope a solution can made to get missing fields.

 

Ronald



[TOPIC: post.html]
#5

Kevin H

[GLOBAL: userInfoPane.html]
Kevin H
  • Contributor

  • 126 posts
  • Corona SDK

I've been putting together iOS IAP subscription for a client, the subscription receipt is coming through fine, and the validation URL provides all relevant info on subscription status when passed the receipt. Kind of messy and multi stepped, but definitely possible from within Corona.



[TOPIC: post.html]
#6

ronald14

[GLOBAL: userInfoPane.html]
ronald14
  • Observer

  • 4 posts
  • Corona SDK

Thank you. I will try this validation URL method.

 

Ronald



[TOPIC: post.html]
#7

Kevin H

[GLOBAL: userInfoPane.html]
Kevin H
  • Contributor

  • 126 posts
  • Corona SDK

I used this very awesome script created by Corona user Satheesh to pass up the receipt and return the validation info: https://github.com/SatheeshJM/Auto-Renewable-In-App-Purchase-Validation-using-Corona-SDK/blob/master/validate.lua



[TOPIC: post.html]
#8

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 383 posts
  • Corona SDK

Hey Kevin have you used that script lately?  Looks to not have been updated in about 7 years... just wanted to make sure it works before attempting to use it.



[TOPIC: post.html]
#9

Kevin H

[GLOBAL: userInfoPane.html]
Kevin H
  • Contributor

  • 126 posts
  • Corona SDK

Using it now :)



[TOPIC: post.html]
#10

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,714 posts
  • Corona Staff

We have created a new IAP plugin for Apple OS's (iOS, tvOS, macOS) that should be a drop-in for store.* but it adds some new API's to help with receipt management which could help with subscriptions.

 

Reply here if you want to test and I'll email you instructions.

 

Thanks

Rob



[TOPIC: post.html]
#11

Kevin H

[GLOBAL: userInfoPane.html]
Kevin H
  • Contributor

  • 126 posts
  • Corona SDK

I'd be happy to test it out!



[TOPIC: post.html]
#12

ronald14

[GLOBAL: userInfoPane.html]
ronald14
  • Observer

  • 4 posts
  • Corona SDK

Thank you Rob,

 

I would like to test this. Can you send me the instructions?

 

Ronald




[topic_controls]
[/topic_controls]