#Dan Kicks

1 messages · Page 1 of 1 (latest)

fallen bluffBOT
rocky quest
#

Good question. Checking in to how to differentiate this and will get back to you. I think the financial connections account will be a reliable indicator but am double checking.

#

Can you send me the ID from a SetupIntent or event related to a Bank PM that was set up via microdeposits? It may be helpful to have as a reference

mystic stirrup
#

{
"id": "evt_1NlGqrKaWZ8GiqwCyoOVP73i",
"object": "event",
"api_version": "2020-03-02",
"created": 1693511304,
"data": {
"object": {
"id": "seti_1NlGfOKaWZ8GiqwCGeuDJo5P",
"object": "setup_intent",
"application": null,
"automatic_payment_methods": null,
"cancellation_reason": null,
"client_secret": "seti_1NlGfOKaWZ8GiqwCGeuDJo5P_secret_OYNQyJ9a1iJZLUm8R8ISlaQ6MYSkDNI",
"created": 1693510594,
"customer": "cus_NWHk7vjnPq6eRS",
"description": null,
"flow_directions": null,
"last_setup_error": null,
"latest_attempt": "setatt_1NlGoeKaWZ8GiqwCkqNQzqQt",
"livemode": false,
"mandate": "mandate_1NlGoeKaWZ8GiqwCQvTQqR2N",
"metadata": {
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1NlGoeKaWZ8GiqwCcDIEu2ZA",
"payment_method_options": {
"card": {
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
},
"us_bank_account": {
"financial_connections": {
"permissions": [
"payment_method",
"balances"
],
"prefetch": [

        ]
      },
      "verification_method": "automatic"
    }
  },
  "payment_method_types": [
    "us_bank_account",
    "card"
  ],
  "single_use_mandate": null,
  "status": "succeeded",
  "usage": "off_session"
}

},
"livemode": false,
"pending_webhooks": 2,
"request": {
"id": "req_Xl3Jv9H5S7ok5l",
"idempotency_key": "989ac7e5-ca06-4bb7-aef4-f08d3e15ff7f"
},
"type": "setup_intent.succeeded"
}

#

test env

rocky quest
#

Thank you! Still looking and will get back to you with what I can find

#

Also for context can you tell me a bit about the behavior you want to perform when the acount was verified via microdeposits? I can also check in to if there is an easier way to do that through our API

#

I'm not finding a way to differentiate other than checking if financial_connections_account is null either. I will double check with my colleagues but I think that may be the best way to determine this with the API at the moment.

mystic stirrup
#

So when a user has to verify, obviously they need to leave our payment flow. In the other happy path case where they can connect their account, they add their bank, and then theres a separate step in our flow to confirm payment. However, in the verification path (with could take a couple days), we don't require them to come back - we just immediately debit. One hack would be just be like - if theres an hour gap between setup intent created, and succeeded, it must be verification flow. Or - i could require the setup intent's "Next step" or whatever which will show verification needed, but would just be more data to wrangle.

#

i could record****

fallen bluffBOT
rocky quest
#

Gotcha. It does look like the absence of financial_connections_account is the most straightforward way to check this at the moment. The next action is visible in setup_intent.requires_action so in that event you could potentially set metadata on your PaymentMethod and then refer to that metadata later.

#

I will put in feedback that this would be helpful info to surface on the PM itself but I think at the moment your best bet would be one of those workarounds