#itsqwerty

1 messages · Page 1 of 1 (latest)

stark shellBOT
kind harness
urban perch
#

👋 happy to help

#

the return_url, is used for the redirect Payment Methods

kind harness
#

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\

urban perch
#

you can't, that's what I was explaining

kind harness
#

Oh really - so there is no way to show success payment animatoins?

urban perch
#

let's go back a second here

#

let's say your customer chooses a redirect payment method (e.g. iDeal, Sofort, etc.)

kind harness
#

Right - but I am only trying to have google play, apple pay and card - does that similfiy things?

urban perch
#

how would your customer be able to come back to your website, unless the Payment Method website has a return_url ?

urban perch
#

which means if the PM doesn't require a redirection, the return_url won't be used

kind harness
#

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:

pine thicket
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

pine thicket
kind harness
#

yeah correct

#

im trying to set a fixed width and height on it and also make it a row

kind harness
pine thicket
#

Could you please try:
'justify-content': 'flex-start', 'width': 'auto'

kind harness
#

sure one momeny

#

no luck

pine thicket
#

I'm afraid it's not possible then, unfortunately.

kind harness
#

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?

pine thicket
kind harness
#

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

pine thicket
#

Stripe is trying to achieve balance between flexibility and consistency here, so that might be the reason why there's some limitations to the design.

#

If you could provide an example URL I would be happy to take a look.