Comments (6)
Gotcha!
from commerce-mollie.
Maybe this could be useful for others:
I didn't use the getPaymentFormHtml()
in the end. What I did instead was:
{% for paymentMethod in cart.gateway.fetchPaymentMethods() %}
{# Implement a custom radio button here #}
{% if paymentMethod.id == 'ideal' %}
{% for issuer in cart.gateway.fetchIssuers() %}
{# Implement a custom dropdown here #}
{% endfor %
{% endif %}
{% endfor %}
from commerce-mollie.
In the getPaymentFormHtml() method there is a check if the fetchIssuers() method works. But this method does not work if ideal is not selected in the website profile in mollie.
Okay, but what would be the resolution here? If Mollie doesn't return the issuers then we don't have it. Seems like your approach is a great way as it's also more likely that the site developer will know what the list has to be.
from commerce-mollie.
Hi @andris-sevcenko, issuers and payment methods are 2 different things in mollie. If issuers don't apply (-> when ideal is not checked in mollie's dashboard), then we should still be returning the selected payment methods. But in the current implementation nothing is returned.
from commerce-mollie.
This is because fetchIssuers()
throws a Omnipay\Common\Http\Exception\RequestException
, as there are no issuers defined for Belgian payment methods. The getPaymentFormHtml
method catches the exception and returns an empty response.
I created a pull request with my fix;
from commerce-mollie.
This is fixed with the merge of #30 .
Fix will be included in the next release of the plugin.
Thanks!
from commerce-mollie.
Related Issues (20)
- Use Mollie Orders API to support Klarna Pay Later and Klarna Slice It HOT 17
- Mollie down HOT 2
- Webhook calls fail HOT 18
- Order marked paid twice HOT 14
- Order confirmation not being sent when using Mollie HOT 3
- Mollie test payment page returns to the site only for "paid" payment status HOT 3
- Successful transactions are not being processed properly HOT 3
- Mollie Orders api
- Installation failed
- Ability to set description HOT 5
- Overpaid orders due to duplicate transactions HOT 8
- Missing issuer with KBC payment method HOT 1
- Http\Adapter\Guzzle6\Client' not found HOT 2
- Expired payment flash message HOT 1
- Error: 422 - 'familyName' field is missing HOT 1
- TypeError when trying to submit payment form HOT 2
- Sending paymentMethod and issuer doesn't seem to work (anymore) HOT 1
- Incorrect redirect via fetchPaymentMethods HOT 2
- Payment method screen not shown, but going directly to one specific option HOT 1
- test HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commerce-mollie.