5. Samples
5.1 Import Samples
Fig 5.1 Import Samples 5.2 Sample Scenes
In PlatformTest demo, we provide five buttons: GetAccountInfo, GoHomeLogin, OpenApp, TestQiyuPrefs, GoQiyuPayTest.
No. | Button | Introduction |
1 | GetAccountInfo | Get account information (uid, user name, avatar URL) |
2 | GoHomeLogin | Launch Home login page |
3 | OpenApp | Open application |
4 | TestQiyuPrefs | Test PlayerPrefs |
5 | GoQiyuPayTest | Launch QIYU payment test scene |
5.2.2 In APP Payment sample
In QiyuPayTest scene, we provide the following function to developer reference:
No. | Button | Introduction |
1 | GoMainScene | Launch Home |
2 | GetSkuList | Get SKU item |
3 | PlaceOrder | Place Order |
4 | QueryHistoryOrders | Query History Orders |
5 | QueryOrderResult | Query Order Result |
5.3 Sample Scripts
- PlatformTest.cs: including the samples of Platform initialization, account information, deeplink, PlayerPrefs samples
- QiyuPayTest.cs: including the samples of Payment initialization, In-APP Payment