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

IOS: Downgrade subscription #2742

Open
Mihai-github opened this issue May 15, 2024 · 6 comments
Open

IOS: Downgrade subscription #2742

Mihai-github opened this issue May 15, 2024 · 6 comments

Comments

@Mihai-github
Copy link

Description

Trying to downgrade a subscription is not working, but upgrading works fine.

Expected Behavior

Be able to upgrade and downgrade subscriptions.

Screenshots

image

image

Environment:

  • react-native-iap: 9.0.0
  • react-native: 0.67.5
  • Platforms (iOS, Android, emulator, simulator, device): iOS

To Reproduce
Steps to reproduce the behavior:

Both subscriptions are in the same group, and have the same subscription duration of 1 month but they have different prices

  1. Initially buy a subscription with a higher price.
  2. Downgrade to the lower price subscription

While downgrading and passing to the requestSubscription promise the SKU for the cheaper subscription an error occurred which also triggered the purchaseErrorListener.

This is the error from the purcahseErrorListener:

{
    "responseCode": "0",
    "code": "E_UNKNOWN",
    "debugMessage": "An unknown error occurred",
    "message": "An unknown error occurred",
    "productId": "_______"
}

[Optional] Additional Context

While debugging and inspecting my SANDBOX account, I noticed an interesting discrepancy: although the code caught an error during the subscription downgrade process, my account displays the subscription as active, despite the failure.

@NoatToan
Copy link

I encounter same issue. :(

Before everything works fine.

@NoatToan
Copy link

From my side.
I can do the purchase.

Only error get the error
"Error: An unknown error occurred"
from requestSubscription when I try to downgrade

"react-native": "0.72.4",
"react-native-iap": "^12.13.1",

@mharrison-nzme
Copy link

From my side. I can do the purchase.

Only error get the error "Error: An unknown error occurred" from requestSubscription when I try to downgrade

"react-native": "0.72.4", "react-native-iap": "^12.13.1",

React Native: 0.67.4
React-native-iap: 12.13.1 on StoreKit 2

Experiencing the same unknown error.
[Error: Purchased failed for sku:*Product ID Here*: Unable to Complete Request]

In my case, trying to downgrade from an Annual duration sub to a monthly duration - within the same subscription group.
Upgrading the same products works fine.

This was working on our previous setup using [email protected] on StoreKit 1

@NoatToan
Copy link

Do anyone think this is the issue from Apple's sandbox env :D

@SabahatRathore
Copy link

SabahatRathore commented Jun 4, 2024

{"error": [Error: Purchased failed for sku:: Unable to Complete Request], "success": false}
i am facing same error.
Do you find any solution .@mharrison-nzme

@ivannzme
Copy link

ivannzme commented Jun 5, 2024

tried the below versions of the library:

  • 12.13.2
  • 12.13.1
  • 12.13.0
  • 12.12.2
  • 12.12.1
  • 12.12.0
  • 12.11.0

React Native: 0.67.4

For the above, I am getting the same error message: [Error: Purchased failed for name_of_the_product: Unable to Complete Request]

Only getting this with iOS, android seems to be working as expected.

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

5 participants