Skip to content

Commit bba0653

Browse files
committed
Remove deprecated present method
1 parent 2cb7640 commit bba0653

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

payments-core/src/main/java/com/stripe/android/googlepaylauncher/GooglePayPaymentMethodLauncher.kt

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@ import kotlinx.coroutines.flow.first
3131
import kotlinx.coroutines.launch
3232
import kotlinx.parcelize.Parcelize
3333
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
4434

4535
/**
4636
* 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(
177167
}
178168
}
179169

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-
208170
/**
209171
* Present the Google Pay UI.
210172
*

0 commit comments

Comments
 (0)