#kaushik_16189
1 messages · Page 1 of 1 (latest)
Hi there!
Hi
I am having issue of payment method not found
Can you share the request ID (req_xxx)? You can find it here https://dashboard.stripe.com/test/logs
Ok
@rare junco here
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
this is real log
https://dashboard.stripe.com/logs?success=false&method[0]=post&method[1]=delete&direction[0]=self&direction[1]=connect_in&showIP=false&starting_after=1695900246-req_Ljf2Gpot3rjnPY from live
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
this is error
resource_missing - payment_method
No such PaymentMethod: 'pm_1NuzsbHyN94ZYD9BVPTVfaA6'; It's possible this PaymentMethod exists on one of your connected accounts, in which case you should retry this request on that connected account. Learn more at https://stripe.com/docs/connect/authentication
Can you clarify what you are trying to do with this request?
i am trying to making payment using connected account
so all payments will go to connected account and application fees will goes to primay holder account
so for that payment method will create , customer will create and then after payment intent
But what are you trying to do here? https://dashboard.stripe.com/test/logs/req_ZMprZWOSmg2LqO
Clone a PaymentMethod to a connected account?
so for customer trying to make payment and got error like above , they try multiple time and after may time failed they got success
i am sorry plz check this log
https://dashboard.stripe.com/logs/req_4ZOrTNBNwiasYS
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
i am sorry plz check this log
https://dashboard.stripe.com/logs/req_4ZOrTNBNwiasYS
You didn't set the Stripe-Account header in this request, so it's expected to fail.
i sent stripe account header in my all request
let me show you how i creating payment method
try {
var stripe = Stripe( eh_stripe_val.key, {apiVersion: eh_stripe_val.version,stripeAccount: eh_stripe_val.stripeAccount
} );
} catch( error ) {
console.log( error );
return;
}
with javascript
and this payment method created
stripe.createPaymentMethod ({
type: 'card',
card: stripe_card,
billing_details: {
address
},
},
{ setup_future_usage: 'off_session',}
).then(function(result) {
if (result.error) {
$( document.body ).trigger( 'stripePaymentMethodError', result );
$('.stripe-source-errors').html(
'<ul class="woocommerce_error woocommerce-error eh-stripe-error"><li>'+ result.error.message +'</li></ul>');
} else {
In the request you shared, there's no Stripe-Account header.
and when token genreate that token i pass into create customer API with stripe_account header and payment intent as well
Also the error is pretty clear:
No such PaymentMethod: 'pm_1NuzsbHyN94ZYD9BVPTVfaA6'; It's possible this PaymentMethod exists on one of your connected accounts, in which case you should retry this request on that connected account. Learn more at https://stripe.com/docs/connect/authentication
So you need to invesigate your code and understand why the Stripe-Account header is not set.
can you see this log
https://dashboard.stripe.com/acct_1K6fI6HyN94ZYD9B/logs/req_LGzw09lSXtm9oR
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
in this payment method is created
where i can see stripe-header
Yes agreed, there I see the Stripe-Account header. But you also need it when creating the PaymentIntent
can you show me where i can see Stripe-Account in my side so i can have idea
The request you just shared: https://dashboard.stripe.com/acct_1K6fI6HyN94ZYD9B/logs/req_LGzw09lSXtm9oR is coming from a connected account. So it's using the Stripe-Account header.
The other request: https://dashboard.stripe.com/logs/req_4ZOrTNBNwiasYS is coming from your platform account directly. So it's not using the Stripe-Account header.
yes