#Svenson

1 messages · Page 1 of 1 (latest)

hoary pecanBOT
final dust
#

I can try! What issues are you running in to?

bitter merlin
#

hey, thank you!

#

I am trying to implement it as a plugin for capacitor app

#

I am getting this

#

this is my implementation

#

I am new to Java so sorry if I am making some stupid mistake

#

I do not program in Java usually

final dust
#

You're using Capacitor? Not something we officially support

bitter merlin
#

yeah, but does this Java code looks okay or I am missing something?

#

I dont see a http req for Ephemeral keys, unlike I see it in swift documentation for adding to Apple Wallet

final dust
#

Your code looks ok I guess. Are you able to provide more context from the exception? There's not much detail there, nothing specific to Stripe anyway

bitter merlin
#

I have that on the backend, but when do I call that req from clinet?

#

before calling this function for provision or?

bitter merlin
#

I dont think it get's there

#

app crashes after a click

tribal hedge
#

what are the logs in logcat when it crashes?

bitter merlin
#

"java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)"

" Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.x.plugins.Wallet.Wallet.startP()' on a null object reference"

tribal hedge
#

hmm, I mean there are multiple things that could be null there. You pass this but that Wallet class does not have a constructor. You pass an empty string instead of an instance of a class that implements the EphemeralKeyProvider interface

bitter merlin
#

yeah, I notice that about keyProvider, dont know when to call that req for ephKeys. I guess before calling provision right?

#

what would I place as constructor

tribal hedge