๐Ÿ“ฆ manideepk90 / react-native-hyperswitch-sdk

๐Ÿ“„ GooglePayConfig.kt ยท 27 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27package io.hyperswitch.payments.googlepaylauncher

import android.os.Parcelable
import io.hyperswitch.payments.GooglePayEnvironment
import kotlinx.parcelize.Parcelize

// Assuming GooglePayEnvironment is accessible from its original location or moved appropriately.
// It's typically defined in the same package or within GooglePayPaymentMethodLauncher.kt

@Parcelize
data class Config(
    val googlePayConfig: GooglePayPaymentMethodLauncher.Config
) : Parcelable {
    constructor(
        environment: GooglePayEnvironment,
        merchantCountryCode: String,
        merchantName: String
    ) : this(
        GooglePayPaymentMethodLauncher.Config(
            environment,
            merchantCountryCode,
            merchantName,
            false,
            GooglePayPaymentMethodLauncher.BillingAddressConfig()
        )
    )
}