#1g0rkr
1 messages · Page 1 of 1 (latest)
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "Customer cus_OhbNbi9gLdTHES does not have card with ID pm_1NuE85JwaP6Yb9Rxv8HTF9Pd",
"param": "card",
"request_log_url": "https://dashboard.stripe.com/acct_xxxx/test/logs/req_xvPXXLcHxV4iKY?t=1695646370",
"type": "invalid_request_error"
}
}```
Can you tell me more about what you are trying to do here? If you have a PaymentMethod object already saved, you should be able to just use that PM for new PaymentIntents.
Tokens are only needed for initially collecting card details. They are a legacy way of making the object that PaymentMethods replaced
I am trying to perform a payment for the connected account.
I found that help: https://stripe.com/docs/connect/cloning-customers-across-accounts
any ideas?
Ah gotcha, that doc is a bit legacy. You will have more luck with this one https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods
You can use the create Payment Method endpoint similar to how you are using the create token endpoint now
And that will be able to create a usable PaymentMethod on the connected account