Skip to content

Commit

Permalink
fix(payments-plugin): list available methods for orders api
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvdbrug committed Oct 10, 2023
1 parent 446f61c commit cb26f7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/payments-plugin/src/mollie/mollie.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ export class MollieService {
throw Error(`No apiKey configured for payment method ${paymentMethodCode}`);
}
const client = createMollieClient({ apiKey });
const methods = await client.methods.list();
// We use the orders API, so list available methods for that API usage
const methods = await client.methods.list({resource: 'orders'});
return methods.map(m => ({
...m,
code: m.id,
Expand Down

0 comments on commit cb26f7f

Please sign in to comment.