#atishgoswami

1 messages · Page 1 of 1 (latest)

main solsticeBOT
hasty stone
#

Hm interesting. Don't see that you passed payment method data in that request

#

Looking

languid totem
#

This is the full request and response

{
  "use_stripe_sdk": "true",
  "return_url": "https://app.example.test/quickpay?allow=ACH&orderId=MGW000091310",
  "payment_method_options": {
    "us_bank_account": {
      "verification_method": "instant",
      "setup_future_usage": "on_session"
    }
  },
  "payment_method": "pm_1NYXprKjNtglv777K3hOmQ7K",
  "mandate_data": {
    "customer_acceptance": {
      "type": "online",
      "online": {
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0",
        "ip_address": "172.22.X.X"
      }
    }
  }
}
#
{
  "error": {
    "code": "payment_method_invalid_parameter",
    "doc_url": "https://stripe.com/docs/error-codes/payment-method-invalid-parameter",
    "message": "Payment method data is not allowed when payment_method_options[us_bank_account][verification_method]=instant is used.",
    "param": "payment_method",
    "payment_intent": {
      "id": "pi_3NYXpsKjNtglv7771BLL8lQn",
      "object": "payment_intent",
      "amount": 132000,
      "amount_capturable": 0,
      "amount_details": {
        "tip": {
        }
      },
      "amount_received": 0,
      "application": null,
      "application_fee_amount": null,
      "automatic_payment_methods": {
        "allow_redirects": "always",
        "enabled": true
      },
      "canceled_at": null,
      "cancellation_reason": null,
      "capture_method": "automatic",
      "charges": {
        "object": "list",
        "data": [
        ],
        "has_more": false,
        "total_count": 0,
        "url": "/v1/charges?payment_intent=pi_3NYXpsKjNtglv7771BLL8lQn"
      },
    ....  ,
    "request_log_url": "https://dashboard.stripe.com/test/logs/req_54odDI9i2Y41tQ?t=1690478328",
    "type": "invalid_request_error"
  }
}
#

It work when I remove the following params:
"verification_method": "instant",
But it starts using the micro-deposit follow which I don't want to use/bypass using instant verification

hasty stone
#

Oh I think it's because you're already passing a payment method id

#

Why do you pass a pm_ id and also try to collect bank account details?

languid totem
#

what should I change in the payload to make it work ?

hasty stone
#

Oh

#

Missed that you're a magento user

#

Yeah you'll need to reach out to our support team about that: https://support.stripe.com/contact and mention that you're using the magento 2 connector. We have folks in support that help with that integration specifically