#itsqwerty
1 messages · Page 1 of 1 (latest)
👋 happy to help
the return_url, is used for the redirect Payment Methods
you can choose whether you want to redirect always or if_required by using this param https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect
sorry im still confused 😅
I am using the PaymentElement and its forcing me to pass return_url in
how can I pretty much not and just not when the payment succcessds
so I can use the react router to navigate the user
I hope that made sense\
you can't, that's what I was explaining
Oh really - so there is no way to show success payment animatoins?
let's go back a second here
let's say your customer chooses a redirect payment method (e.g. iDeal, Sofort, etc.)
Right - but I am only trying to have google play, apple pay and card - does that similfiy things?
how would your customer be able to come back to your website, unless the Payment Method website has a return_url ?
in that case, you can pass as I mentioned the redirect: 'if_required' option
which means if the PM doesn't require a redirection, the return_url won't be used
yeah thats the bit I was confused about - do I pass that in the confirmparams because typescript is not picking that up?
oh i see - one money
moment*
im testing it
Another thing was I was trying to add a fixed width to these tabs and make them a row howveer those properties are not supported with the apperace api, is there a specific method you could reccomed?
borderRadius: '100px',
display: 'flex',
flexDirection: 'row',
gap: '8px',
alignItems: 'center',
width: '96px',
height: '40px',
'justify-content': 'space-between',
},
'.Tab--selected': {
backgroundColor: '#F3F1F5',
color: '#2A272F',
},
trying to acheive this:
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Is Card tab also too long now?
yeah correct
im trying to set a fixed width and height on it and also make it a row
the properties im trying to use dont seem to be supported - so I wasnt really sure how to acheive the effect - any help would be appreciated
Could you please try:
'justify-content': 'flex-start', 'width': 'auto'
I'm afraid it's not possible then, unfortunately.
I thought so too (because it gives me warnings that justify isn’t supported) but then I have seen other sites use have similar setups
Is there a way to maybe get close to the effect?
Other websites using Payment Element?
oh right im not too sure about that - maybe it a CardElement - am I missing something because it seems werid to be that you cannot acheive a row or give it a fixed width