#talon_api

1 messages ¡ Page 1 of 1 (latest)

misty sparrowBOT
#

👋 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/1284196166363381881

📝 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.

dapper basin
#

Hello

#

You actually set it in both front and backend here.

#

The frontend controls what the UI actually shows

#

And then when you create your PaymentIntent on the backend you set the corresponding amount to actually charge that amount

frank pumice
#

got it, make sense.

and where do i need to show for react native component. I beleive i need to use PlatformPayButton (alternative of expresscheckoutelement)

dapper basin
#

What do you mean by "where do I need to show"?

#

And yes, you use PlatformPayButton for React Native

frank pumice
#

the amount, I can show the amount in options field for ExpressCheckoutElement

but what about reactNative

#

web

  const options = {
    mode: 'payment',
    amount: 1099,
    currency: 'usd',
    // Customizable with appearance API.
    appearance: {/*...*/},
  };

  return (
    <Elements stripe={stripePromise} options={options}>
      <CheckoutPage />
    </Elements>
#

In guide they only set on backend for ReactNative

dapper basin
#

Ah you are right, sorry.

#

I forgot with PlatformPayButton that the modal is presented when you call confirmPlatFormPayPayment()

#

So yeah that uses the value you set on your backend that corresponds with the PaymentIntent

#

As you pass the PaymentIntent's client secret to confirmPlaytformPayPayment()

frank pumice
#

so i guess we don't need to set it for RN, backend is enough

#

thank you

dapper basin
#

Yep