Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Adjustments of the klarna payment process #444

Merged
merged 9 commits into from
Jan 20, 2022
Merged

Adjustments of the klarna payment process #444

merged 9 commits into from
Jan 20, 2022

Conversation

ahalberkamp
Copy link
Contributor

In this pr the final modification was done, to make the Klarna payment working.

-Add required fields "workorderid" to payone-request.

  • Remove shipping address from request for klarna payments

…in/payone/model/common/PayoneRequestWithCart.java
@@ -36,7 +36,7 @@ public CreditCardPreauthorizationRequest createPreauthorizationRequest(
final String pseudocardpan = ctPayment.getCustom().getFieldAsString(CustomFieldKeys.CARD_DATA_PLACEHOLDER_FIELD);
CreditCardPreauthorizationRequest request = new CreditCardPreauthorizationRequest(getPayoneConfig(), pseudocardpan, paymentWithCartLike);

mapFormPaymentWithCartLike(request, paymentWithCartLike);
mapFormPaymentWithCartLike(request, paymentWithCartLike, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to assign this boolean value into a variable called isIgnoreShippingAdress before parsing it into another method, so that developers can quickly identify what true/false represents here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ahalberkamp ahalberkamp merged commit 9c4a252 into master Jan 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants