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

Payment method choice <select> to <ul> + <input type="radio"> #331

Open
remcotolsma opened this issue Aug 19, 2022 · 1 comment
Open

Payment method choice <select> to <ul> + <input type="radio"> #331

remcotolsma opened this issue Aug 19, 2022 · 1 comment

Comments

@remcotolsma
Copy link
Member

remcotolsma commented Aug 19, 2022

In the WordPress admin payment gateway configuration test meta box we let users select the payment method in a <select>:

pay local_wp-admin_post php_post=909 action=edit

In the Pronamic Pay built-in form post type users currently can't choose the desired payment method. In #154 we are working towards support for this.

To display additional payment method fields we use some JavaScript in payment gateway configuration test meta box. however, we could also arrange this on the basis of HTML and CSS.

https://codepen.io/remcotolsma/pen/rNdPOQE

The display of the payment methods is then more like, for example, Adyen does in the web dropin.

pay local__payment_redirect=1592 key=pay_62ff7d8b25c0c (1)

pay local__payment_redirect=1592 key=pay_62ff7d8b25c0c

@remcotolsma
Copy link
Member Author

WooCommerce and many other plugins use a similar view:

Schermafbeelding 2022-08-19 om 15 26 18

remcotolsma added a commit to pronamic/wp-pay-core that referenced this issue Aug 22, 2022
De input HTML was outside the HTML <form> so this was not working. We currently also only support subscriptions with Mollie and Mollie does not require fields. We could add support for this later in combination with pronamic/wp-pronamic-pay#331.
remcotolsma added a commit to pronamic/wp-pay-core that referenced this issue Aug 22, 2022
Currently we only support subscriptions in combination with Mollie. For Mollie there are no fields required. We will add support for this later. Perhaps in combination with pronamic/wp-pronamic-pay#331.
@remcotolsma remcotolsma moved this to Todo in Pronamic Pay Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant