【问题标题】:Google checkout subscription solution谷歌结账订阅解决方案
【发布时间】:2012-12-14 12:30:53
【问题描述】:

我为我的 asp.net 网站配置了 Google 结帐订阅。
但我有一些问题。

  1. 如何取消订阅付款?
  2. 如何在沙盒环境下测试订阅支付?

(我的意思是如果我设置每周订阅是否会在沙盒环境中发送付款通知)

【问题讨论】:

    标签: asp.net google-checkout


    【解决方案1】:

    我找到了解决方案,它会对某人有所帮助

    CancelItemsRequest cma = new CancelItemsRequest(System.Web.Configuration.WebConfigurationManager.AppSettings["GoogleMerchantID"].ToString(), System.Web.Configuration.WebConfigurationManager.AppSettings["GoogleMerchantKey"].ToString(), EnvironmentType.Sandbox.ToString(), ["merchant_invoice_id"], "Message", "");
                    cma.AddMerchantItemId("2"); // item id to cancel
                    cma.MerchantID = System.Web.Configuration.WebConfigurationManager.AppSettings["GoogleMerchantID"].ToString();
                    cma.MerchantKey = System.Web.Configuration.WebConfigurationManager.AppSettings["GoogleMerchantKey"].ToString();
                    cma.Environment = EnvironmentType.Sandbox;
                    cma.SendEmail = false;
                    GCheckoutResponse Respa = cma.Send();
    

    【讨论】:

      猜你喜欢
      • 2013-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-26
      • 2020-01-20
      • 1970-01-01
      • 1970-01-01
      • 2011-12-11
      相关资源
      最近更新 更多