Post

Replies

Boosts

Views

Activity

How to get the JWS after subscription was purchased inside the IOS APP
After subscription purchase, We plan to do JWS signature validation on the server-side instead of decoding the JWS in the IOS app. Currently, after purchase, I am getting the decoded details instead of the JWS in response. Could you please let me know which methods give the JWS after the subscription purchase inside the IOS app? Method's I am calling the inside the APP Product.purchase() ->given the purchase result. After purchase, we get the transaction object as a response Transaction.finish() //concluding the transaction Fetch the purchase information of the product transaction.currentEntitlement Sample response after the purchase was made. But we required the JWS instead of the below-decoded data. ({  "header" : {   "alg" : "ES256",   "x5c" : [    "**********",    "***********",    "*****************"   ]  },  "payload" : {   "bundleId" : "com.*******",   "deviceVerification" : "",   "deviceVerificationNonce" : "",   "expiresDate" : 1640100970000,   "inAppOwnershipType" : "PURCHASED",   "originalPurchaseDate" : 1631601452000,   "originalTransactionId" : "1000000877135811",   "productId" : "com.e**********",   "purchaseDate" : 1640100670000,   "quantity" : 1,   "signedDate" : 1640100987198,   "subscriptionGroupIdentifier" : "*****",   "transactionId" : "1000000935313340",   "type" : "Auto-Renewable Subscription",   "webOrderLineItemId" : "************"  },  "signature" : "64 bytes (verified)" })
1
0
980
Jan ’22
How to get the JWS after subscription was purchased inside the IOS APP
After subscription purchase, We plan to do JWS signature validation on the server-side instead of decoding the JWS in the IOS app. Currently, after purchase, I am getting the decoded details instead of the JWS in response. Could you please let me know which methods give the JWS after the subscription purchase inside the IOS app? Method's I am calling the inside the APP Product.purchase() ->given the purchase result. After purchase, we get the transaction object as a response Transaction.finish() //concluding the transaction Fetch the purchase information of the product transaction.currentEntitlement Sample response after the purchase was made. But we required the JWS instead of the below-decoded data. ({  "header" : {   "alg" : "ES256",   "x5c" : [    "**********",    "***********",    "*****************"   ]  },  "payload" : {   "bundleId" : "com.*******",   "deviceVerification" : "",   "deviceVerificationNonce" : "",   "expiresDate" : 1640100970000,   "inAppOwnershipType" : "PURCHASED",   "originalPurchaseDate" : 1631601452000,   "originalTransactionId" : "1000000877135811",   "productId" : "com.e**********",   "purchaseDate" : 1640100670000,   "quantity" : 1,   "signedDate" : 1640100987198,   "subscriptionGroupIdentifier" : "*****",   "transactionId" : "1000000935313340",   "type" : "Auto-Renewable Subscription",   "webOrderLineItemId" : "************"  },  "signature" : "64 bytes (verified)" })
Replies
1
Boosts
0
Views
980
Activity
Jan ’22