Your documentation describes that you get Token objects from the SDK when using Google Pay. Would be a cool enhancement to also be able to retrieve a Source besides a Token (or maybe replace Token?).
Answer SAV stripe:
Thanks for writing in today. I'm Hasani, and I will be happy to answer your questions about our GooglePay API.
You are right that there is no information on our GooglePay documentation that explains how to make a source using the token made in GooglePay. That said, you can still do it by passing the token to in our API call to create the source object. For your convenience, you will find the API call to create a source object in the link below:
@KWestra you receive a token from Google Pay because that's how Google has decided to integrate. You can always convert it to a Source by passing the token to the createSource()-method; however, you'll likely need to build the parameters by hand. Isn't too bad though. If you decide you'd like to try that, just let me know and I'd be happy to help you along.
@anelder-stripe: I'd love to know. I tried this: but this gives an exception that card[number] is required.
val paymentData = PaymentData.getFromIntent(data)
val stripeToken: Token? = Token.fromString(paymentData.paymentMethodToken!!.token)
stripe.createSource(SourceParams.createCardParams(stripeToken.card), object : SourceCallback { // TODO }

Hi @KWestra,
I'm so sorry for the long delay on this - what you need to do is create it with custom params. You can see an example of how to do it here in the highlighted example code here:
https://github.com/stripe/stripe-android/blob/6670d21b18904b3adf53a3fe1a1ca897b847efc8/stripe/src/test/java/com/stripe/android/StripeTest.java#L279
Most helpful comment
Hi @KWestra,
I'm so sorry for the long delay on this - what you need to do is create it with custom params. You can see an example of how to do it here in the highlighted example code here:
https://github.com/stripe/stripe-android/blob/6670d21b18904b3adf53a3fe1a1ca897b847efc8/stripe/src/test/java/com/stripe/android/StripeTest.java#L279