Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show what payments are accepted on user cards #1366

Merged
merged 5 commits into from Feb 17, 2019

Conversation

mattbk
Copy link
Contributor

@mattbk mattbk commented Dec 13, 2018

Trying to implement #1262.

  • rough out logic for
    • individuals
    • teams
    • organizations
  • add mouseover for icons (in particular, so people can see why no payment methods are available)
  • make it pretty
  • add to /donate pages
  • add to profile pages
  • write tests
  • convince @Changaco

@mattbk
Copy link
Contributor Author

mattbk commented Dec 14, 2018

Don't have a PayPal Glyphicon, so using PP for now. Need to adjust vertical alignment.

screenshot from 2018-12-14 09-58-44

@Changaco
Copy link
Member

Glyphicon doesn't have brand icons, we use Font Awesome for those (actually it's Fork Awesome, but the in the code it's fontawesome). However your attempt to show payment methods as icons cannot succeed, because the SEPA Direct Debit payment method doesn't have a logo.

@mattbk
Copy link
Contributor Author

mattbk commented Dec 14, 2018

Thanks @Changaco for the tip.

If it's possible, one could submit a SEPA logo to Fork Awesome, right?

@mattbk mattbk changed the title WIP: Rough out showing what payments are accepted on cards. WIP: Show what payments are accepted on user cards Dec 14, 2018
@mattbk
Copy link
Contributor Author

mattbk commented Dec 14, 2018

Another question. I copied the code from https://github.com/liberapay/liberapay.com/blob/7b9db6d877c4d6c7602580b3e05f67c946275ef8/www/%25username/donate.spt to show icons based on payment_providers, but how do I see if someone accepts SEPA?

@mattbk
Copy link
Contributor Author

mattbk commented Dec 14, 2018

screenshot from 2018-12-14 12-17-30

@Changaco
Copy link
Member

Changaco commented Dec 14, 2018

All users who have connected a valid Stripe account can receive SEPA direct debits, but only for donations in EUR.

@mattbk
Copy link
Contributor Author

mattbk commented Dec 14, 2018

@Changaco
Copy link
Member

The SEPA logo doesn't fit well into Fork Awesome, it's too wide.

@mattbk
Copy link
Contributor Author

mattbk commented Dec 14, 2018

2018-12-14_14-18-51
2018-12-14_14-20-08
2018-12-14_14-21-59

@mattbk
Copy link
Contributor Author

mattbk commented Dec 14, 2018

I'd like to make it more immediately clear on /donate pages (e.g., https://liberapay.com/mattbk/donate) what payment options are available as well. Right now this is buried in the FAQ at the bottom of the page.

I would probably start with adding icons just above the "Next Step"/"Modify the donation" button, with the same title attributes.

@Changaco
Copy link
Member

The addition to the profile boxes that you're proposing looks okay visually, but I'm not in favor of it.

  1. It doesn't work for teams, because their boxes already have a third column showing the number of members (see https://liberapay.com/explore/teams/).
  2. "Accepts" is imprecise and may be difficult to translate into other languages.
  3. In general I don't think it's a good idea to show the available payment methods in profile boxes.

@Changaco
Copy link
Member

Changaco commented Dec 15, 2018

The SEPA logo doesn't fit well into Fork Awesome, it's too wide.

The special "€" sign in the SEPA logo could be used as a sepa icon in Fork Awesome, but it would be a copyright violation.

@mattbk
Copy link
Contributor Author

mattbk commented Dec 17, 2018

The special "€" sign in the SEPA logo could be used as a sepa icon in Fork Awesome, but it would be a copyright violation.

I think that would be very confusing, esp. for anyone who doesn't use EUR (like me).

The profile boxes expand for teams just like they do for individuals:

screenshot from 2018-12-17 09-17-11

@mattbk
Copy link
Contributor Author

mattbk commented Dec 17, 2018

"Accepts" is imprecise and may be difficult to translate into other languages.

I'm open to suggestions.

@mattbk
Copy link
Contributor Author

