-
-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
appAccountToken
missing on the return of the getAvailablePurchases
method
#2434
Comments
#2455 Can anyone please suggest on this issue Please ? |
I added a workaround on the issue |
I saw that the Our setup is quite simple and the // somewhere on payment page
await requestSubscription({ ...purchase, appAccountToken: "some-uuid" });
// somewhere else
purchaseUpdatedListener((purchase) => purchase.appAccountToken); // always undefined |
@fodjan-philip There's probably missing properties on the data sent from the ios event. Are you using Storekit 2 ? What is the version number of |
@quentinnippert I am using StoreKit 2 and the most recent version of On iOS, I send the following data to sku: 'some-product',
appAccountToken: 'some-token' But I only receive the following data in the originalTransactionDateIOS: 12345,
originalTransactionIdentifierIOS: '12345',
productId: 'some-product',
transactionDate: 12345,
transactionId: '54321'
transactionReceipt: '...' |
@fodjan-philip I'll try to take a look at this as soon as I have time for it ! |
@quentinnippert I think there was a misunderstanding on my side. Somehow I thought StoreKit 2 is used by default, but if I understand it correctly, it has to be activated with a So with StoreKit 1, is it expected that I can send an |
@fodjan-philip Sorry for the delay. |
i am using StoreKit 2. |
@caoyongfeng0214 Can you send me your code ? |
Yes, it is a string. const uuidv4 = require('uuid').v4;
const appAccountToken = uuidv4(); |
I need to see how you make your purchase with |
This is my code: const uuidv4 = require('uuid').v4;
const appAccountToken = uuidv4();
const signResult = await http.post('https://domain/signOffer', { userName: appAccountToken });
/**
signResult:
{
userName: 'appAccountToken',
withOffer: {
identifier:'vip_free_1_month',
keyIdentifier:'KEY_ID',
nonce:'a-uuid',
signature:'xxbcdxxbdijdggd......',
timestamp: 12345678
}
}
**/
requestSubscription({
sku: 'vip_month_1',
appAccountToken: signResult.userName,
withOffer: signResult.withOffer
}); |
> > > > @caoyongfeng0214 Can you send me your code ? Are you sending a string in UUID format ?
Are you using Also, make sure to setup your app store server notification on version 2 on appstore connect > select your app > app information > scroll to Appstore Server Notification > edit your endpoint. |
Yes, If not bring If bring |
Description
appAccountToken
is not on the return of thegetAvailablePurchases
method.Expected Behavior
appAccountToken
should be on the return of thegetAvailablePurchases
method.Environment:
12.10.5
0.67.1
iOS
To Reproduce
Steps to reproduce the behavior:
To fix the problem :
I added the followings fields on the types files
Can you add this to the method ?
The text was updated successfully, but these errors were encountered: