New topic Closed topic
avatar image
1
Mollie payment API V2
By Created , last editted

Hi,

I'm implementing Mollie payments.

There is a block in the Blocks Store wchich supports the Mollie API version 1. Great!

But Mollie has implemented version 2 of the API, so I would like to use that one. 

In version 1, you can pas just the amount of a payment to mollie as a body variable. in the Webservice Endpoint, creating a body like this:

{
   "description": "payment",
   "redirectUrl": "https://someurl.com",
    "method": "ideal",
    "webhookUrl": "https://someotherurl.com",
    "amount": "0.01"
}


In version 2, the amount itself is json, containing both currency + amount:

{"currency":"EUR", "value":"0.01"}

I cannot pass this a a body variable, because then you get quotes outside the brackets, like this:

{
    "description": "payment",
    "redirectUrl": "https://someurl.com",
    "method": "ideal",
    "webhookUrl": "https://someotherurl.com",
    "amount": "{\"currency\":\"EUR\", \"value\\\":\"0.01\}"
}


I there a way to do this?


Payment endpoint in Mollie V1 API:


Hi,

I'm implementing Mollie payments.

There is a block in the Blocks Store wchich supports the Mollie API version 1. Great!

But Mollie has implemented version 2 of the API, so I would like to use that one. 

In version 1, you can pas just the amount of a payment to mollie as a body variable. in the Webservice Endpoint, creating a body like this:

{
   "description": "payment",
   "redirectUrl": "https://someurl.com",
    "method": "ideal",
    "webhookUrl": "https://someotherurl.com",
    "amount": "0.01"
}


In version 2, the amount itself is json, containing both currency + amount:

{"currency":"EUR", "value":"0.01"}

I cannot pass this a a body variable, because then you get quotes outside the brackets, like this:

{
    "description": "payment",
    "redirectUrl": "https://someurl.com",
    "method": "ideal",
    "webhookUrl": "https://someotherurl.com",
    "amount": "{\"currency\":\"EUR\", \"value\\\":\"0.01\}"
}


I there a way to do this?


Payment endpoint in Mollie V1 API:

Answers
Sort by:

This topic is closed.