iOS in-app purchases

I know that sdkbox is no longer available.

So I’m going to implement in-app purchases in a native way.

I’m going to start with iOS.

I’m not sure how to communicate between the Object-c source code and the c++ source code.

I would appreciate it if you could provide an example related to iOS in-app purchases.

This project may be good starting point: https://github.com/newnon/avalon

You can either update it to work with the latest iOS changes, or learn from it to make your own.

The specific code you’re after is in this file: https://github.com/newnon/avalon/blob/master/avalon/platform/ios/payment/payment.mm

Thank you very much.

Hi, have you managed to implement your in-app purchases? Would you share any your experience that could help others? Thx!

i have implement this: https://github.com/zhongfq/cocos-lua/tree/main/frameworks/plugins/apple