Skip to content

Commit

Permalink
ACP-4455: Payone Paypal Express checkout. (#11169)
Browse files Browse the repository at this point in the history
ACP-4455 Payone Paypal Express checkout.
  • Loading branch information
stereomon authored Nov 28, 2024
1 parent 1516b85 commit 294131a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,29 @@
<property name="paymentMethodName" type="string"/>
<property name="paymentProviderName" type="string"/>
<property name="requiredRequestData" type="array" singular="requiredRequestData"/>
<property name="paymentMethodAppConfiguration" type="PaymentMethodAppConfiguration"/>
</transfer>

<transfer name="PaymentMethodAppConfiguration" strict="true">
<property name="baseUrl" type="string"/>
<property name="endpoints" type="Endpoint[]" singular="endpoint"/>
<property name="checkoutConfiguration" type="CheckoutConfiguration"/>
</transfer>

<transfer name="Endpoint" strict="true">
<property name="name" type="string"/>
<property name="path" type="string"/>
</transfer>

<transfer name="CheckoutConfiguration" strict="true">
<property name="strategy" type="string"/>
<property name="scripts" type="Script[]" singular="script"/>
<property name="paymentServiceProviderData" type="array" singular="paymentServiceProviderDatum" associative="true"/>
</transfer>

<transfer name="Script" strict="true">
<property name="url" type="string"/>
<property name="queryParams" type="array" singular="queryParam" associative="true"/>
</transfer>

<transfer name="RestShipmentMethod">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function findCustomerQuoteByUuid(RestCheckoutRequestAttributesTransfer $r
protected function createQuoteTransfer(
RestCheckoutRequestAttributesTransfer $restCheckoutRequestAttributesTransfer
): QuoteTransfer {
$customerTransfer = (new CustomerTransfer())->fromArray($restCheckoutRequestAttributesTransfer->getCustomer()->toArray(), true);
$customerTransfer = (new CustomerTransfer())->fromArray($restCheckoutRequestAttributesTransfer->getCustomer()->modifiedToArray(), true);

return (new QuoteTransfer())
->setUuid($restCheckoutRequestAttributesTransfer->getIdCart())
Expand Down

0 comments on commit 294131a

Please sign in to comment.