#mohanad_code

1 messages ยท Page 1 of 1 (latest)

near falconBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1262646996586725427

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

ionic kiteBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

tame wharf
#

My question is related to the last Thread I had 4 days ago. Last time the support here shared a screenshot of supposdly our dashboard with Gpay turned off
We went back to the provider to check with them ( our team don't control the dashboard )
They responded back with a screen saying it's already enabled on both Test and production

#

So, under these circumstances. Is there anything else to check ?

lone shale
#

Did the google pay work after using Stripe sample app with the v20.48?

tame wharf
#

yes the google pay sample works for us

lone shale
#

Have you checked and compared the code in sample app against yours? What is not working? Can you share the error messages?

tame wharf
#

no error messages. and our code is the exact same as the documentation.

lone shale
#

Do you test your code and sample app on the same device?

tame wharf
#

Yes we did
the same phone was able to show googlePay on ur sample but not ours

lone shale
tame wharf
#

yes it's there. I also analyzed our apk to make sure it was present after building

#

I do have a question. Does the payment Intent id show which dashboard account it's pointing to ?
because Vanya did see different payment settings than our provider shared. I'm curious about that part..

lone shale
#

Could you share an example Payment Intent ID (pi_xxx) for me to double check?

near falconBOT
tame wharf
#

Here's one I just made : pi_3Pd4o9BvVjgH2WuT08kLDQgl

chrome plover
#

Hi @tame wharf I'm taking over this thread, let me take a look

#

I noticed that you set an empty string on merchantDisplayName, can you try again with a non-empty string?

tame wharf
#

it's not empty in our code. I just removed it for this thread

chrome plover
#

Can you share with me the complete intentConfiguration that you pass to presentWithIntentConfiguration ?

tame wharf
#

val intentConfig = PaymentSheet.IntentConfiguration(
mode = PaymentSheet.IntentConfiguration.Mode.Payment(
amount = (amount*100).toLong(),
currency = currency,
),
// Other configuration options...
)

    val address = PaymentSheet.Address(country = "GB")
    val billingDetails = PaymentSheet.BillingDetails(
        address = address
    )
  val  googlePayButtonConfig = PaymentSheet.GooglePayConfiguration(
        environment = PaymentSheet.GooglePayConfiguration.Environment.valueOf(BuildConfig.GOOGLE_PAY_ENV),
        countryCode = "GB",
        currencyCode = "GBP",
    )
    val configuration = PaymentSheet.Configuration(
        merchantDisplayName = "LTA",
        googlePay = googlePayButtonConfig,
        defaultBillingDetails = billingDetails
    )
    paymentSheet.presentWithIntentConfiguration(
        intentConfiguration = intentConfig,
        configuration = configuration
        // Optional configuration - See the "Customize the sheet" section in this guide
        /*configuration = PaymentSheet.Configuration(
            merchantDisplayName = "Example Inc.",
        )*/
    )
#

is this the one ?

chrome plover
#

What's the value of amount100 ?

tame wharf
#

it's supposed to be the amount * 100 but it wasn't copied with the code

chrome plover
tame wharf
#

it was 4.5 pounds

chrome plover
#

and what is the value of BuildConfig.GOOGLE_PAY_ENV in run time? is it test or prod?

tame wharf
#

Test

chrome plover
#

Ok. I don't find anything outstanding in the code that you posted. Can you share with me a sample Android app that I can run and reproduce?

tame wharf
#

hmm... let me ask for permission about that first ๐Ÿ˜