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

Support Mollie Orders API for Klarna Pay Later and Klarna Slice It methods #190

Closed
rvdsteege opened this issue Aug 25, 2021 · 5 comments
Closed

Comments

@rvdsteege
Copy link
Member

Klarna Pay Later and Klarna Slice It (and vouchers) are currently not supported for Mollie, as these require using the Orders API.

@rvdsteege
Copy link
Member Author

Also required for Klarna Pay now.

Internal Help Scout ticket: https://secure.helpscout.net/conversation/1773692826/23434

@rvdsteege rvdsteege self-assigned this Jun 10, 2022
@remcotolsma
Copy link
Member

Some more details in internal / private Basecamp to-do:
https://basecamp.com/1810084/projects/10966871/todos/384902142

@remcotolsma
Copy link
Member

remcotolsma commented Jun 13, 2022

A customer inquired about this again:

Hope you are doing well.
I came back again for 2nd time on the topic that we discussed a few months back.

The two payment Klarna payment methods "Klarna Pay Later" (in German "Klarna Rechnungskauf"?) and "Klarna Slice It" (in German "Klarna Ratenkauf"?) are currently not supported in the Pronamic Pay plugin.

We already went into production last October 2021 without them.

Internal Help Scout ticket: https://secure.helpscout.net/conversation/1915990137/24057/.

ℹ️ This customer is using MemberPress.

@remcotolsma
Copy link
Member

remcotolsma commented Jun 13, 2022

I created the following branches for developing this feature:

In https://github.com/mollie/WooCommerce/blob/4ae543c8fc0ddfbc05acef06a622124c06299293/src/Payment/PaymentService.php#L106-L141 they determine per WooCommerce order whether the Mollie Payments API or Mollie Orders API should be used.

Note
If you are looking to create payments with the Klarna Pay now, Klarna Pay later, Klarna Slice it, or voucher payment methods, please use Create order instead.

https://docs.mollie.com/reference/v2/payments-api/create-payment

\in_array(
	$payment->get_payment_method(),
	[
		PaymentMethods::KLARNA_PAY_LATER,
		PaymentMethods::KLARNA_PAY_NOW,
		PaymentMethods::KLARNA_PAY_OVER_TIME,
	],
	true
)

@remcotolsma
Copy link
Member

This is merged in: pronamic/wp-pronamic-pay-mollie#4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants