Google电子钱包500服务器错误

时间:2014-06-08 16:04:13

标签: php android-pay

我的订阅大约在5天前在沙箱中工作,但是在我完成测试后的第二天,每次尝试在沙盒和生产中测试我的订阅时,我都会遇到500个服务器错误。我没有改变代码,我的JWT仍然完美解码。

google wallet error

为什么会发生这种情况?我曾经多次与谷歌联系过,但我得到的大多数人都明白不知道他们在谈论什么...... 有没有人遇到过这个问题?任何意见都表示赞赏!

失败的红线是Google沙盒代码:

<script src="https://sandbox.google.com/checkout/inapp/lib/buy.js"></script>

POST:

[,"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxMTQ4MTc0NTgxNTIzNzcxMTY5OSIsImF1ZCI6Ikdvb2dsZSIsInR5cCI6Imdvb2dsZVwvcGF5bWVudHNcL2luYXBwXC9zdWJzY3JpcHRpb25cL3YxIiwiZXhwIjoxNDAyMjQ3NTMyLCJpYXQiOjE0MDIyNDM5MzIsInJlcXVlc3QiOnsibmFtZSI6IkF1dG9tYXRvbiBTY2hlZHVsZXIgU3Vic2NyaXB0aW9uIChQUk8pIiwiZGVzY3JpcHRpb24iOiJNb250aGx5IHN1YnNjcmlwdGlvbiB3aXRoIHVwIHRvIDUwIHVzZXJzLiIsImN1cnJlbmN5Q29kZSI6IlVTRCIsInNlbGxlckRhdGEiOiJ1c2VyX2lkOixzdWJzY3JpcHRpb25faWQ6MiIsImluaXRpYWxQYXltZW50Ijp7InBheW1lbnRUeXBlIjoiZnJlZV90cmlhbCJ9LCJyZWN1cnJlbmNlIjp7InByaWNlIjoiNjAuMDAiLCJjdXJyZW5jeUNvZGUiOiJVU0QiLCJmcmVxdWVuY3kiOiJtb250aGx5In19fQ.sju0xaOf9u3ufxow0XxWF4j-QUY0XgtF0A0d8g1rRiQ",,,1]

响应:

[,,4,"VTTMKJ"]

1 个答案:

答案 0 :(得分:1)

基于上述内容,这是JWT有效负载中的request object

"request": {
    "name": "Automaton Scheduler Subscription (PRO)",
    "description": "Monthly subscription with up to 50 users.",
    "currencyCode": "USD",
    "sellerData": "user_id:,subscription_id:2",
    "initialPayment": {
        "paymentType": "free_trial"
    },
    "recurrence": {
        "price": "60.00",
        "currencyCode": "USD",
        "frequency": "monthly"
    }
}

请注意订阅请求中的docs regarding the structure and required fields。所以:

  • 订阅中没有currencyCode request
  • 上述initialPayment对象缺少必填字段
    • price
    • currencyCode

H个....