REST Resource: purchases.products
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
সম্পদ: পণ্য ক্রয়
একটি পণ্য ক্রয় সংস্থান একজন ব্যবহারকারীর ইনঅ্যাপ পণ্য ক্রয়ের অবস্থা নির্দেশ করে।
JSON প্রতিনিধিত্ব |
---|
{
"kind": string,
"purchaseTimeMillis": string,
"purchaseState": integer,
"consumptionState": integer,
"developerPayload": string,
"orderId": string,
"purchaseType": integer,
"acknowledgementState": integer,
"purchaseToken": string,
"productId": string,
"quantity": integer,
"obfuscatedExternalAccountId": string,
"obfuscatedExternalProfileId": string,
"regionCode": string,
"refundableQuantity": integer
} |
ক্ষেত্র |
---|
kind | string এই ধরনের android প্রকাশক পরিষেবাতে একটি inappPurchase অবজেক্ট উপস্থাপন করে। |
purchaseTimeMillis | string ( int64 format) যুগ থেকে মিলিসেকেন্ডে পণ্যটি কেনার সময় (জানুয়ারি 1, 1970)। |
purchaseState | integer অর্ডার ক্রয় অবস্থা. সম্ভাব্য মানগুলি হল: 0. কেনা 1. বাতিল 2. মুলতুবি৷ |
consumptionState | integer ইনঅ্যাপ পণ্যের খরচ অবস্থা। সম্ভাব্য মানগুলি হল: 0. এখনও সেবন করা হবে 1. গ্রাস করা হয়েছে৷ |
developerPayload | string একটি ডেভেলপার-নির্দিষ্ট স্ট্রিং যাতে একটি অর্ডার সম্বন্ধে সম্পূরক তথ্য থাকে। |
orderId | string ইনঅ্যাপ পণ্য কেনার সাথে যুক্ত অর্ডার আইডি। |
purchaseType | integer ইনঅ্যাপ পণ্য কেনার ধরন। এই ক্ষেত্রটি শুধুমাত্র সেট করা হয় যদি এই ক্রয়টি স্ট্যান্ডার্ড ইন-অ্যাপ বিলিং ফ্লো ব্যবহার করে করা না হয়। সম্ভাব্য মানগুলি হল: 0. পরীক্ষা (যেমন একটি লাইসেন্স টেস্টিং অ্যাকাউন্ট থেকে কেনা) 1. প্রচার (অর্থাৎ একটি প্রচার কোড ব্যবহার করে কেনা)। Play Points কেনাকাটা অন্তর্ভুক্ত নয়। 2. পুরস্কৃত (অর্থাৎ অর্থ প্রদানের পরিবর্তে একটি ভিডিও বিজ্ঞাপন দেখা থেকে) |
acknowledgementState | integer ইনঅ্যাপ পণ্যের স্বীকৃতির অবস্থা। সম্ভাব্য মানগুলি হল: 0. এখনও স্বীকার করতে হবে 1. স্বীকৃত৷ |
purchaseToken | string এই ক্রয় সনাক্ত করতে ক্রয় টোকেন তৈরি করা হয়েছে। উপস্থিত নাও থাকতে পারে। |
productId | string ইনঅ্যাপ পণ্য SKU. উপস্থিত নাও থাকতে পারে। |
quantity | integer ইনঅ্যাপ পণ্য কেনার সাথে যুক্ত পরিমাণ। উপস্থিত না থাকলে, পরিমাণ 1। |
obfuscatedExternalAccountId | string আইডির একটি অস্পষ্ট সংস্করণ যা আপনার অ্যাপে ব্যবহারকারীর অ্যাকাউন্টের সাথে অনন্যভাবে যুক্ত। কেনার সময় https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid ব্যবহার করে নির্দিষ্ট করা হলেই কেবল উপস্থিত। |
obfuscatedExternalProfileId | string আইডির একটি অস্পষ্ট সংস্করণ যা আপনার অ্যাপে ব্যবহারকারীর প্রোফাইলের সাথে অনন্যভাবে যুক্ত। কেনার সময় https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid ব্যবহার করে নির্দিষ্ট করা হলেই কেবল উপস্থিত। |
regionCode | string পণ্যটি মঞ্জুর করার সময় ব্যবহারকারীর ISO 3166-1 আলফা-2 বিলিং অঞ্চল কোড। |
refundableQuantity | integer অর্থ ফেরতের জন্য যোগ্য পরিমাণ, অর্থাত্ ফেরত দেওয়া হয়নি এমন পরিমাণ। মানটি পরিমাণ-ভিত্তিক আংশিক ফেরত এবং সম্পূর্ণ ফেরত প্রতিফলিত করে। |
পদ্ধতি |
---|
| একটি ইনঅ্যাপ আইটেম কেনার স্বীকৃতি দেয়। |
| একটি inapp আইটেম জন্য একটি ক্রয় গ্রাস. |
| একটি ইনঅ্যাপ আইটেমের ক্রয় এবং ব্যবহার স্থিতি পরীক্ষা করে। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe \u003ccode\u003eProductPurchase\u003c/code\u003e resource provides information about a user's in-app product purchase, including purchase time, state, and consumption status.\u003c/p\u003e\n"],["\u003cp\u003eIt contains details like the product ID, order ID, purchase token, and quantity, along with developer-specified payload and user account identifiers if provided.\u003c/p\u003e\n"],["\u003cp\u003eYou can use methods like \u003ccode\u003eacknowledge\u003c/code\u003e, \u003ccode\u003econsume\u003c/code\u003e, and \u003ccode\u003eget\u003c/code\u003e to manage the purchase and its state.\u003c/p\u003e\n"],["\u003cp\u003eThe resource includes fields for purchase state (purchased, canceled, pending), consumption state (consumed, not consumed), and acknowledgement state (acknowledged, not acknowledged).\u003c/p\u003e\n"]]],["The `ProductPurchase` resource details a user's in-app product purchase status, represented in JSON format with fields like `purchaseTimeMillis`, `purchaseState`, and `consumptionState`. It includes identifiers such as `orderId`, `purchaseToken`, and `productId`. Key actions involve using the methods `acknowledge` to confirm a purchase, `consume` to mark an item as used, and `get` to check the purchase status. The purchase also indicates quantity, purchase types, and refundable amounts.\n"],null,["# REST Resource: purchases.products\n\n- [Resource: ProductPurchase](#ProductPurchase)\n - [JSON representation](#ProductPurchase.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: ProductPurchase\n-------------------------\n\nA ProductPurchase resource indicates the status of a user's inapp product purchase.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"purchaseTimeMillis\": string, \"purchaseState\": integer, \"consumptionState\": integer, \"developerPayload\": string, \"orderId\": string, \"purchaseType\": integer, \"acknowledgementState\": integer, \"purchaseToken\": string, \"productId\": string, \"quantity\": integer, \"obfuscatedExternalAccountId\": string, \"obfuscatedExternalProfileId\": string, \"regionCode\": string, \"refundableQuantity\": integer } ``` |\n\n| Fields ||\n|-------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` This kind represents an inappPurchase object in the androidpublisher service. |\n| `purchaseTimeMillis` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970). |\n| `purchaseState` | `integer` The purchase state of the order. Possible values are: 0. Purchased 1. Canceled 2. Pending |\n| `consumptionState` | `integer` The consumption state of the inapp product. Possible values are: 0. Yet to be consumed 1. Consumed |\n| `developerPayload` | `string` A developer-specified string that contains supplemental information about an order. |\n| `orderId` | `string` The order id associated with the purchase of the inapp product. |\n| `purchaseType` | `integer` The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: 0. Test (i.e. purchased from a license testing account) 1. Promo (i.e. purchased using a promo code). Does not include Play Points purchases. 2. Rewarded (i.e. from watching a video ad instead of paying) |\n| `acknowledgementState` | `integer` The acknowledgement state of the inapp product. Possible values are: 0. Yet to be acknowledged 1. Acknowledged |\n| `purchaseToken` | `string` The purchase token generated to identify this purchase. May not be present. |\n| `productId` | `string` The inapp product SKU. May not be present. |\n| `quantity` | `integer` The quantity associated with the purchase of the inapp product. If not present, the quantity is 1. |\n| `obfuscatedExternalAccountId` | `string` An obfuscated version of the id that is uniquely associated with the user's account in your app. Only present if specified using \u003chttps://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid\u003e when the purchase was made. |\n| `obfuscatedExternalProfileId` | `string` An obfuscated version of the id that is uniquely associated with the user's profile in your app. Only present if specified using \u003chttps://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid\u003e when the purchase was made. |\n| `regionCode` | `string` ISO 3166-1 alpha-2 billing region code of the user at the time the product was granted. |\n| `refundableQuantity` | `integer` The quantity eligible for refund, i.e. quantity that hasn't been refunded. The value reflects quantity-based partial refunds and full refunds. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------------|--------------------------------------------------------------|\n| ### [acknowledge](/android-publisher/api-ref/rest/v3/purchases.products/acknowledge) | Acknowledges a purchase of an inapp item. |\n| ### [consume](/android-publisher/api-ref/rest/v3/purchases.products/consume) | Consumes a purchase for an inapp item. |\n| ### [get](/android-publisher/api-ref/rest/v3/purchases.products/get) | Checks the purchase and consumption status of an inapp item. |"]]