Skip to main content

Transfer google play balance to Paytm, PhonePe, Google Pay or any UPI linked bank account.

To transfer google play balance, opinion rewards or gift cards to PayPal, Paytm, PhonePe, Google Pay or any UPI ID linked bank account , you can use QxCredit :Rewards Convertor app which is available on google play store: You will get back 80% of the google play balance. App link:  https://play.google.com/store/apps/details?id=qxcoding.qx_credit_reboot Follow these steps to transfer your play balance to paypal or UPI: 1) download app from play store. 2) login with your google account and phone number. 3) choose a token amount which you want to convert/transfer. 4) Enter your payout details.(UPI ID or PayPal Email) 5) wait for an acknowledgement mail form qxcredit containing information about your purchased token. 6) you will receive the amount within 3 days. 7) if you face any issues you can raise a query on website: https://qx-credit.web.app/#/contact_support About app: Introducing QxCredit : Rewards Converter Convert /Transfer or Exchange your Google Play Balance and opini...

Using google play voided purchase API in flutter


Google's voided purchase API can be used to find the purchases which are either refunded , cancelled, charged back  by the user and use the same to take action against the purchased item(in-app purchases) in your app.

you can get more information about the API here:

https://developers.google.com/android-publisher/voided-purchases


before using the API you need to set up API access clients:

1) create or use an existing API project in google play console:

=>play console=>menu=>settings=>developer account=>API access

https://play.google.com/console/api-access


2) create a service account and grant it necessary permissions ("view financial reports" permission)


3) create credentials for using the API:

=>google cloud console =><your project>=>API & services=>credentials=>create credentials=>service account

=>ensue to copy the service account credentials in the form:

{
  "private_key_id": ...,
  "private_key": ...,
  "client_email": ...,
  "client_id": ...,
  "type": "service_account"
}



Now, you are all set up to move on to the flutter integration part:

1) we will be using google client libraries for flutter:

https://pub.dev/packages/googleapis


2) defining scopes:

const _scopes = [AndroidPublisherApi.androidpublisherScope];

this scope will allow the service account to access the play console account,you can define more scopes as per your needs...


3) adding service account credentials:

final _credentials = ServiceAccountCredentials.fromJson(r'''
{
"private_key_id": "---",
"private_key": "---",
"client_email": "---",
"client_id": "---",
"type": "service_account"
}
''');

add you private key id,private key,client email and client id from the downloaded file(at the time of creating service account).


4) fetching voided purchases from API:

Future<void> fetchVoidedPurchases() async {

final httpClient = await clientViaServiceAccount(_credentials, _scopes);
try {
final api = AndroidPublisherApi(httpClient);

final voidedPurchases =
await api.purchases.voidedpurchases.list('<your app package name>');
final items = voidedPurchases.voidedPurchases;
print('Received ${items.length} voided purchases:(for last 30 days):');
for (var order in items) {
print(order.orderId);
}

} finally {
httpClient.close();
}


});



that's it, now you can revoke the in-app item from the users who have voided purchases and provide fair experience to all users...


Comments

Popular posts from this blog

Transfer google play balance to Paytm, PhonePe, Google Pay or any UPI linked bank account.

To transfer google play balance, opinion rewards or gift cards to PayPal, Paytm, PhonePe, Google Pay or any UPI ID linked bank account , you can use QxCredit :Rewards Convertor app which is available on google play store: You will get back 80% of the google play balance. App link:  https://play.google.com/store/apps/details?id=qxcoding.qx_credit_reboot Follow these steps to transfer your play balance to paypal or UPI: 1) download app from play store. 2) login with your google account and phone number. 3) choose a token amount which you want to convert/transfer. 4) Enter your payout details.(UPI ID or PayPal Email) 5) wait for an acknowledgement mail form qxcredit containing information about your purchased token. 6) you will receive the amount within 3 days. 7) if you face any issues you can raise a query on website: https://qx-credit.web.app/#/contact_support About app: Introducing QxCredit : Rewards Converter Convert /Transfer or Exchange your Google Play Balance and opini...

How to convert google play balance to paypal or UPI [2024]

If your google account contains play balance which you might have earned from google competitions, opinion rewards or gift vouchers, you can transfer the amount to paypal account or any UPI linked bank account.  For transferring the play balance you need to follow 3 simple steps :  1) Download QxCredit app from google play store:                                 2) Purchase a token of your choice by entering the payout details :            3) View your purchase in my tokens section and wait for 72 hours for the transaction to be verified and processed. The below video demonstrates the process of purchasing a token of your choice to convert play balance: After purchasing token you will also receive a confirmation mail from QxCredit regarding the purchased token information. You can also view your purchased token on QxCredit website:...

Demonstration of new data types using structures

What is a structure? A structure is a user defined data type in C/C++. A structure creates a data type that can be used to group items of possibly different types into a single type. How to create a structure? ‘struct’ keyword is used to create a structure. Following is an example. the below example demonstrates the creation of new data type point which can store coordinates : // A variable declaration with structure declaration. struct Point { int x, y; } p1; // The variable p1 is declared with 'Point' for using the above structure we need to use structure_name (.) member access operator followed by a member name of defined structure. int main() { // A valid initialization. member x gets value 0 and y // gets value 1. The order of declaration is followed. struct Point p1 = {0, 1}; cout<<"value of x="<<p1.x<<"value of y="<<p1.y; }   if any doubts or queries please comment