Currency not supported
-
For the mollie pay module the currency EUR (€ or euro) is not supported.
How can I add this or can you guys fix this?
-
Hi @KevLav
Can you please explain more because as per documentation of mollie pay, it supports euro currency and you can create multiple currency in bagisto also.
Thanks
-
I've installed the mollie module on my current project and it says 'Currency not supported'.
@if($mollie->preparePayment() == 'false') {{session()->flash('error','Currency not supported.')}}
So I looked up where this was. So when I get in my preparePayment function I get this array:
^ array:5 [▼ "amount" => array:2 [▼ "currency" => "EUR" "value" => "8.15" ] "description" => "Mollie Payment" "webhookUrl" => "https://aromawinkel-bagisto.test/mollie/payment/webhook" "redirectUrl" => "https://aromawinkel-bagisto.test/mollie/payment/success" "metadata" => array:1 [▼ "order_id" => 7 ] ]
So I don't know what's wrong.
-
-
This is not my preparePayment method, this is the default. I just showed the information in the function for reference.
config/app.php
/* |-------------------------------------------------------------------------- | Base Currency Code |-------------------------------------------------------------------------- | | Here you may specify the base currency code for your application. | */ 'currency' => 'USD',
Changing this doesn't matter.
I have added the dutch and english language.
I do only have 1 currency in the database. I don't know if this is supposed to have 2? Like USD and EUR
Other than this I just have some created categories and products.
-
When I change the source code of the mollie plugin (the preparePayment function) and try it without the try/catch. I then get this error:
Error executing API call (422: Unprocessable Entity): The webhook URL is invalid because it is unreachable from Mollie's point of view.. Field: webhookUrl. Documentation: https://docs.mollie.com/guides/handling-errors (View: /Users/kevinernst/Documents/GitHub/bagisto/packages/Webkul/Mollie/src/Resources/views/standard-redirect.blade.php)
However the Webkul/Mollie package has these routes:
Route::get('mollie/payment/webhook', 'Webkul\Mollie\Http\Controllers\MollieController@webhook')->name('mollie.payment.webhook'); Route::post('mollie/payment/webhook', 'Webkul\Mollie\Http\Controllers\MollieController@webhook')->name('mollie.payment.webhook');
So basically this happens because of local testing then?