Razorpay android SDK集成问题

Razorpay android SDK集成问题,android,kotlin,payment-gateway,razorpay,Android,Kotlin,Payment Gateway,Razorpay,在签出对象的JSON中使用订单id时,会发生错误 我得到的错误是: 06-23 14:08:44.132 E/PaymentActivity:166:提供的id不存在 这包括: onPaymentError(code: Int, response: String?, data: PaymentData?) PaymentResultWithDataListener的方法 起始付款方式为: private fun startPayment(orderId: Long, paymentGatew

在签出对象的JSON中使用
订单id
时,会发生错误

我得到的错误是: 06-23 14:08:44.132 E/PaymentActivity:166:提供的id不存在

这包括:

onPaymentError(code: Int, response: String?, data: PaymentData?) 
PaymentResultWithDataListener的方法

起始付款方式为:

private fun startPayment(orderId: Long, paymentGateway: PaymentGateway) {
        val checkout = Checkout()
        checkout.setImage(R.drawable.lifcare_logo)
        checkout.setFullScreenDisable(true)
        try {
            val options = JSONObject()
            options.put("name", "Name")
            options.put("description", orderId.toString())
            options.put("currency", "INR")
            options.put("amount", paymentGateway.amount.times(100))
            options.put("order_id", paymentGateway.refTransactionId)

            val prefill = JSONObject()
            prefill.put("email", "EmailID")
            prefill.put("contact", "Number")
            prefill.put("method", paymentGateway.subMethod?.name)

            options.put("prefill", prefill)
            options.put("theme", JSONObject("{color: '#7cb342'}"))
            checkout.open(this, options)
        } catch (e: Exception) {
            Timber.e(e, "Cannot pay right now!!")
        }
    }
参考交易id为:“参考交易id”:“订单AQjijq5Fj4lg8m”


如果未使用
order\u id
,则SDK工作正常<代码>订单id不知何故造成了问题。

我可以知道您使用的号码吗?
它不适用于像“99999999”这样的默认数字


该数字应为有效数字。

尝试添加notes键入选项参数,如下所示:

jsonObject.put("order_id", "12345")
jsonObject.put("subscription_id", "50214")
jsonObject.put("user_id", "101")
options.put("notes", jsonObject)                 

成功了。Razorpay在
onPaymentError
方法中未给出有效的
响应。