Skip to content

Conversation

@ojsdude
Copy link
Contributor

@ojsdude ojsdude commented Jan 12, 2021

This work includes a new "Payment Form" that we'd like to use to replace the current stripe checkout process.

We will need to use https://stripe.com/en-gb/payments/elements and https://stripe.com/docs/payments/accept-a-payment?integration=elements to get this working properly.

Design-wise we need to:

  • Ensure that the smaller inputs (2/3 per line) drop down on smaller screens so that they aren't too squashed. This may not be required if we are going to use the stripe elements.
  • Add .loading to the .payment-form div when the form is submitting. Also disable the inputs. The loading class will add opacity to the form-group elements and the loading spinner to the button.

@ojsdude ojsdude changed the title Adding custom stripe form WIP: Adding custom stripe form Jan 12, 2021
@ojsdude ojsdude changed the base branch from master to analysis-product January 12, 2021 17:22
@ojsdude ojsdude changed the base branch from analysis-product to master January 12, 2021 17:22
$font-size-xxs: 0.75rem;
$font-size-xs: 0.8rem !default;
$font-size-sm: 0.9rem !default;
$font-size-sub: 1.05rem !default;
Copy link
Contributor

@CurtisALee CurtisALee Jan 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new variable here breaks the font-size convention and feels out of place.

I'm also not sure what sub means, and it's not clear to me what size I can expect from it.

If this font-size is only used in one place, could we not consider removing the variable for it completely?

@ojsdude ojsdude force-pushed the adding-custom-stripe-form branch 4 times, most recently from da88466 to b75b236 Compare January 14, 2021 11:13
@ojsdude ojsdude force-pushed the adding-custom-stripe-form branch from b75b236 to 1ee4ef5 Compare January 14, 2021 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants