Skip to content

Commit

Permalink
android
Browse files Browse the repository at this point in the history
  • Loading branch information
dtroupe-plaid committed Jun 25, 2024
1 parent fdde74c commit 34d09fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions android/src/main/java/com/plaid/PlaidModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import com.plaid.link.configuration.LinkTokenConfiguration
import com.plaid.link.event.LinkEvent
import com.plaid.link.exception.LinkException
import com.plaid.link.result.LinkResultHandler
import com.plaid.link.SubmissionData
import org.json.JSONException
import org.json.JSONObject

Expand Down Expand Up @@ -76,6 +77,14 @@ class PlaidModule internal constructor(reactContext: ReactApplicationContext) :
return builder.build()
}

@ReactMethod
override fun submit(phoneNumber: String?) {
if (plaidHandler != null) {
val submissionData = SubmissionData(phoneNumber = phoneNumber)
plaidHandler?.submit(submissionData)
}
}

@ReactMethod
override fun create(
token: String,
Expand Down

0 comments on commit 34d09fe

Please sign in to comment.