#mohanad_code
1 messages ยท Page 1 of 1 (latest)
๐ 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.
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.
- mohanad_code, 4 days ago, 19 messages
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 ?
Did the google pay work after using Stripe sample app with the v20.48?
yes the google pay sample works for us
Have you checked and compared the code in sample app against yours? What is not working? Can you share the error messages?
no error messages. and our code is the exact same as the documentation.
Do you test your code and sample app on the same device?
Yes we did
the same phone was able to show googlePay on ur sample but not ours
Has AndroidManifest.xml includes the following in your code? https://docs.stripe.com/payments/accept-a-payment?platform=android#set-up-your-integration
<application>
...
<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />
</application>
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..
Could you share an example Payment Intent ID (pi_xxx) for me to double check?
Here's one I just made : pi_3Pd4o9BvVjgH2WuT08kLDQgl
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?
it's not empty in our code. I just removed it for this thread
Can you share with me the complete intentConfiguration that you pass to presentWithIntentConfiguration ?
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 ?
What's the value of amount100 ?
it's supposed to be the amount * 100 but it wasn't copied with the code
So what's the exact amount in runtime? Can you do a logcat and confirm it's above the minimum charge amount? https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts
it was 4.5 pounds
and what is the value of BuildConfig.GOOGLE_PAY_ENV in run time? is it test or prod?
Test
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?
hmm... let me ask for permission about that first ๐