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

Fixed the payment pop-up window issue #2534

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DaVinci9196
Copy link
Contributor

Fixed the issue that the payment pop-up page could not be displayed after clicking on the payment.
e.g. uk.co.nationalrail.google

@@ -232,7 +232,8 @@ class InAppBillingServiceImpl(private val context: Context) : IInAppBillingServi
developerPayload: String?
): Bundle {
if (Log.isLoggable(TAG, Log.DEBUG)) Log.d(TAG, "getBuyIntent(apiVersion=$apiVersion, packageName=$packageName, sku=$sku, type=$type, developerPayload=$developerPayload)")
return resultBundle(BillingResponseCode.BILLING_UNAVAILABLE, "Not yet implemented")
return runCatching { getBuyIntentExtraParams(apiVersion, packageName!!, sku!!, type!!, developerPayload, null) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it necessary to catch exceptions here? Shouldn't they be catched in getBuyIntentExtraParams if that was necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not certain whether the passed parameter is empty. Temporarily catch the exception here to avoid abnormal crash.

@mar-v-in mar-v-in added this to the 0.3.4 milestone Sep 24, 2024
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

Successfully merging this pull request may close these issues.

2 participants