我在 Google Play 上有一个免费应用,我想在其中添加一个捐赠按钮。我尝试创建一个 Google Merchant 帐户,但它需要一个将向公众显示的公司名称和地址。我是一名单身开发人员,除了家庭住址之外我没有其他地址,所以这不是一种选择。
我还在这里读到,由于使用直接贝宝访问,某些应用程序已从 Google Play 暂停/撤出。也许写一个人的贝宝电子邮件并要求用户用它来捐赠是一个(虽然荒谬)的选择。
总而言之,如果您不是企业实体,您如何处理 Google Play 上的捐款?任何提示表示赞赏。
谁能告诉我这里我做错了什么?测试将'compute'函数视为未定义,我完全没有想法.
这是我得到的错误:
Failures:
1) Hamming no difference between identical strands
Message:
TypeError: undefined is not a function
Stacktrace:
TypeError: undefined is not a function
at null.<anonymous> (C:\Users\Schann\exercism\javascript\hamming\hamming_test.spec.js:6:12)
2) Hamming complete hamming distance for single nucleotide strand
Message:
TypeError: undefined is not a function
Stacktrace:
TypeError: undefined is not a function
at null.<anonymous> (C:\Users\Schann\exercism\javascript\hamming\hamming_test.spec.js:10:12)
Finished in 0.041 seconds
2 tests, 2 assertions, 2 failures, 0 skipped
Run Code Online (Sandbox Code Playgroud)
//-------------------
// Hamming.js
//-------------------
var Hamming = function() {
var compute = function(input1, input2) { …Run Code Online (Sandbox Code Playgroud)