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

Rename to Web Billing #2094

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.revenuecat.webpurchaseredemptionsample

object Constants {
// Put API key for the android app associated to the same project as your RCBilling project
// Put API key for the android app associated to the same project as your Web Billing app
const val API_KEY = "api_key"

// Put the same entitlement ID that the purchase unlocks in your RCBilling project
// Put the same entitlement ID that the purchase unlocks in your Web Billing project
const val ENTITLEMENT_ID = "catServices"
}
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ enum class Store {
AMAZON,

/**
* For entitlements granted via RC Billing.
* For entitlements granted via RevenueCat's Web Billing.
*/
@SerialName("rc_billing")
RC_BILLING,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class BackendRedeemWebPurchaseTest {
val responseBody = """
{
"code": 7849,
"message": "Invalid RevenueCat Billing redemption token."
"message": "Invalid Web Billing redemption token."
}
""".trimIndent()
mockHttpResult(responseCode = RCHTTPStatusCodes.BAD_REQUEST, responseBody = responseBody)
Expand Down