#twafiq_code

1 messages ¡ Page 1 of 1 (latest)

jolly peakBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1382158331707392083

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

wanton carbon
#

Error message

#
 Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.collections.CollectionsKt___CollectionsKt.intersect, parameter
clever cypress
#

Hmm there should be more stacktrace thant that

wanton carbon
#

This is the object being sent from my server:

PaymentIntent(id=pi_3RYbCsA5TqGV3t5q00AHULe0, amount=1000, amountCapturable=0, amountReceived=0, application=null, applicationFeeAmount=0, canceledAt=0, cancellationReason=null, captureMethod=null, charges=ChargesList(data=[]), clientSecret=null, confirmationMethod=null, created=1749596630, currency=usd, customer=null, description=Donation via Nizam for NIZAM MASJID, invoice=null, lastPaymentError=null, livemode=true, metadata={designation_id=7e8bbbb1-b97a-413f-8031-00e6abd6dff6, device_id=cbba3986-3657-497e-82c8-0cdfc29d543f, fund_id=7e8bbbb1-b97a-413f-8031-00e6abd6dff6, masjid_id=88312347-dd3c-468d-ac62-e5d7a2da8e32}, onBehalfOf=null, paymentMethodUnion=null, receiptEmail=null, review=null, setupFutureUsage=null, statementDescriptor=null, status=null, transferGroup=null, amountDetails=null, amountTip=null, statementDescriptorSuffix=null, paymentMethodOptions=null, stripeAccountId=null, paymentMethodTypes=null, nextAction=null, amountRequested=null)

this is the object being sent from the server
clever cypress
#

The PI looks normal to me. It has a Stripe Account header btw (you are using Destination Charge an on-behalf-of)

#

From which code did you get the error? ie. collect payment or discover reader or something elese?

wanton carbon
#

i am getting the error when trying to call collect payment method on the terminal

#
    fun collectPaymentMethod(paymentIntent: PaymentIntent) {
        viewModelScope.launch(Dispatchers.IO) {
            try {
                val config = CollectConfiguration.Builder().build()
                activeCollection.value = terminalInstance.collectPaymentMethod(
                    paymentIntent,
clever cypress
#

Um I have no idea... have you succeessfully called collectPaymentMethod before?