#glorious_pomelo_28277
1 messages · Page 1 of 1 (latest)
I am using stripe for my android app (kotlin based app). I am creating connect custom account along with Tap-To-Pay feature. Everything is working fine. The issue is whenever I complete a transaction with TTP, that transaction goes into Stripe's Payments section. But I want it in connect custom account. Please guide me on this
Could you please share the PaymentIntent ID pi_xxx?
okay let me give me a second
pi_3O7HLEA1ElCzYWXL0hLPXBFS
That's the PaymentIntentId
I understand you're looking to create a Transfer to your Connected account, right? I see you're using transfer_group parameter.
Have you looked at any of these guides?
You are using transfer_group, but you should use transfer_data.destination instead.
Can you please provide me reference code in kotlin?
That's the code I am using to create Payment Intent
val params = PaymentIntentParameters.Builder()
.setAmount(amount)
.setCurrency("aud") .setOnBehalfOf("acct_1NrggKPOcu7JpYTZ") .setTransferGroup("acct_1NrggKPOcu7JpYTZ") .setCaptureMethod(CaptureMethod.Automatic)
.build()
You can see an example in Java in this article, however, I don't know how Kotlin works, as we don't have an official backend library for Kotlin: https://stripe.com/docs/connect/destination-charges?lang=java
Okay thanks
Happy to help.