#Austin_Rowe - Connect Payment Intent

1 messages · Page 1 of 1 (latest)

west marlin
#

HI 👋

stuck crystal
#

The error code is resource_missing
In the logs I don't see any requests...

#

Is it possible that in the event of the resource_missing error there's no payment intent created?

west marlin
#

What this usually means is that you did include a Connect Account header on one request but did not on another

#

So the Payment Intent got created on one account but the attempt to access it is occurring from another account's context

stuck crystal
#

I actually wasn't in test mode lol
req_id is req_ey4lQD6KZHA4wX

#

I think when the resource is missing that the request doesn't create a payment_intent at all

west marlin
#

Okay so the error message is what was critical and what I was after

#

No such PaymentMethod: 'pm_1LQBMTEaQ3KAKJYlK9PrNFGp'; OAuth key or Stripe-Account header was used but API request was provided with a platform-owned payment method ID. Please ensure that the provided payment method matches the specified account.

#

That makes it pretty clear. The payment method does not exist on the account this payment intent is being created on

stuck crystal
#

Yes, correct! I was testing skipping cloning the payment method! I think if it hasn't been properly cloned for the connected account then it doesn't create the pi at all is why it wasn't showing up in the err response

#

Thanks for the help @west marlin

west marlin
#

Sure thing! Happy to do it. Based on the full error message that is returned I would recommend logging the whole thing as there are many resources provided to help you find an answer

#

If you look at the whole error object:

error: {
    code: "resource_missing",
    doc_url: "https://stripe.com/docs/error-codes/resource-missing",
    message: "No such PaymentMethod: 'pm_1LQBMTEaQ3KAKJYlK9PrNFGp'; OAuth key or Stripe-Account header was used but API request was provided with a platform-owned payment method ID. Please ensure that the provided payment method matches the specified account.",
    param: "payment_method",
    type: "invalid_request_error"
  }