#nirav_code

1 messages ยท Page 1 of 1 (latest)

hasty quartzBOT
#

๐Ÿ‘‹ 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/1319598981571018773

๐Ÿ“ 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.

sudden wyvern
#

Hi
Could you please share the PaymentIntent Id ?

stone kindle
#

Just a min.

#

pi_3QWrEQKPCXHNvxWx0W1xujhu

please check.

sudden wyvern
#

This is not a Direct Charge.

#

this is a nomal charge

#

Between, are you testing in live mode ?

#

{ stripeAccount: shopkeeper.stripeAccountId }
This seems to no be taken into account req_WBr1bo0AXMPXQv

stone kindle
#

The above payment is for tap-to-pay and in live mode

sudden wyvern
#

OK but it's not a Direct Charge, you are not specifying any related data to a Connected Account.

stone kindle
#

I am facing the issue that the payment made by tap-to-pay is displayed on admin account but not in the stripe connected account dashboard

stone kindle
sudden wyvern
#

If you want to create a Direct Charge, you'll need to specify Stripe header auth .

#

In both your backend and frontend.

stone kindle
#

Can you please explain the steps in detail.
Should I have to call payementIntent.create api?

sudden wyvern
stone kindle
#

I am asking about tap-to-pay integration with connected accounts

sudden wyvern
#

Yes, that guide is the nearest one.

#

First you need to create a PaymentIntent

#
  const paymentIntent = await stripe.paymentIntents.create({
    amount: 1099,
    currency: 'eur',
    customer: customer.id,
    // In the latest version of the API, specifying the `automatic_payment_methods` parameter
    // is optional because Stripe enables its functionality by default.
    automatic_payment_methods: {
      enabled: true,
    },
    application_fee_amount: 123,
  }, {
    stripeAccount: '{{CONNECTED_ACCOUNT_ID}}',
  });
#

And then in your mobile app you need to use the Account header for all your Call.;

hasty quartzBOT
stone kindle
#

In the payment intent I am taking card details from user and for that I have my own UI to take card details from client side

jagged knot
#

hi! I'm taking over this thread.

#

what's your question?

stone kindle
#

I am using tap-to-pay functionality in connected account but getting problem that the transaction is not displayed in connected account dashboard but it is displayed in admin dashboard.

jagged knot
#

like this one you shared previously? pi_3QWrEQKPCXHNvxWx0W1xujhu

#

this PaymentIntent was created on the platform (acct_1PmxIFKPCXHNvxWx), not on a connected account.

#

you need to use the Stripe-Account header, as mentioned above: stripeAccount: '{{CONNECTED_ACCOUNT_ID}}'

stone kindle
#

Can you please provide demo what should I change at the time of initialing payment_intent at the time of using tap-to-pay.?

jagged knot
#

can you share your code that is creating the PaymentIntent?

stone kindle
#

Please find the attached code for creating the payment intent.

jagged knot
#

can you console.log the value of shopkeeper.stripeAccountId?

stone kindle
#

On the mobile side they are using this "mek stripe terminal" package.

jagged knot
#

I'm not sure I understand. can you answer my above question?

stone kindle
#

I am saying that frontend developer hasn't use this creatingNewPaymentIntent api at the time of tap-to-pay functionality. They are just using "mek stripe terminal" package.

jagged knot
#

but can you answer my question?

can you console.log the value of shopkeeper.stripeAccountId?

stone kindle
#

Okay just a min

stone kindle
#

Mobile dev are not using my creatingNewPaymentIntent so I cannot get stripeAccountId. So I can't provide stripe connected account id.

jagged knot
#

then I'm not sure how to help. the first step is to create a PaymentIntent on a connected account with the Stripe-Account header.

stone kindle
#

Mobile dev are using the "mek stripe terminal" package for tap-to-pay functionality. How can mobile dev will set this?

jagged knot
#

I still don't undrestand your question. what do you mean by "How can mobile dev will set this"?

stone kindle
#

I am trying to say is there any api or something instead of the "mek stripe terminal" package in which mobile dev can pass stripe account id in header

jagged knot
#

when implementing Stripe, you have to write code on both the backend and the frontend.

#

if you want to create/confirm a PaymentIntent on a connected account, you have to create the PaymentIntent on the backend with the Stripe-Account header, and also confirm the PaymentIntent on the frontent with the Stripe-Account header.

stone kindle
#

Can you provide some docs or reference fot that?

hasty quartzBOT
jagged knot
stone kindle
#

What are the integrations I have to add from backend part can you please guide?

potent lantern
#

Everything is explained in the details in the article above. You can select the programming language you're comfortable with for the examples.