#akashpatil7596_api
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/1283085048458772581
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi 👋 in your flow, are you creating your Payment Intents before creating the Payment Element, or after?
Sorry I don't understand, I'm working on ReactJS App. I am only creating Payment Element that's it.
I want to add amazon pay, google pay etc to the Payment Element
Hello
When building a Payment Element flow there are two approaches, one where you create the Payment Intent first:
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements
and one where you defer the creation of the payment intent until later:
https://docs.stripe.com/payments/accept-a-payment-deferred
The order is important, as the payment method types shown come from possibly different places depending on the flow.
What is Payment Intent?
It's the object you create in Stripe for processing a payment.
Were you following one of our guides to build your Payment Element integration? If you can link me to that it may give me more insight into how you built your flow and what you need to adjust.
Hello @sour condor
I've added stripe Payment Element, WIth that I also Add amazon pay, Alipay etc. but GooglePay and Bank Transfer Not Showing Even I add then in Stripe Setting/Payment methods
Happy to help though I do have the same questions as toby. Are you following a specific one of our docs and are you creating the payment intent before or after you mount the payment element on your page?
Yes, I'm following the SDK Docs for React Stripe.js, as I initially wanted to load the UI Element for payment. I have only implemented/mounted the payment element on my page and yes that is before creating the payment intent.
Here is the link for the doc: https://docs.stripe.com/stripe-js/react
Hello
helloooo
Hello, the server is very busy, just getting back here. I think I know the doc to send for this
That doc is the flow you are using and that step gives links to where to set things up so you can enable new PMs from your dashboard
Yes I applied the same code in my Project.
import React from 'react';
import ReactDOM from 'react-dom';
import {Elements} from '@stripe/react-stripe-js';
import {loadStripe} from '@stripe/stripe-js';
import CheckoutForm from './CheckoutForm';
// Make sure to call `loadStripe` outside of a component’s render to avoid
// recreating the `Stripe` object on every render.
const stripePromise = loadStripe('pk_test_51PxO6gP0phc3YNG0q5hbVJLXlBoqBb2cjetGvdNOPCgZOE7T6zhUjbb2VDlf4kSzarutLR8UUwpUvjVKlSZSe5jc00yknWqFHF');
function App() {
const options = {
mode: 'payment',
amount: 1099,
currency: 'usd',
// Fully customizable with appearance API.
appearance: {/*...*/},
};
return (
<Elements stripe={stripePromise} options={options}>
<CheckoutForm />
</Elements>
);
};
ReactDOM.render(<App />, document.getElementById('root'));
The question is same
This
Not quite sure what you mean. Are you turning on payment methods in your dashboard but they aren't showing up in the payment element?
Gotcha. We actually have a dashboard tool that will be helpful here. Finding a link
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
If you put in $10.99 and USD in to that tool, it will show you why each PM that you ahve turned on is or is not showing up