@@ -31,16 +31,6 @@ import kotlinx.coroutines.flow.first
31
31
import kotlinx.coroutines.launch
32
32
import kotlinx.parcelize.Parcelize
33
33
import java.util.Locale
34
- import kotlin.Boolean
35
- import kotlin.Deprecated
36
- import kotlin.IllegalStateException
37
- import kotlin.Int
38
- import kotlin.Long
39
- import kotlin.ReplaceWith
40
- import kotlin.String
41
- import kotlin.Throwable
42
- import kotlin.also
43
- import kotlin.check
44
34
45
35
/* *
46
36
* A drop-in class that presents a Google Pay sheet to collect a customer's payment details.
@@ -177,34 +167,6 @@ class GooglePayPaymentMethodLauncher @AssistedInject internal constructor(
177
167
}
178
168
}
179
169
180
- /* *
181
- * Present the Google Pay UI.
182
- *
183
- * An [IllegalStateException] will be thrown if Google Pay is not available or ready for usage.
184
- *
185
- * @param currencyCode ISO 4217 alphabetic currency code. (e.g. "USD", "EUR")
186
- * @param amount Amount intended to be collected. A positive integer representing how much to
187
- * charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100,
188
- * a zero-decimal currency). If the amount is not yet known, use 0.
189
- * @param transactionId A unique ID that identifies a transaction attempt. Merchants may use an
190
- * existing ID or generate a specific one for Google Pay transaction attempts.
191
- * This field is required when you send callbacks to the Google Transaction Events API.
192
- */
193
- @Deprecated(
194
- message = " Use the present method that takes a Long as the amount instead." ,
195
- replaceWith = ReplaceWith (
196
- expression = " present(currencyCode, amount.toLong(), transactionId)" ,
197
- ),
198
- )
199
- @JvmOverloads
200
- fun present (
201
- currencyCode : String ,
202
- amount : Int ,
203
- transactionId : String? = null
204
- ) {
205
- present(currencyCode, amount.toLong(), transactionId)
206
- }
207
-
208
170
/* *
209
171
* Present the Google Pay UI.
210
172
*
0 commit comments