Take purchase token straight from payment result during linking to subscriber id.

This commit is contained in:
Alex Hart
2025-03-07 16:47:13 -04:00
committed by Greyson Parrelli
parent 1cc3e16d1a
commit 6d115a912d
4 changed files with 14 additions and 20 deletions

View File

@@ -13,7 +13,7 @@ import org.thoughtcrime.securesms.database.model.databaseprotos.InAppPaymentData
*/
class InAppPaymentError(
val inAppPaymentDataError: InAppPaymentData.Error
) : Exception() {
) : Exception(inAppPaymentDataError.toString()) {
companion object {
fun fromDonationError(donationError: DonationError): InAppPaymentError? {
val inAppPaymentDataError: InAppPaymentData.Error? = when (donationError) {