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
Conversation
Glyphicon doesn't have brand icons, we use Font Awesome for those (actually it's Fork Awesome, but the in the code it's |
Another question. I copied the code from https://github.com/liberapay/liberapay.com/blob/7b9db6d877c4d6c7602580b3e05f67c946275ef8/www/%25username/donate.spt to show icons based on |
All users who have connected a valid Stripe account can receive SEPA direct debits, but only for donations in EUR. |
The SEPA logo doesn't fit well into Fork Awesome, it's too wide. |
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 |
The addition to the profile boxes that you're proposing looks okay visually, but I'm not in favor of it.
|
The special "€" sign in the SEPA logo could be used as a |
I'm open to suggestions. |
Tests are next. |
To unblock this PR I suggest using the 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 Don't worry about tests, this branch doesn't need any. |
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. |
Running into an issue where |
7d39c78
to
fa6c825
Compare
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. |
Nice. I have much to learn. |
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? Then on /donate *clicking through "Pledge"), is says "Donate" again with no explanation except for the buried "not ready to receive payments" paragraph below. |
I like it. No additional changes on my end. |
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? |
In `www/%username/tip.spt` the `is_pledge` value determines which message is returned and which URL the tipper is redirected to.
8f37c4a
to
6fc69fa
Compare
Ah ok, I thought that the currency switcher was still displayed in case of a user without any means of payment. All good then! |
Trying to implement #1262.
write tests