当我在Google开发人员沙箱中生成并执行非订阅JWT时,一切都会成功执行。但是,每当我尝试执行订阅JWT时,都会遇到400 / Bad Request / MERCHANT_ERROR消息。
我复制了&粘贴了每个签名的&将JWT编码为Google的JWT解码器 - 报告每个JWT都有效,但只有非订阅JWT成功执行。
我已经尝试过我能想到的一切。非常感激任何的帮助。感谢。
{
"iss":"ourSellerIdentifier",
"aud":"Google",
"typ":"google/payments/inapp/item/v1",
"iat":1395879238,
"exp":1395879298,
"request":{
"name":"Professional Edition",
"sellerData":"10955.373715.2.1",
"price":"39.95",
"currencyCode":"USD"
}
}
{
"iss":"ourSellerIdentifier",
"aud":"Google",
"typ":"google/payments/inapp/item/v1",
"iat":1395880013,
"exp":1395880073,
"request":{
"name":"Professional Edition",
"sellerData":"10955.373715.2.1",
"recurrence":{
"price":"39.95",
"currencyCode":"USD",
"frequency":"monthly"
}
}
}
答案 0 :(得分:1)
typ
字段应为google/payments/inapp/subscription/v1
for subscriptions - re:“subscription”(vs“item”)
H个....