คุณสามารถทดสอบไอเทมที่ซื้อในแอปสำหรับ Play Points ได้โดยใช้ทดสอบรหัสโปรโมชัน โดยทำตามขั้นตอนต่อไปนี้
สร้างแคมเปญทดสอบและทดสอบรหัสโปรโมชันใน Play Console ในแคมเปญทดสอบ ให้ระบุรหัสผลิตภัณฑ์ของไอเทมที่ซื้อในแอป
ในอุปกรณ์ทดสอบ ให้ใช้เมนูแลกสิทธิ์ในแอป Play Store ซึ่งจะช่วยให้คุณยืนยันได้ว่าได้รับไอเทมที่ซื้อในแอปสำหรับโปรโมชันคะแนนในแอป
ยืนยันสถานการณ์ต่อไปนี้โดยใช้รหัสโปรโมชัน
ไม่ได้ติดตั้งแอป: ผู้ใช้แลกแต้ม Play แล้ว Play Store ขอให้คุณติดตั้งแอป จากนั้นแอปของคุณควรตรวจหาและส่งไอเทม
แอปติดตั้งแล้วแต่ไม่ทํางาน: ผู้ใช้แลกคะแนน Play แล้ว Play Store ขอให้คุณเปิดแอป จากนั้นแอปของคุณควรตรวจหาและแสดงไอเทม
แอปติดตั้งและทำงานอยู่: ผู้ใช้แลกรับ Play Points แล้ว แอปของคุณควรได้รับและตรวจหาไอเทม
ขั้นตอนทดสอบข้างต้นจะช่วยให้คุณยืนยันได้ว่าการผสานรวม API ทํางานอย่างถูกต้อง และคุณก็พร้อมที่จะกําหนดค่าและส่งโปรโมชัน Play Points (หากเปิดใช้ฟีเจอร์นี้สําหรับเกมของคุณ)
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# Self-test using promo codes from Play Console\n\nYou can test your in-app products for Play Points using\n[Test promo codes](/google/play/billing/test#promo). To do so, do the following:\n\n- Create test campaigns and test promo codes in the Play Console. In your test\n campaign, specify the product IDs of your in-app products.\n\n- On a test device, use the **Redeem** menu in the Play Store app. By doing this you\n can verify that you can receive in-app products for Points promotions in your\n app. The following screenshot displays an example:\n\nVerify the following scenarios using promo codes:\n\n- App is not installed: The user redeems Play Points, the Play Store asks you to\n install your app, then your app should detect and deliver the items.\n\n- App is installed, but not running: The user redeems Play Points, the Play\n Store asks you to open your app, then your app should detect and serve the\n items.\n\n- App is installed and running: The user redeems Play Points, then your app\n should receive and detect the items.\n\n| **Note:** Testing with promo code purchases will not create/return an orderID; however, Play points promotions will once published.\n\nWith the test steps above, you can verify your API integration is working\nproperly and you are ready to configure and submit Play Points promotions\n(if the feature is enabled for your game)."]]