#ro_hit_h

1 messages · Page 1 of 1 (latest)

stark pantherBOT
vocal pagoda
#

Hi! Let me help you with this.

#

What do you mean by this?

#

"Add" to what?

cunning kettle
#

Payment Element

vocal pagoda
#

Are you running into any issues? How are you trying to do it now?

#

I don't understand your use case so it's hard for me to advice. Could you please elaborate more?

cunning kettle
#

I am doing a project in React that has stripe payment. I have done card payment section using stripe-react library. I need to do other payment method like apple pay, google pay, etc.

vocal pagoda
#

Oh, you want multiple payment method types?

#

Are you using Stripe Payment Element?

cunning kettle
#

I am trying to use payment element for this method

vocal pagoda
#

And you only see Card?

cunning kettle
#

Yes

vocal pagoda
#

Have you enabled other PM types in your Stripe Dashboard?

cunning kettle
#

How to do that

cunning kettle
#

I will check

#

Is this work on test account?

vocal pagoda
#

Yes, it works in Test mode.

cunning kettle
#

I am only this

vocal pagoda
#

Could you please share the PaymentIntent ID pi_xxx?

cunning kettle
#

I didn't purchase

vocal pagoda
#

Do you create the PaymentIntent before or after you collect the payment method details?

cunning kettle
#

One min let me check

stark pantherBOT
cunning kettle
#

I guess after

vital rose
#

Can you share your React code where you initialise the <Elements /> provider

cunning kettle
#

const StripeWrapper: React.FC<WrapperProps> = ({
paymentSession,
children,
}) => {
const options: StripeElementsOptions = {
clientSecret: paymentSession!.data.client_secret as string | undefined,
}

return (
<Elements stripe={stripePromise} options={options}>
{children}
</Elements>
)
}

export default Wrapper

vital rose
#

Ok, you're creating the Payment Intent before

#

Can you share your backend code that creates the Payment Intent? Or a pi_xxx ID?

cunning kettle
#

let me check

vital rose
cunning kettle
#

pi_3NnH0dSFC5T0gHYo1FpiMwIh_secret_k4Tmh75792sqPZwbrXWNVcRGk

vital rose
#

You need to update your code that makes that API request to include that parameter

#

Otherwise it will only support cards by default

cunning kettle
#

Can suggest any method?

vital rose
#

I don't know what that means

cunning kettle
#

I am using this plugin medusa-payment-stripe in backend

vital rose
#

Then you need to speak to the maintainer of that plugin