Skip to content
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

Update current subscription to the next level using ReplacementMode #1624

Open
vlahde opened this issue Jan 3, 2025 · 1 comment
Open

Update current subscription to the next level using ReplacementMode #1624

vlahde opened this issue Jan 3, 2025 · 1 comment

Comments

@vlahde
Copy link

vlahde commented Jan 3, 2025

Observed behavior

I can make the subscription but the problem is that when making a new subscription to the higher level, the old level still persist:

await window.CdvPurchase.store.order(productId, {
oldSku: "tarottaso2", 
ReplacementMode: "CHARGE_PRORATED_PRICE"}
);

It would be helpful if someone could provide a workable example of ReplacementMode. I could not find one.

Logs from both of subscriptions:

File:  - Line 3346 - Msg: [CdvPurchase.GooglePlay] DEBUG: onPurchaseUpdated: GPA.3321-1946-4715-29799
File:  - Line 3346 - Msg: [CdvPurchase.AdapterListener] DEBUG: receiptsUpdated: [{"platform":"android-playstore","transactions":[{"className":"Transaction","transactionId":"GPA.3321-1946-4715-29799","state":"initiated","products":[{"id":"tarottaso2"}],"platform":"android-playstore","nativePurchase":{"orderId":"GPA.3321-1946-4715-29799","packageName":"fi.heliad.tarottulkinta","productId":"tarottaso2","purchaseTime":1735908144044,"purchaseState":0,"purchaseToken":"onemlcicfibbceigpgcildll.AO-J1Oyp2HHgoXHq_IUO01NjSf3EARdHiB-CZa2Dyl0vgQ7bThpsH7a1d7JsZRdx5fXLterZ30RnPokpTzTZNEf3_PVObzS6gFx4TBtMPR1B6CzvS9znE4s","quantity":1,"autoRenewing":true,"acknowledged":false,"productIds":["tarottaso2"],"getPurchaseState":1,"developerPayload":"","accountId":"","profileId":"","signature":"ngli0hkaakaKbOFsLORPqhJSbHY/DkRIUgXOaxQYBfjjYXXHLiGdr/9p4z0iLLLEaYIbaBOufts+LJP9NCp+67GJSJvdjJFyVnKhxOUIDj+N2fQJ5EDHl/0s/9e01dcGy6ekYWK9+jBCOeJxOREyh5CsWITx+FNb59yWlwfFRhyH6hrig5vxvInJexyp+nbNEXrtB0I1xolwXB/i9zJXH42pdz52pN0K/6ZQOTd2HyHdub68m5n/87wiQ9tCqKGOVv3yr2Mkujhcm4M8Kn4WjktilZbnEpH+oC0luCe9iUvVWYknFVamN5nRcTjDKqnj9Wau5zZsDZc8/lTkvJBoxw==","receipt":"{\"orderId\":\"GPA.3321-1946-4715-29799\",\"packageName\":\"fi.heliad.tarottulkinta\",\"productId\":\"tarottaso2\",\"purchaseTime\":1735908144044,\"purchaseState\":0,\"purchaseToken\":\"onemlcicfibbceigpgcildll.AO-J1Oyp2HHgoXHq_IUO01NjSf3EARdHiB-CZa2Dyl0vgQ7bThpsH7a1d7JsZRdx5fXLterZ30RnPokpTzTZNEf3_PVObzS6gFx4TBtMPR1B6CzvS9znE4s\",\"quantity\":1,\"autoRenewing\":true,\"acknowledged\":false}"},"purchaseId":"onemlcicfibbceigpgcildll.AO-J1Oyp2HHgoXHq_IUO01NjSf3EARdHiB-CZa2Dyl0vgQ7bThpsH7a1d7JsZRdx5fXLterZ30RnPokpTzTZNEf3_PVObzS6gFx4TBtMPR1B6CzvS9znE4s","purchaseDate":"2025-01-03T12:42:24.044Z","isPending":false,"isAcknowledged":false,"renewalIntent":"Renew"}]}]
File:  - Line 3346 - Msg: [CdvPurchase.AdapterListener] DEBUG: receiptsUpdated: [{"platform":"android-playstore","transactions":[{"className":"Transaction","transactionId":"GPA.3321-1946-4715-29799","state":"approved","products":[{"id":"tarottaso2"}],"platform":"android-playstore","nativePurchase":{"orderId":"GPA.3321-1946-4715-29799","packageName":"fi.heliad.tarottulkinta","productId":"tarottaso2","purchaseTime":1735908144044,"purchaseState":0,"purchaseToken":"onemlcicfibbceigpgcildll.AO-J1Oyp2HHgoXHq_IUO01NjSf3EARdHiB-CZa2Dyl0vgQ7bThpsH7a1d7JsZRdx5fXLterZ30RnPokpTzTZNEf3_PVObzS6gFx4TBtMPR1B6CzvS9znE4s","quantity":1,"autoRenewing":true,"acknowledged":false,"productIds":["tarottaso2"],"getPurchaseState":1,"developerPayload":"","accountId":"","profileId":"","signature":"ngli0hkaakaKbOFsLORPqhJSbHY/DkRIUgXOaxQYBfjjYXXHLiGdr/9p4z0iLLLEaYIbaBOufts+LJP9NCp+67GJSJvdjJFyVnKhxOUIDj+N2fQJ5EDHl/0s/9e01dcGy6ekYWK9+jBCOeJxOREyh5CsWITx+FNb59yWlwfFRhyH6hrig5vxvInJexyp+nbNEXrtB0I1xolwXB/i9zJXH42pdz52pN0K/6ZQOTd2HyHdub68m5n/87wiQ9tCqKGOVv3yr2Mkujhcm4M8Kn4WjktilZbnEpH+oC0luCe9iUvVWYknFVamN5nRcTjDKqnj9Wau5zZsDZc8/lTkvJBoxw==","receipt":"{\"orderId\":\"GPA.3321-1946-4715-29799\",\"packageName\":\"fi.heliad.tarottulkinta\",\"productId\":\"tarottaso2\",\"purchaseTime\":1735908144044,\"purchaseState\":0,\"purchaseToken\":\"onemlcicfibbceigpgcildll.AO-J1Oyp2HHgoXHq_IUO01NjSf3EARdHiB-CZa2Dyl0vgQ7bThpsH7a1d7JsZRdx5fXLterZ30RnPokpTzTZNEf3_PVObzS6gFx4TBtMPR1B6CzvS9znE4s\",\"quantity\":1,\"autoRenewing\":true,\"acknowledged\":false}"},"purchaseId":"onemlcicfibbceigpgcildll.AO-J1Oyp2HHgoXHq_IUO01NjSf3EARdHiB-CZa2Dyl0vgQ7bThpsH7a1d7JsZRdx5fXLterZ30RnPokpTzTZNEf3_PVObzS6gFx4TBtMPR1B6CzvS9znE4s","purchaseDate":"2025-01-03T12:42:24.044Z","isPending":false,"isAcknowledged":false,"renewalIntent":"Renew"}]}]
File:  - Line 3346 - Msg: [CdvPurchase.AdapterListener] DEBUG: processing 1 updated receipts
File:  - Line 3346 - Msg: [CdvPurchase] DEBUG: Calling callback: type=approved() name=#3be4a56c7f0414321cc883f6bf77db77 reason=adapterListener_receiptsUpdated_approved
File:  - Line 3346 - Msg: [CdvPurchase.Validator] DEBUG: Schedule validation: {"className":"Transaction","transactionId":"GPA.3321-1946-4715-29799","state":"approved","products":[{"id":"tarottaso2"}],"platform":"android-playstore","nativePurchase":{"orderId":"GPA.3321-1946-4715-29799","packageName":"fi.heliad.tarottulkinta","productId":"tarottaso2","purchaseTime":1735908144044,"purchaseState":0,"purchaseToken":"onemlcicfibbceigpgcildll.AO-J1Oyp2HHgoXHq_IUO01NjSf3EARdHiB-CZa2Dyl0vgQ7bThpsH7a1d7JsZRdx5fXLterZ30RnPokpTzTZNEf3_PVObzS6gFx4TBtMPR1B6CzvS9znE4s","quantity":1,"autoRenewing":true,"acknowledged":false,"productIds":["tarottaso2"],"getPurchaseState":1,"developerPayload":"","accountId":"","profileId":"","signature":"ngli0hkaakaKbOFsLORPqhJSbHY/DkRIUgXOaxQYBfjjYXXHLiGdr/9p4z0iLLLEaYIbaBOufts+LJP9NCp+67GJSJvdjJFyVnKhxOUIDj+N2fQJ5EDHl/0s/9e01dcGy6ekYWK9+jBCOeJxOREyh5CsWITx+FNb59yWlwfFRhyH6hrig5vxvInJexyp+nbNEXrtB0I1xolwXB/i9zJXH42pdz52pN0K/6ZQOTd2HyHdub68m5n/87wiQ9tCqKGOVv3yr2Mkujhcm4M8Kn4WjktilZbnEpH+oC0luCe9iUvVWYknFVamN5nRcTjDKqnj9Wau5zZsDZc8/lTkvJBoxw==","receipt":"{\"orderId\":\"GPA.3321-1946-4715-29799\",\"packageName\":\"fi.heliad.tarottulkinta\",\"productId\":\"tarottaso2\",\"purchaseTime\":1735908144044,\"purchaseState\":0,\"purchaseToken\":\"onemlcicfibbceigpgcildll.AO-J1Oyp2HHgoXHq_IUO01NjSf3EARdHiB-CZa2Dyl0vgQ7bThpsH7a1d7JsZRdx5fXLterZ30RnPokpTzTZNEf3_PVObzS6gFx4TBtMPR1B6CzvS9znE4s\",\"quantity\":1,\"autoRenewing\":true,\"acknowledged\":false}"},"purchaseId":"onemlcicfibbceigpgcildll.AO-J1Oyp2HHgoXHq_IUO01NjSf3EARdHiB-CZa2Dyl0vgQ7bThpsH7a1d7JsZRdx5fXLterZ30RnPokpTzTZNEf3_PVObzS6gFx4TBtMPR1B6CzvS9znE4s","purchaseDate":"2025-01-03T12:42:24.044Z","isPending":false,"isAcknowledged":false,"renewalIntent":"Renew"}
File:  - Line 3346 - Msg: [CdvPurchase.Validator] DEBUG: Validation requests=1 responses=0
File:  - Line 3346 - Msg: [CdvPurchase.Validator] DEBUG: Validation requests=1 responses=1
File:  - Line 3346 - Msg: [CdvPurchase.Validator] DEBUG: Validation requests=1 responses=2
File:  - Line 3346 - Msg: [CdvPurchase.Validator] DEBUG: Register a new verified receipt.
File:  - Line 3346 - Msg: [CdvPurchase] DEBUG: Calling callback: type=verified() name=#3d888cf5da4aee068923ead0c18caefa reason=payload_ok
File:  - Line 3346 - Msg: [CdvPurchase.AdapterListener] DEBUG: receiptsUpdated: [{"platform":"android-playstore","transactions":[{"className":"Transaction","transactionId":"GPA.3321-1946-4715-29799","state":"finished","products":[{"id":"tarottaso2"}],"platform":"android-playstore","nativePurchase":{"orderId":"GPA.3321-1946-4715-29799","packageName":"fi.heliad.tarottulkinta","productId":"tarottaso2","purchaseTime":1735908144044,"purchaseState":0,"purchaseToken":"onemlcicfibbceigpgcildll.AO-J1Oyp2HHgoXHq_IUO01NjSf3EARdHiB-CZa2Dyl0vgQ7bThpsH7a1d7JsZRdx5fXLterZ30RnPokpTzTZNEf3_PVObzS6gFx4TBtMPR1B6CzvS9znE4s","quantity":1,"autoRenewing":true,"acknowledged":false,"productIds":["tarottaso2"],"getPurchaseState":1,"developerPayload":"","accountId":"","profileId":"","signature":"ngli0hkaakaKbOFsLORPqhJSbHY/DkRIUgXOaxQYBfjjYXXHLiGdr/9p4z0iLLLEaYIbaBOufts+LJP9NCp+67GJSJvdjJFyVnKhxOUIDj+N2fQJ5EDHl/0s/9e01dcGy6ekYWK9+jBCOeJxOREyh5CsWITx+FNb59yWlwfFRhyH6hrig5vxvInJexyp+nbNEXrtB0I1xolwXB/i9zJXH42pdz52pN0K/6ZQOTd2HyHdub68m5n/87wiQ9tCqKGOVv3yr2Mkujhcm4M8Kn4WjktilZbnEpH+oC0luCe9iUvVWYknFVamN5nRcTjDKqnj9Wau5zZsDZc8/lTkvJBoxw==","receipt":"{\"orderId\":\"GPA.3321-1946-4715-29799\",\"packageName\":\"fi.heliad.tarottulkinta\",\"productId\":\"tarottaso2\",\"purchaseTime\":1735908144044,\"purchaseState\":0,\"purchaseToken\":\"onemlcicfibbceigpgcildll.AO-J1Oyp2HHgoXHq_IUO01NjSf3EARdHiB-CZa2Dyl0vgQ7bThpsH7a1d7JsZRdx5fXLterZ30RnPokpTzTZNEf3_PVObzS6gFx4TBtMPR1B6CzvS9znE4s\",\"quantity\":1,\"autoRenewing\":true,\"acknowledged\":false}"},"purchaseId":"onemlcicfibbceigpgcildll.AO-J1Oyp2HHgoXHq_IUO01NjSf3EARdHiB-CZa2Dyl0vgQ7bThpsH7a1d7JsZRdx5fXLterZ30RnPokpTzTZNEf3_PVObzS6gFx4TBtMPR1B6CzvS9znE4s","purchaseDate":"2025-01-03T12:42:24.044Z","isPending":false,"isAcknowledged":false,"renewalIntent":"Renew"}]}]
File:  - Line 3346 - Msg: [CdvPurchase.AdapterListener] DEBUG: processing 1 updated receipts
File:  - Line 3346 - Msg: [CdvPurchase.GooglePlay] DEBUG: onPurchaseUpdated: GPA.3323-6952-2941-83071
File:  - Line 3346 - Msg: [CdvPurchase.AdapterListener] DEBUG: receiptsUpdated: [{"platform":"android-playstore","transactions":[{"className":"Transaction","transactionId":"GPA.3323-6952-2941-83071","state":"initiated","products":[{"id":"tarottaso3"}],"platform":"android-playstore","nativePurchase":{"orderId":"GPA.3323-6952-2941-83071","packageName":"fi.heliad.tarottulkinta","productId":"tarottaso3","purchaseTime":1735908162961,"purchaseState":0,"purchaseToken":"cnfcaajbfbiojkkkblfhehdl.AO-J1Oy7-Ym6WUBMPviYzy8UGRJAJbvVmdho4W7UXMj9gKzTL_597OawBO2Mi3acdi1qTLf8svHdtIRNcjx4G-UCvIPt9LrG6RuKRDZfaipgwDfJ_YksPgI","quantity":1,"autoRenewing":true,"acknowledged":false,"productIds":["tarottaso3"],"getPurchaseState":1,"developerPayload":"","accountId":"","profileId":"","signature":"Mig67lrzSxrGprdvfczVl5kr6eIcHbDM+eIdW6Bq7sXdDb1jmOYulq0Tiqy2QoUPVaJtMKjN4pkSbCdDDBn7oDumxekc0TKYgsaQeMjLWpgLWza6kabUujR9hvIBdyMuEmK+Stqm9jzX9UIKFOo/nyvU/26HnYZ5PxziuDJKpXsyMZ5evFz11BwXoz947jSox65YOFth2joodUWnGncrj0pekxJeH3wvtKtapQXl1//G+l/5M7mePREqnaPKKBp6FdjZWMJhyU7SsKmGdJWVW6h5J13s/C8Br/f5ewBPyDiRDOr3AYMvDvqOKWrpE8lngGD3PiqhUwcJ5n/mcemmMA==","receipt":"{\"orderId\":\"GPA.3323-6952-2941-83071\",\"packageName\":\"fi.heliad.tarottulkinta\",\"productId\":\"tarottaso3\",\"purchaseTime\":1735908162961,\"purchaseState\":0,\"purchaseToken\":\"cnfcaajbfbiojkkkblfhehdl.AO-J1Oy7-Ym6WUBMPviYzy8UGRJAJbvVmdho4W7UXMj9gKzTL_597OawBO2Mi3acdi1qTLf8svHdtIRNcjx4G-UCvIPt9LrG6RuKRDZfaipgwDfJ_YksPgI\",\"quantity\":1,\"autoRenewing\":true,\"acknowledged\":false}"},"purchaseId":"cnfcaajbfbiojkkkblfhehdl.AO-J1Oy7-Ym6WUBMPviYzy8UGRJAJbvVmdho4W7UXMj9gKzTL_597OawBO2Mi3acdi1qTLf8svHdtIRNcjx4G-UCvIPt9LrG6RuKRDZfaipgwDfJ_YksPgI","purchaseDate":"2025-01-03T12:42:42.961Z","isPending":false,"isAcknowledged":false,"renewalIntent":"Renew"}]}]
File:  - Line 3346 - Msg: [CdvPurchase.AdapterListener] DEBUG: receiptsUpdated: [{"platform":"android-playstore","transactions":[{"className":"Transaction","transactionId":"GPA.3323-6952-2941-83071","state":"approved","products":[{"id":"tarottaso3"}],"platform":"android-playstore","nativePurchase":{"orderId":"GPA.3323-6952-2941-83071","packageName":"fi.heliad.tarottulkinta","productId":"tarottaso3","purchaseTime":1735908162961,"purchaseState":0,"purchaseToken":"cnfcaajbfbiojkkkblfhehdl.AO-J1Oy7-Ym6WUBMPviYzy8UGRJAJbvVmdho4W7UXMj9gKzTL_597OawBO2Mi3acdi1qTLf8svHdtIRNcjx4G-UCvIPt9LrG6RuKRDZfaipgwDfJ_YksPgI","quantity":1,"autoRenewing":true,"acknowledged":false,"productIds":["tarottaso3"],"getPurchaseState":1,"developerPayload":"","accountId":"","profileId":"","signature":"Mig67lrzSxrGprdvfczVl5kr6eIcHbDM+eIdW6Bq7sXdDb1jmOYulq0Tiqy2QoUPVaJtMKjN4pkSbCdDDBn7oDumxekc0TKYgsaQeMjLWpgLWza6kabUujR9hvIBdyMuEmK+Stqm9jzX9UIKFOo/nyvU/26HnYZ5PxziuDJKpXsyMZ5evFz11BwXoz947jSox65YOFth2joodUWnGncrj0pekxJeH3wvtKtapQXl1//G+l/5M7mePREqnaPKKBp6FdjZWMJhyU7SsKmGdJWVW6h5J13s/C8Br/f5ewBPyDiRDOr3AYMvDvqOKWrpE8lngGD3PiqhUwcJ5n/mcemmMA==","receipt":"{\"orderId\":\"GPA.3323-6952-2941-83071\",\"packageName\":\"fi.heliad.tarottulkinta\",\"productId\":\"tarottaso3\",\"purchaseTime\":1735908162961,\"purchaseState\":0,\"purchaseToken\":\"cnfcaajbfbiojkkkblfhehdl.AO-J1Oy7-Ym6WUBMPviYzy8UGRJAJbvVmdho4W7UXMj9gKzTL_597OawBO2Mi3acdi1qTLf8svHdtIRNcjx4G-UCvIPt9LrG6RuKRDZfaipgwDfJ_YksPgI\",\"quantity\":1,\"autoRenewing\":true,\"acknowledged\":false}"},"purchaseId":"cnfcaajbfbiojkkkblfhehdl.AO-J1Oy7-Ym6WUBMPviYzy8UGRJAJbvVmdho4W7UXMj9gKzTL_597OawBO2Mi3acdi1qTLf8svHdtIRNcjx4G-UCvIPt9LrG6RuKRDZfaipgwDfJ_YksPgI","purchaseDate":"2025-01-03T12:42:42.961Z","isPending":false,"isAcknowledged":false,"renewalIntent":"Renew"}]}]
File:  - Line 3346 - Msg: [CdvPurchase.AdapterListener] DEBUG: processing 1 updated receipts
File:  - Line 3346 - Msg: [CdvPurchase] DEBUG: Calling callback: type=approved() name=#3be4a56c7f0414321cc883f6bf77db77 reason=adapterListener_receiptsUpdated_approved
File:  - Line 3346 - Msg: [CdvPurchase.Validator] DEBUG: Schedule validation: {"className":"Transaction","transactionId":"GPA.3323-6952-2941-83071","state":"approved","products":[{"id":"tarottaso3"}],"platform":"android-playstore","nativePurchase":{"orderId":"GPA.3323-6952-2941-83071","packageName":"fi.heliad.tarottulkinta","productId":"tarottaso3","purchaseTime":1735908162961,"purchaseState":0,"purchaseToken":"cnfcaajbfbiojkkkblfhehdl.AO-J1Oy7-Ym6WUBMPviYzy8UGRJAJbvVmdho4W7UXMj9gKzTL_597OawBO2Mi3acdi1qTLf8svHdtIRNcjx4G-UCvIPt9LrG6RuKRDZfaipgwDfJ_YksPgI","quantity":1,"autoRenewing":true,"acknowledged":false,"productIds":["tarottaso3"],"getPurchaseState":1,"developerPayload":"","accountId":"","profileId":"","signature":"Mig67lrzSxrGprdvfczVl5kr6eIcHbDM+eIdW6Bq7sXdDb1jmOYulq0Tiqy2QoUPVaJtMKjN4pkSbCdDDBn7oDumxekc0TKYgsaQeMjLWpgLWza6kabUujR9hvIBdyMuEmK+Stqm9jzX9UIKFOo/nyvU/26HnYZ5PxziuDJKpXsyMZ5evFz11BwXoz947jSox65YOFth2joodUWnGncrj0pekxJeH3wvtKtapQXl1//G+l/5M7mePREqnaPKKBp6FdjZWMJhyU7SsKmGdJWVW6h5J13s/C8Br/f5ewBPyDiRDOr3AYMvDvqOKWrpE8lngGD3PiqhUwcJ5n/mcemmMA==","receipt":"{\"orderId\":\"GPA.3323-6952-2941-83071\",\"packageName\":\"fi.heliad.tarottulkinta\",\"productId\":\"tarottaso3\",\"purchaseTime\":1735908162961,\"purchaseState\":0,\"purchaseToken\":\"cnfcaajbfbiojkkkblfhehdl.AO-J1Oy7-Ym6WUBMPviYzy8UGRJAJbvVmdho4W7UXMj9gKzTL_597OawBO2Mi3acdi1qTLf8svHdtIRNcjx4G-UCvIPt9LrG6RuKRDZfaipgwDfJ_YksPgI\",\"quantity\":1,\"autoRenewing\":true,\"acknowledged\":false}"},"purchaseId":"cnfcaajbfbiojkkkblfhehdl.AO-J1Oy7-Ym6WUBMPviYzy8UGRJAJbvVmdho4W7UXMj9gKzTL_597OawBO2Mi3acdi1qTLf8svHdtIRNcjx4G-UCvIPt9LrG6RuKRDZfaipgwDfJ_YksPgI","purchaseDate":"2025-01-03T12:42:42.961Z","isPending":false,"isAcknowledged":false,"renewalIntent":"Renew"}
File:  - Line 3346 - Msg: [CdvPurchase.Validator] DEBUG: Validation requests=2 responses=2
File:  - Line 3346 - Msg: [CdvPurchase.Validator] DEBUG: Validation requests=2 responses=3
File:  - Line 3346 - Msg: [CdvPurchase.Validator] DEBUG: Validation requests=2 responses=4
File:  - Line 3346 - Msg: [CdvPurchase.Validator] DEBUG: Register a new verified receipt.
File:  - Line 3346 - Msg: [CdvPurchase] DEBUG: Calling callback: type=verified() name=#3d888cf5da4aee068923ead0c18caefa reason=payload_ok
File:  - Line 3346 - Msg: [CdvPurchase.AdapterListener] DEBUG: receiptsUpdated: [{"platform":"android-playstore","transactions":[{"className":"Transaction","transactionId":"GPA.3323-6952-2941-83071","state":"finished","products":[{"id":"tarottaso3"}],"platform":"android-playstore","nativePurchase":{"orderId":"GPA.3323-6952-2941-83071","packageName":"fi.heliad.tarottulkinta","productId":"tarottaso3","purchaseTime":1735908162961,"purchaseState":0,"purchaseToken":"cnfcaajbfbiojkkkblfhehdl.AO-J1Oy7-Ym6WUBMPviYzy8UGRJAJbvVmdho4W7UXMj9gKzTL_597OawBO2Mi3acdi1qTLf8svHdtIRNcjx4G-UCvIPt9LrG6RuKRDZfaipgwDfJ_YksPgI","quantity":1,"autoRenewing":true,"acknowledged":false,"productIds":["tarottaso3"],"getPurchaseState":1,"developerPayload":"","accountId":"","profileId":"","signature":"Mig67lrzSxrGprdvfczVl5kr6eIcHbDM+eIdW6Bq7sXdDb1jmOYulq0Tiqy2QoUPVaJtMKjN4pkSbCdDDBn7oDumxekc0TKYgsaQeMjLWpgLWza6kabUujR9hvIBdyMuEmK+Stqm9jzX9UIKFOo/nyvU/26HnYZ5PxziuDJKpXsyMZ5evFz11BwXoz947jSox65YOFth2joodUWnGncrj0pekxJeH3wvtKtapQXl1//G+l/5M7mePREqnaPKKBp6FdjZWMJhyU7SsKmGdJWVW6h5J13s/C8Br/f5ewBPyDiRDOr3AYMvDvqOKWrpE8lngGD3PiqhUwcJ5n/mcemmMA==","receipt":"{\"orderId\":\"GPA.3323-6952-2941-83071\",\"packageName\":\"fi.heliad.tarottulkinta\",\"productId\":\"tarottaso3\",\"purchaseTime\":1735908162961,\"purchaseState\":0,\"purchaseToken\":\"cnfcaajbfbiojkkkblfhehdl.AO-J1Oy7-Ym6WUBMPviYzy8UGRJAJbvVmdho4W7UXMj9gKzTL_597OawBO2Mi3acdi1qTLf8svHdtIRNcjx4G-UCvIPt9LrG6RuKRDZfaipgwDfJ_YksPgI\",\"quantity\":1,\"autoRenewing\":true,\"acknowledged\":false}"},"purchaseId":"cnfcaajbfbiojkkkblfhehdl.AO-J1Oy7-Ym6WUBMPviYzy8UGRJAJbvVmdho4W7UXMj9gKzTL_597OawBO2Mi3acdi1qTLf8svHdtIRNcjx4G-UCvIPt9LrG6RuKRDZfaipgwDfJ_YksPgI","purchaseDate":"2025-01-03T12:42:42.961Z","isPending":false,"isAcknowledged":false,"renewalIntent":"Renew"}]}]
File:  - Line 3346 - Msg: [CdvPurchase.AdapterListener] DEBUG: processing 1 updated receipts

Expected behavior

The new subscription should replace the previous sub.

System Info

Output of cordova info.
`-- cordova-plugin-purchase@13.12.1

@Dexus
Copy link
Collaborator

Dexus commented Jan 3, 2025

fix format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants