iOS Question First iOS App with InApp purchase capability

Markos

Well-Known Member
Licensed User
Longtime User
Hi All,

I believe I have everything setup properly inclusive of Tax and Paid Agreements all active and current. When I test in Sandbox all iinformation is received to reflect Product Name, Price and identifier etc but the event

B4X:
PurchaseCompleted (Success As Boolean, Productidi As Purchase)

Returns Success=False

Now I tried every possible scenario I don't know if its a bug in the sandbox and I should resubmit as is for review.

This is added this to the Project Attributes am I missing anything?

B4X:
    #PlistExtra: <key>StoreKit</key><string></string>

I am of course using developer cert & prov(InApp Capability Identifier) to build to run on my iphone and I logged into the sandbox user account I created.

Any advice or experience to guide me is most appreciated.

Cheers

Sorry a bit retarded I was double tapping the screen not the physical button!
 
Last edited:

asales

Expert
Licensed User
Longtime User
Hi All,

I believe I have everything setup properly inclusive of Tax and Paid Agreements all active and current. When I test in Sandbox all iinformation is received to reflect Product Name, Price and identifier etc but the event

B4X:
PurchaseCompleted (Success As Boolean, Productidi As Purchase)

Returns Success=False

Now I tried every possible scenario I don't know if its a bug in the sandbox and I should resubmit as is for review.
Did you try to use an IA to check the code?
When I started implementing in-app purchases in my apps, I read all the threads about iOS subscriptions on the forum, the Apple documentation, and used ChatGPT to create the code.

This is added this to the Project Attributes am I missing anything?

B4X:
    #PlistExtra: <key>StoreKit</key><string></string>
I don't use this line in my apps with in-app purchase.
 
Upvote 0

Markos

Well-Known Member
Licensed User
Longtime User
Did you try to use an IA to check the code?
When I started implementing in-app purchases in my apps, I read all the threads about iOS subscriptions on the forum, the Apple documentation, and used ChatGPT to create the code.


I don't use this line in my apps with in-app purchase.
Hi Thanks for that on the plistextra line insight. Apple said my InApp purchases were crashing so I added that line before I started testing with Sandbox which I didnt do prior and as the purchases worked I just left it there. But my question is if it works without the line and that was the only change I made to test and it worked in the sandbox I wonder what failed for the Apple team. I guess I'll find out after they review it again.

I use AI for snipets or rules to ensure I didnt miss anything which it is getting better but never to check my code, part pride and part dont wanna get too comfortable and be a clone to AI and lose my own style of programming.

On another note you ever had the experience where they attach screenshot to show an error and the screenshot doesnt open
 
Upvote 0
Top