mattbk commented Dec 19, 2018

Example on profile pages:

screenshot from 2018-12-19 12-52-18
screenshot from 2018-12-19 12-52-46

@mattbk
Copy link
Contributor Author

mattbk commented Dec 19, 2018

I switched which side the logos are on for the previous buttons, but here is the /donate page as well.

screenshot from 2018-12-19 13-05-32

@mattbk mattbk changed the title WIP: Show what payments are accepted on user cards Show what payments are accepted on user cards Dec 20, 2018
@mattbk
Copy link
Contributor Author

mattbk commented Jan 8, 2019

Tests are next.

@Changaco
Copy link
Member

Changaco commented Feb 5, 2019

To unblock this PR I suggest using the bank icon to represent direct debits, and adding an appropriate tooltip covering all the icons (let's reuse the paragraph about payment methods displayed in the /%username/donate page).

I'm still not enthusiastic about displaying payment information in the Explore pages, I think it's trying to fit too much information in a small area and before the visitor has even shown any interest in actually donating. However it would be useful and appropriate to include the payment method icons in the /%username/giving page. Paradoxically that's the one page that this PR currently doesn't modify.

Don't worry about tests, this branch doesn't need any.

@mattbk
Copy link
Contributor Author

mattbk commented Feb 5, 2019

Thanks @Changaco! I'll hop on those changes.

The reason I included Explore was to stop people from getting too far before being turned back--but we can try it without that and see if confusion persists.

@mattbk
Copy link
Contributor Author

mattbk commented Feb 6, 2019

Running into an issue where title tags are only showing the first word in a string.

templates/profile.html Outdated Show resolved Hide resolved
@mattbk
Copy link
Contributor Author

mattbk commented Feb 8, 2019

I got the logos to show up on /giving but not the tooltip yet.

image

@mattbk
Copy link
Contributor Author

mattbk commented Feb 11, 2019

Titles work:

image

@mattbk mattbk added the Review label Feb 11, 2019
@Changaco
Copy link
Member

Rebased on master and cleaned up.

I've moved the payment icons out of buttons, because it looks better to me that way and because it allows mobile users to tap on the icons to see the tooltip without risking to trigger the button.

@Changaco
Copy link
Member

liberapay-2019-02-12-profile-with-payment-icons

@Changaco
Copy link
Member

screenshot_20190212_150515

@Changaco
Copy link
Member

screenshot_20190212_150148

@mattbk
Copy link
Contributor Author

mattbk commented Feb 12, 2019

Nice. I have much to learn.

@mattbk
Copy link
Contributor Author

mattbk commented Feb 12, 2019

I like the change to "Pledge" on people who don't have a payment method set up (see #1438), but do we need more explanation there of what that means?

image

Then on /donate *clicking through "Pledge"), is says "Donate" again with no explanation except for the buried "not ready to receive payments" paragraph below.

@Changaco
Copy link
Member

screenshot_20190215_094846

@mattbk
Copy link
Contributor Author

mattbk commented Feb 15, 2019

I like it. No additional changes on my end.

@trebmuh
Copy link
Member

trebmuh commented Feb 15, 2019

Can the "Wrong currency? Alice accepts 32 others:...". and the following be removed in case of a pledge?

The reasoning behind that is that it's probably confusing for a lambda user. This because, if Alice didn't configured any payment method, then how come can she accepts 32 other currencies?

@Changaco
Copy link
Member

@trebmuh It might be a little confusing to some donors but I don't want to remove it. Most users only accept one currency, of course the switcher isn't displayed in that case.

@mattbk I've squashed your commits into a single one to keep the Git history "clean".

@Changaco Changaco merged commit a8525c1 into liberapay:master Feb 17, 2019
@trebmuh
Copy link
Member

trebmuh commented Mar 17, 2019

@trebmuh It might be a little confusing to some donors but I don't want to remove it. Most users only accept one currency, of course the switcher isn't displayed in that case.

Ah ok, I thought that the currency switcher was still displayed in case of a user without any means of payment. All good then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants