Skip to content
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

Split payments #273

Open
JFGHT opened this issue May 2, 2022 · 2 comments
Open

Split payments #273

JFGHT opened this issue May 2, 2022 · 2 comments
Assignees
Labels
API extension Previously missing endpoints/binders.
Milestone

Comments

@JFGHT
Copy link

JFGHT commented May 2, 2022

Hello there.

Does the node api support split payments?

Thanks.

@Pimm
Copy link
Collaborator

Pimm commented Jul 29, 2022

Although not officially supported, it should work:

mollieClient.payments.create({
	amount: { currency: 'EUR', value: '10.00' },
	routing: [
		{
			amount: { currency: 'EUR', value: '2.50' },
			destination: { type: 'organization', organizationId: 'me' }
		},
		{
			amount: { currency: 'EUR', value: '3.50' },
			destination: { type: 'organization', organizationId: 'org_23456' }
		},
		{
			amount: { currency: 'EUR', value: '4.00' },
			destination: { type: 'organization', organizationId: 'org_56789' }
		}
	],});

(Note that ‒ as routing does not exist according to the type definitions ‒ the TypeScript compiler will complain if you're using it.)

Once this feature moves out of closed beta, official support to this client should be added.

@Pimm Pimm self-assigned this Jul 29, 2022
@Pimm
Copy link
Collaborator

Pimm commented Sep 6, 2024

Splitting payments has moved out of beta. This can be added to the client.

@janpaepke janpaepke added the API extension Previously missing endpoints/binders. label Sep 11, 2024
@janpaepke janpaepke added this to the 4.2.0 milestone Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API extension Previously missing endpoints/binders.
Projects
None yet
Development

No branches or pull requests

3 participants