#Giovanni-PaymentIntent-Android

1 messages · Page 1 of 1 (latest)

cyan cave
#

Hey there

#

Taking a look

edgy nest
#

thank you

cyan cave
#

Okay so sounds like you may have looked into the PaymentIntent's Builder class and went down a bit of a rabbit hole here. Really this isn't what this is designed for, and not something you can utilize. This class is just for some work that the Android SDK does under the hood. You need to be creating the PaymentIntent server-side and then passing the client secret to your client to use with the Android SDK. You can't create PaymentIntents with the Android SDK.

#

Wait... are you using the Android Terminal SDK?

edgy nest
#

The error message I was getting as can be seen on my screenshot was “Usage of Kotlin internal declaration from different module”. Also, just to add that I am using Java as the programming language for development and not Kotlin.

Android SDK version 2.13.0

cyan cave
#

Okay so you are using the Terminal SDK. Sorry, I thought this was in reference to accepting online payments.

#

One sec, let me take another look.

edgy nest
#

ok thanks

cyan cave
#

Okay yeah so capture_method is a private param in the Android Terminal SDK. The reason for this is that Terminal payments have to be manually captured — automatic capture isn't supported. So you can just remove that line completely and your PaymentIntent will utilize manual capture here by default.

#

You will notice we only discuss setting the capture_method for server-side PaymentIntent creation

#

In terms of it being the only option here (you can't use automatic capture)

edgy nest
#

ok got it thank you