package com.revenuecat.purchases.react.ui.events import com.revenuecat.purchases.react.ui.PaywallEventKey import com.revenuecat.purchases.react.ui.PaywallEventName internal class OnPurchaseErrorEvent( surfaceId: Int, viewTag: Int, private val error: Map ) : PaywallEvent(surfaceId, viewTag) { override fun getPaywallEventName() = PaywallEventName.ON_PURCHASE_ERROR override fun getPayload() = mapOf(PaywallEventKey.ERROR to error) }