stripe payment gateway android

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 37

  • @MohamedAchich-q7q
    @MohamedAchich-q7q День назад

    lateinit clientSecret not initialized in paymentFlow()

  • @juyelmajumder5725
    @juyelmajumder5725 Год назад +1

    a lot off things has changed in adapty. please make another video.

  • @MusicRemix-eh2pk
    @MusicRemix-eh2pk Год назад +2

    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

    • @PapayaCoders
      @PapayaCoders  Год назад

      can you do for me? If u want connect on instagram

  • @MuhammadUsman-ck2ku
    @MuhammadUsman-ck2ku 3 месяца назад

    I want to integrate it in FYP but i have used java so please make a tutorial on it

  • @rajiv1521
    @rajiv1521 Год назад

    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

    • @rajiv1521
      @rajiv1521 Год назад

      @hostingvosting6107 lekin bro google play console me coupon code ka koi option n dikh rha

  • @juyelmajumder5725
    @juyelmajumder5725 Год назад

    v6 wala in app subscription with ads remove wala video banaiye please.

  • @sujit_ghimire
    @sujit_ghimire 6 месяцев назад

    how to do this inside jetpack compose function ?

  • @codebotog
    @codebotog Год назад

    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

  • @jaspalsingh-mv5xh
    @jaspalsingh-mv5xh 8 месяцев назад

    Sir usd payment ni ho raha something went wrong likha aata hai

  • @NaimilBanjo
    @NaimilBanjo Год назад +1

    Bro make Cricket Live score app development kotlin/java series, i am waiting to 1 year please bro....i am waiting to your reply....🙏🙏

    • @PapayaCoders
      @PapayaCoders  Год назад

      For that u have to buy api and to use it i already created videos on api so check it

    • @NaimilBanjo
      @NaimilBanjo Год назад

      @@PapayaCoders bro used free api for some basic features but make this series otherwise you make cricket team prediction app series pls...

  • @rahul21st
    @rahul21st 5 месяцев назад +1

    Bhai same kiya last me published key wala aur client_secret bhi lekin payment popup aate hi chala ja raha hai

    • @srushtipokiya
      @srushtipokiya 5 месяцев назад

      Same Issue you Got Anu Suggetion Please Help me

    • @PapayaCoders
      @PapayaCoders  5 месяцев назад

      Make sure you have done the code correctly

    • @rahul21st
      @rahul21st 5 месяцев назад

      @@srushtipokiya yes i solved,
      In customer model add secret and use secret in getephemeral function replace with id

    • @srushtipokiya
      @srushtipokiya 5 месяцев назад

      @@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

    • @rahul21st
      @rahul21st 5 месяцев назад

      @@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

  • @syedzaid4346
    @syedzaid4346 Год назад

    sir apne vpn service ke bare me koi video nhi banai hai. please bana dijiye is bare me bhi

  • @sairamdash17
    @sairamdash17 Год назад

    I Want To Make App Like U And Thank For All The Videos

  • @MuhammadUsman-ck2ku
    @MuhammadUsman-ck2ku 3 месяца назад

    Broh with make this tutorial in java please

  • @Anishmitkari
    @Anishmitkari Год назад

    Bhai UPI ka integrate pr bhi banao video youtube pr koi proper working tutorial nhi hai

    • @PapayaCoders
      @PapayaCoders  Год назад

      Direct UPI integration not working u have to use any payment gateway

  • @monugit9
    @monugit9 9 месяцев назад

    Getting error in logcat ->
    lateinit clientSecret not initialized in paymentFlow()
    Plz help anybody

    • @PapayaCoders
      @PapayaCoders  9 месяцев назад

      Maybe you are not Initializing it

    • @monugit9
      @monugit9 9 месяцев назад

      @@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()
      }
      }
      }

    • @gauravsahni3772
      @gauravsahni3772 8 месяцев назад

      run your code using an if statement like this -
      if(::clientSecret.isInitialized()){
      //your paymentsheet call
      }

    • @Mohammed-tl2iw
      @Mohammed-tl2iw 7 месяцев назад +1

      make sure that the amount is at least USD 0.50, no matter which currency you use (eg. amount=4500 is actually 45.00)

  • @aadilkhannew
    @aadilkhannew Год назад

    GOOD WORK SIR

  • @nihalkumardwivedi7229
    @nihalkumardwivedi7229 11 месяцев назад +1

    bilkul samaj nhi aaya, totally waste

  • @sairamdash17
    @sairamdash17 Год назад

    First View