#All payments endpoint gives error "A website profile is required for payments"

1 messages · Page 1 of 1 (latest)

long elbow
#

I've connected a customer via OAuth. Now I want to retrieve the price that they pay for an iDeal transation.

Unfortunately this was moved without any breaking changes or announcements.

Reading the docs, it should be able to retrieve this information via the methods/all endpoint.

However:

  • The docs https://docs.mollie.com/reference/list-all-methods reference a method $mollie->methods->allAvailable() which is not available
  • If you access the endpoint, it throws the error "A website profile is required for payments". Passing this along in the query params does not solve it (and is also strange since the profile should not have any connection to it)
Mollie Documentation

Retrieve all payment methods that Mollie offers, regardless of the eligibility of the organization for the specific method. The results of this endpoint are not paginated — unlike most other list endpoints in our API.
The list can optionally be filtered using a number of parameters described below.

placid crag
#

Hi there!

You have to provide the profileId on most of the call if you use OAuth. 🙂

long elbow
#

@placid crag thnx for the response, I did that and that did not solve the problem...

placid crag
#

Do you have an example of your call?

long elbow
#

Also the PHP package is not accepting it for that endpoint

#

Mollie\Api\Http\Requests\GetAllMethodsRequest

placid crag
#

Which version of the PHP library are you using?

#

V2 or V3?

long elbow
#

V3

placid crag
#

Tagging the maintainer meanwhile too. @fiery bobcat

#

So, can you show me the call that gives that error?

long elbow
#

$mollie->methods->all(['profileId' => 'pfl_xxx])

placid crag
#

Thats seems like a V2 call of the library

tulip sonnet
long elbow
#

@pastel sky this one is not done yet, I was not able to respond earlier unfortunately....

#

@tulip sonnet, I am trying to access the methods/all endpoint, but whenever I do this (authorized with an oauth token) I get an error that profileId is required... As mentioned in the original post.

That is when I tried to add the profileId but that was ignored by the package...

tulip sonnet
#

@long elbow as stated earlier the docs don’t suggest that a profileId is accepted on that endpoint - @placid crag can you verify whether a profileId parameter is accepted on that endpoint from mollie‘s side?

Meanwhile @long elbow you can add the profileId yourself to the request:

$request = new GetAllMethodsRequest(…);
$request->query()->add(„profileId“, „…“);

$client->send($request);
long elbow
#

@tulip sonnet Thanks for the response, the API does accept that... And actually returns results

long elbow
#

But some quick testing... Even though I include pricing, no pricing is returned...

tulip sonnet
#

@long elbow a new version of the sdk has been released that fixes that issue.

long elbow
#

@tulip sonnet, thanks for the new version. But it looks like that GetAllPaymentMethodsRequestFactory is not taking the new profileId into account

tulip sonnet
#

@long elbow true. Forgot about that one. Will fix it tomorrow. You can already use the request directly though

long elbow
#

@tulip sonnet thank you very much🙏🏻

pastel sky
#

@tulip sonnet Rick is enjoying WWDC now, but I checked with the team and we do accept profileID on that endpoint. Right now we are fixing the doc, MR should be live soon 🙂

long elbow