yireo / Yireo_GoogleTagManager2

Open Software License 3.0
148 stars 76 forks source link

#158 fix payment trigger for guest user #159

Closed koentjeh closed 1 year ago

koentjeh commented 1 year ago

related issue: #158

Tbh, I don't know if it works but I'm dropping it in case you're going to work on it hoping it might help.

The webapi.xml contains following configuration:

...
<route url="/V1/guest-carts/:cartId/set-payment-information" method="POST">
    <service class="Magento\Checkout\Api\GuestPaymentInformationManagementInterface" method="savePaymentInformation"/>
...
<route url="/V1/carts/mine/set-payment-information" method="POST">
    <service class="Magento\Checkout\Api\PaymentInformationManagementInterface" method="savePaymentInformation"/>
...

Currently there is no support for the guest payments.

This pull-request contains the exact same PHP logic but with compatible GuestPaymentInformationManagementInterface function arguments within the plugin.

jissereitsma commented 1 year ago

Nice, I overlooked this and didn't test for this. I'm including this right away in the release of today.