mollie / mollie-api-python

Mollie API client for Python
http://www.mollie.com
BSD 2-Clause "Simplified" License
113 stars 55 forks source link

The currency 'GBP' is not supported. #366

Closed Mark-2445 closed 1 month ago

Mark-2445 commented 1 month ago

Hi,

I am trying to setup a new payment with Mollie (in test mode) and I keep getting 'The currency 'GBP' is not supported.' when trying to make a payment link.

I've attached my JSON data below, this is being sent in the mollie_client.payment_links.create() event.

{
    "description": "test item",
    "amount": {
        "currency": "GBP",
        "value": "10.00"
    },
    "webhookUrl": "<my webhook url here>",
    "redirectUrl": "<my redirect url here>",
    "expiresAt": "2024-10-06T11:00:00+00:00",
}
geertjanvdenbosch commented 1 month ago

Hi @Mark-2445 ,

If I use the following script, without any extra settings enabled/disabled, I get a 201 and regular response:

from mollie.api.client import Client

mollie_client = Client()
mollie_client.set_api_key("<API_KEY>")

payment = mollie_client.payment_links.create({
    "description": "test item",
    "amount": {
        "currency": "GBP",
        "value": "10.00"
    },
    "webhookUrl": "https://mollie.com",
    "redirectUrl": "https://mollie.com",
    "expiresAt": "2024-10-06T11:00:00+00:00",
})

print(payment)

The docs note, that GBP is only supported for the payment methods cards and Paypal. Can you verify that you're not using a payment method that's not supported in conjunction with GBP?

Mark-2445 commented 1 month ago

I only have Cards & Apple Pay enabled, would Apple Pay be blocking this?

The docs state 'Currencies supported for card payments are generally also available for other card-based payment methods, such as Apple Pay.'

fjbender commented 1 month ago

Hi @Mark-2445, this might be an issue with your Mollie account instead of an issue with the Python package. I advise to reach out to our support team, they'll be able to check this out for you.

Thanks!