#agarfuin_connect-clone
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1282819471370616875
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- agarfuin_api, 9 minutes ago, 45 messages
- agarfuin_connect-applicationfees, 3 hours ago, 34 messages
- agarfuin_api, 6 hours ago, 13 messages
Hi me again, I successfully copied payment method to connected account but still cant create charges.
Do you have a request ID to share?
In this request: req_2EJIDKSTeqJwSG I copied payment method to my connected account
after that I made req_Vns8lziV28s6Yc this request to create charge but still get the same response:
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such PaymentMethod: 'card_1PknNFCb1igCzzWKpzycEzea'; 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",
"request_log_url": "https://dashboard.stripe.com/acct_1Px9KKCeAP4grCrH/test/logs/req_Vns8lziV28s6Yc?t=1725918206",
"type": "invalid_request_error"
}
}
this was the request body:
{
"currency": "USD",
"payment_method": "card_1PknNFCb1igCzzWKpzycEzea",
"application_fee_amount": "25",
"confirm": "true",
"amount": "100",
"off_session": "true"
}
hello! Can you help me
@leaden monolith looks like you're in the wrong place, this thread is for someone else's question.
- If you have your own thread please chat there.
- If you have a question or a followup to a closed thread use one of the buttons in https://discord.com/channels/841573134531821608/842637025524842496 to get help (we don't reopen closed threads).
Note that posting inappropriate messages in other people's threads is against the rules. No worries if this was just an honest mistake, but anyone who violates the rules multiple times will be removed from this server.
@covert vapor do you have any suggestions?
Got it
https://dashboard.stripe.com/test/logs/req_2EJIDKSTeqJwSG - this returned a PaymentMethod ID. This PM ID is what now exists in your connected account and what should be used to create the direct charge on the connected account
If you intend to use this PaymentMethod for more than just a single charge, you'll need to create a new (second) customer on the connected account and attach this PaymentMethod to the customer on the connected account before creating a direct charge on the connected account
so can i use a payment method while creating a charge only for once?
If you don't attach the PaymentMethod you created here to a customer on the connected account then, yes, you can only use this PaymentMethod for a single charge: https://dashboard.stripe.com/test/logs/req_2EJIDKSTeqJwSG
Ok but still why can't I create any charge?
From the things you said I should be able to create at least a charge am I wrong?
No, it makes sense that this request failed: https://dashboard.stripe.com/test/logs/req_Vns8lziV28s6Yc
The payment_method passed is not the newly-cloned PM
hmm you're correct
yea i missed that part sorry
then i need to obtain the cloned payment method's id right?
and make the request that way
or cloned payment method's id and the original one is the same?
Right, the original one on the platform remains the same. You should now either create a PI for the direct charge on the connected account using the newly-cloned PM or attach the newly-cloned PM to a customer on the connected account if your goal is to use the newly-cloned PM for more than just a single charge
ok how can i attach cloned PM to a customer on the connected account?
You can create the customer on the connected account and pass the newly-cloned PM as the value for payment_method: https://docs.stripe.com/api/customers/create#create_customer-payment_method
agarfuin_connect-clone