-
Notifications
You must be signed in to change notification settings - Fork 10
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
(Can I) get a list of payment methods and/or banks from Mollie? #2
Comments
Looking at the mollie omnipay source code, it looks like things like iDeal are called If mollie has additional options that are not presented in the current payment formmodel like issuers , we would need to expose that to this plugin. I assume if you don't pass an issuer from the form, after redirect mollie shows a screen to let the customer to choose their issuer? As it looks like it is optional. |
Luke, in Mollie API v2, what I need is called So, iDeal would be a method, and the bank you choose would be the issuer. Both are optional, but I should be able to use both ids in the payment form, so Mollie redirects the visitor to the correct page. In the Omnipay Mollie source, that would be |
More on this ... It seems that Mollie API v1 (deprecated) which is used by OmniPay, has an For now (API v1) I added this to
If you could implement this in the Commerce Mollie plugin (in the correct way and style, of course), I would be very happy for now. It does the job, but moving to Mollie API v2 would be the better choice (as soon as Omnipay supports this, which they are working on: thephpleague/omnipay-mollie#48 |
In addition to adding methods like those to the gateway, don't we also need to pass the issuer value the customer selects to the payment request/redirect? How are you doing that at the moment with those changes? |
I'm not. I was hoping you would know the way to do that :) |
OK, will need to do this on a new feature branch. Will let you know what to update your composer.json to so you can test for me. Thanks. |
Nice @lukeholder! Could you let me know how soon this could be done? I need to know if I have to come up with a temporary solution ... |
@nilsenpaul I have added initial support for payment methods and issuers on the feature/issuers branch. Try it by updating your composer.json version of The payment form is pretty rough, it is just 2 dropdowns, but welcome feedback. Thanks. |
@lukeholder Seems to be working just fine, thanks! Am I right in assuming that payment form values are not saved anywhere on Commerce's end, but only sent to Mollie? |
@lukeholder |
This has actually been merged into the master. Oops. |
Mollie provides you with a list of available payment methods and, if iDeal is chosen, banks through its API. (How) can I get those lists from my template? I know I once did it in Commerce v1, but can't seem to find the template source for that.
The text was updated successfully, but these errors were encountered: