#kaushik_16189

1 messages · Page 1 of 1 (latest)

sacred narwhalBOT
pastel knoll
#

Hi there!

rare junco
#

Hi

pastel knoll
rare junco
#

Ok

pastel knoll
#

@rare junco here

rare junco
#

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

Learn how to add the right information to your API calls so you can make calls for your connected accounts.

pastel knoll
#

Can you clarify what you are trying to do with this request?

rare junco
#

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

pastel knoll
rare junco
#

so for customer trying to make payment and got error like above , they try multiple time and after may time failed they got success

pastel knoll
rare junco
#

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 {
pastel knoll
#

In the request you shared, there's no Stripe-Account header.

rare junco
#

and when token genreate that token i pass into create customer API with stripe_account header and payment intent as well

pastel knoll
#

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.

rare junco
#

in this payment method is created

where i can see stripe-header

pastel knoll
#

Yes agreed, there I see the Stripe-Account header. But you also need it when creating the PaymentIntent

rare junco
#

can you show me where i can see Stripe-Account in my side so i can have idea

pastel knoll
rare junco
#

ok

#

so it is only matter of stripe-account header right ?

pastel knoll
#

yes

rare junco
#

Ok thanks i will check all code again will do test

#

thanks for your time.