Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Currency not supported

    Modules
    2
    6
    537
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      KevLav last edited by

      For the mollie pay module the currency EUR (€ or euro) is not supported.

      How can I add this or can you guys fix this?

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        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

        1 Reply Last reply Reply Quote 0
        • K
          KevLav last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • R
            rahul last edited by

            Hi @KevLav

            Can you show your preparePayment() method and what it is returning from there.

            Thanks

            1 Reply Last reply Reply Quote 0
            • K
              KevLav last edited by

              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

              Screenshot 2020-01-08 at 08.45.54.png

              Other than this I just have some created categories and products.

              1 Reply Last reply Reply Quote 0
              • K
                KevLav last edited by KevLav

                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?

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post