In order to charge a fee for your Products using the Market payment processing services, you must have a valid Payment Account under a separate agreement with a Payment Processor.
function checkSub() {
//THIS IS LIVE STRIPE KEY
var secretKey = "your live key here";
//gets the current users email address
var userEmail = Session.getActiveUser().getEmail();
var options = {};
options.headers = {Authorization: 'Bearer ' + secretKey}
var response = UrlFetchApp.fetch('https://api.stripe.com/v1/customers?email=' + userEmail, options);
var jsonObject = JSON.parse(response.getContentText());
if (jsonObject["data"] == "" ){
//Stripe has no record of that customer
return false;
} else {
//Stripe has returned a customer, now check if they have an active subscription
//totalSub is 0 if they have no active subscription, is 1 if they have an active subscription
var totalSub = jsonObject["data"][0]["subscriptions"]["total_count"]
if (totalSub > 0) {
Logger.log("user has a subscription");
return true;
//continue with actions
} else {
Logger.log("user does not have a subscription");
return false;
}
}
}
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/09f7f086-0e2f-4baa-9a27-d4af145cb336o%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/ff407866-7d5d-4e5e-b717-f6aaf7d3fc8ao%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CA%2BKQo47UUvQaNFeXoLrmFMmaf1yS8otMW8m6e93GGfyxBipzjw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/3756e784-6d88-4d54-abc1-2693dd946887o%40googlegroups.com.
today's thought : "Iife is a sales pitch"
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/d1bf2732-abae-4081-89b4-d2eb86b808d1n%40googlegroups.com.
Yes, it is possible to sell your add-on through the G Suite Marketplace. You can find more information about this on the Google Developers website:
https://developers.google.com/gsuite/marketplace/sell
To sell your add-on, you will need to have a valid Payment Account with a Payment Processor, as mentioned in the Developer Agreement. Google provides support for various Payment Processors including Stripe, Braintree, and PayPal.
Once you have set up your Payment Account, you can then configure your add-on to use the Google Marketplace Licensing API and integrate with the Google Marketplace Payments API to handle the sale and licensing of your add-on.
You can find more information on how to integrate these APIs into your add-on on the Google Developers website:
https://developers.google.com/gsuite/marketplace/integrate
Additionally, you may want to consider using the Google Workspace Developer Console to manage your add-on and its listing on the G Suite Marketplace:
https://developers.google.com/gsuite/marketplace/manage-your-apps
I hope this helps!
El vie, 19 jun 2020 a la(s) 08:34, Belisario Peró (belisar...@kwargentina.com) escribió:Hi!I'm developing an add on for Google Sheets and it will be published to G Suite Marketplace.I have read G Suite Marketplace Developer Agreement and found that refers to the posibility of selling through the Marketplace:In order to charge a fee for your Products using the Market payment processing services, you must have a valid Payment Account under a separate agreement with a Payment Processor.I also read this post "Is it possible to create an add-on to sheets to sell" but I can't get clarity if it's possible to sell through G Suite Marketplace or this must be done outside the markeplace.These are my doubts:
- Does anyone knows if it's possible to sell through the Marketplace?
- If it's possible, can you please share some link to documentation?
- If it's not possible, ca you please share an addon link which has embedded the payment process?
Regards!
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/c463381b-e178-4d26-8562-e6035e006d32o%40googlegroups.com.
--__________________________Nerio Enrique Villalobos MorilloBuenos Aires, Argentina
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/df2a3cb7-774f-4f3b-a58e-27242de56a6en%40googlegroups.com.