-
Notifications
You must be signed in to change notification settings - Fork 42
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
#<Mollie::Exception: The amount is invalid> gem version 3,1 #179
Comments
Hi @mikececco, v4.0 is the first major version that supports the v2 API. I recommend upgrading to the latest release (v4.14.0) if you are on Ruby >= 2.5. |
Is amount invalid an issue with that version?
…On Fri, 29 Nov 2024, 12:45 Justin Case, ***@***.***> wrote:
Hi @mikececco <https://github.com/mikececco>, v4.0 is the first major
version that supports the v2 API. I recommend upgrading to the latest
release (v4.14.0) if you are on Ruby >= 2.5.
—
Reply to this email directly, view it on GitHub
<#179 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVDZXOM4VDJ3XW5RDAOE5KL2DBHU3AVCNFSM6AAAAABSVGOCE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBXGY2DQNJXGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
It expects a different value: v3.x of the rubygem (Mollie API V1) requires |
Yep tried it but still not working
…On Sun, 1 Dec 2024, 15:46 Justin Case, ***@***.***> wrote:
It expects a different value: v3.x of the rubygem (Mollie API V1) requires amount:
10.00 while v4.x (Mollie API v2) requires amount: { value: "10.00",
currency: "EUR")
—
Reply to this email directly, view it on GitHub
<#179 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVDZXOMYXASE6UD4YENEGQT2DMOLDAVCNFSM6AAAAABSVGOCE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBZG44TSOJQGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Which version of the mollie gem and Ruby are you currently using? |
ruby: 2.5.9 |
``Here is what it gets printed for value and currency |
Thank you. Please upgrade to the latest version of the mollie-api-ruby gem. All v3.x versions are unusable when the Mollie API V1 is turned off on December 31st 2024. |
I know, I was going through the different versions and test it. You think i
can jump directly to latest version?
…On Tue, 3 Dec 2024, 18:41 Justin Case, ***@***.***> wrote:
Thank you. Please upgrade to the latest version of the mollie-api-ruby
gem. All v3.x versions are unusable when the Mollie API V1 is turned off on
December 31st 2024.
—
Reply to this email directly, view it on GitHub
<#179 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVDZXOOAPIB6KOK4W6I6APT2DXUMBAVCNFSM6AAAAABSVGOCE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJVGIYDGNBVGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Am I getting the error because of this?
|
Got confirmation by upgrading to gem version 4.0.0: |
It's not a drop-in replacement by any means but I reckon it shouldn't be too difficult. Please feel free to join the Mollie Developer Community on Discord if you have any questions. |
I am currently upgrading to version 3.1 and changing syntax.
The following piece of code is giving me an error about amount is invalid:
begin payment = Mollie::Payment.create( amount: { value: self.amount, (this is a string) currency: currency (this is a string) }, customer_id: customer_id,
I have other identical instance creation with identical syntax which are not having any issue.
I have also hardcoded both value and currency and still get #<Mollie::Exception: The amount is invalid>
begin payment = Mollie::Payment.create( amount: { value: '38.85', currency: 'EUR' }, customer_id: customer_id,
what am I missing?
The text was updated successfully, but these errors were encountered: