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

Feature/virtual card release payment methods #1046

Conversation

Betree
Copy link
Member

@Betree Betree commented Nov 14, 2018

ℹ️ Require opencollective/opencollective-api#1519

Show virtual cards in edit collective payment methods list and fix multiple issues related to this form.

Preview

Assumptions made for this PR

  • Users cannot remove virtual cards
  • Virtual cards with a balance of 0 should not be shown
  • We should only display credit cards and virtual cards

Fixes the following issues

Refactor opportunity

The new PaymentMethodLabel component should be used in OrderForm to render the select options. It has been created in this intent (returns non-wrapped strings) and will add support for internationalization to the existing labels for free. This will be the object of another PR.

Key was using the index which caused removed components to still appear and that was sometimes preventing new ones from appearing.

Will solve opencollective/opencollective#1419

See opencollective/opencollective#1336
Following changes also included:
- Regroup duplicated code to generate labels for payment methods under the `PaymentMethodLabel` component
- Payment method labels can now be translated
@vercel
Copy link

vercel bot commented Nov 14, 2018

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

@Betree Betree requested a review from znarf November 14, 2018 08:50
@znarf znarf merged commit c2c5daa into feature/virtual-cards-release Nov 14, 2018
@znarf znarf deleted the feature/virtual-card-release-payment-methods branch March 20, 2019 10:53
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.

None yet

2 participants