Respected sir maine google in app purchase ko add kiya h apne app me lekin mujhe kuch festival pr discount dena h price me to kaise de skte h ya coupon code ka koi system ho usme to wo bhi bata skte h ispe ek video bnaye please. And reply please
@@PapayaCoders yes my code is correctly... i have the issue in ephemeral_keys...Now i am replace id to secret in ephemeral_keys response and PaymentSheet Open but when i click On Pay Button...I get Somthing Went Wrong Error
@@srushtipokiya your welcome and this issue is for create account in not add full billing details please view other videos for account creation in detail
lateinit clientSecret not initialized in paymentFlow()
a lot off things has changed in adapty. please make another video.
Hey bro I'm from Vietnam and I want you to put the subtitles in the video so it will help me understand better. Thanks
can you do for me? If u want connect on instagram
I want to integrate it in FYP but i have used java so please make a tutorial on it
Respected sir maine google in app purchase ko add kiya h apne app me lekin mujhe kuch festival pr discount dena h price me to kaise de skte h ya coupon code ka koi system ho usme to wo bhi bata skte h ispe ek video bnaye please.
And reply please
@hostingvosting6107 lekin bro google play console me coupon code ka koi option n dikh rha
v6 wala in app subscription with ads remove wala video banaiye please.
how to do this inside jetpack compose function ?
Sir please ek video banao "whatsapp ka online and last seen system kaise kaam karta hai our ham use kaise bana sakte hai java se
Sir usd payment ni ho raha something went wrong likha aata hai
Bro make Cricket Live score app development kotlin/java series, i am waiting to 1 year please bro....i am waiting to your reply....🙏🙏
For that u have to buy api and to use it i already created videos on api so check it
@@PapayaCoders bro used free api for some basic features but make this series otherwise you make cricket team prediction app series pls...
Bhai same kiya last me published key wala aur client_secret bhi lekin payment popup aate hi chala ja raha hai
Same Issue you Got Anu Suggetion Please Help me
Make sure you have done the code correctly
@@srushtipokiya yes i solved,
In customer model add secret and use secret in getephemeral function replace with id
@@PapayaCoders yes my code is correctly... i have the issue in ephemeral_keys...Now i am replace id to secret in ephemeral_keys response and PaymentSheet Open but when i click On Pay Button...I get Somthing Went Wrong Error
@@srushtipokiya your welcome and this issue is for create account in not add full billing details please view other videos for account creation in detail
sir apne vpn service ke bare me koi video nhi banai hai. please bana dijiye is bare me bhi
I Want To Make App Like U And Thank For All The Videos
Keep learning you will for sure
Broh with make this tutorial in java please
Bhai UPI ka integrate pr bhi banao video youtube pr koi proper working tutorial nhi hai
Direct UPI integration not working u have to use any payment gateway
Getting error in logcat ->
lateinit clientSecret not initialized in paymentFlow()
Plz help anybody
Maybe you are not Initializing it
@@PapayaCoders No, it initiatzed in getPaymentIntent(), can you check and guide
class MainActivity : AppCompatActivity() {
lateinit var paymentSheet: PaymentSheet
lateinit var customerId : String
lateinit var ephemeralKey : String
lateinit var clientSecret : String
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
PaymentConfiguration.init(this, PUBLISHABLE_KEY)
getCustomerId()
val payButton = findViewById(R.id.payBtn)
payButton.setOnClickListener{
paymentFlow()
}
paymentSheet = PaymentSheet(this, ::onPaymentSheetResult)
}
private var apiInterface = ApiUtilities.getApiInterface()
private fun getCustomerId() {
lifecycleScope.launch (Dispatchers.IO){
val res = apiInterface.getCustomer()
withContext(Dispatchers.Main){
if(res.isSuccessful && res.body()!= null){
customerId = res.body()!!.id
getEphemeralKey(customerId)
}
}
}
}
private fun getEphemeralKey(customerId: String) {
lifecycleScope.launch(Dispatchers.IO) {
val res = apiInterface.getEphemeralKey(customerId)
withContext(Dispatchers.Main) {
if (res.isSuccessful && res.body() != null) {
ephemeralKey = res.body()!!.id
getPaymentIntent(customerId, ephemeralKey)
}
}
}
}
private fun getPaymentIntent(customerId: String, ephemeralKey: String) {
lifecycleScope.launch(Dispatchers.IO) {
val res = apiInterface.getPaymentIntent(customerId)
withContext(Dispatchers.Main) {
if (res.isSuccessful && res.body() != null) {
clientSecret = res.body()!!.client_secret
Toast.makeText(this@MainActivity,"Proceed for Payment",Toast.LENGTH_SHORT).show()
}
}
}
}
private fun paymentFlow() {
paymentSheet.presentWithPaymentIntent(
clientSecret,
PaymentSheet.Configuration(
"Coding Keeda",
PaymentSheet.CustomerConfiguration(
customerId, ephemeralKey
)
)
)
}
fun onPaymentSheetResult(paymentSheetResult: PaymentSheetResult) {
// implemented in the next steps
if(paymentSheetResult is PaymentSheetResult.Completed){
Toast.makeText(this,"Payment Done",Toast.LENGTH_SHORT).show()
}
}
}
run your code using an if statement like this -
if(::clientSecret.isInitialized()){
//your paymentsheet call
}
make sure that the amount is at least USD 0.50, no matter which currency you use (eg. amount=4500 is actually 45.00)
GOOD WORK SIR
Thanks
bilkul samaj nhi aaya, totally waste
First View