tdttdt MemberComments: 1 Received thanks: 0 Member since: January 12 edited January 12
<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/shopware/app-system/0.1.0/src/Core/Content/App/Manifest/Schema/manifest-1.0.xsd">;
    <meta>
        <name>XXX</name>
        <label>XXX</label>
        <author>XXX</author>
        <copyright>(c) by XXX</copyright>
        <version>1.0.0</version>
        <icon>icon.png</icon>
        <license />
    </meta>
    <setup>
        <secret>XXX</secret>
        <registrationUrl>https://example.com/registration</registrationUrl>;
    </setup>

    <permissions>
        <create>product</create>
        <create>product_visibility</create>
        <create>promotion</create>
        <create>promotion_individual_code</create>
        <create>customer</create>
        <create>customer_address</create>
        <create>state_machine_history</create>

        <read>tax</read>
        <read>currency</read>
        <read>promotion_individual_code</read>
        <read>salutation</read>
        <read>country</read>
        <read>customer_group</read>
        <read>payment_method</read>
        <read>order</read>

        <update>product</update>
        <update>order</update>
    </permissions>

    <webhooks>
        <webhook name="checkoutOrderPlaced" url="https://example.com/webhooks"; event="checkout.order.placed"/>
        <webhook name="orderStateChanged" url="https://example.com/webhooks"; event="state_machine.order.state_changed"/>
        <webhook name="orderTransactionStateChanged" url="https://example.com/webhooks"; event="state_machine.order_transaction.state_changed"/>
    </webhooks>
</manifest>

Hallo,

ich bekomme es irgendwie nicht hin, dass die Webhooks an meinen Server geschickt werden. Der initiale Handshake mit /registration und den /registration/confirm (confirmationUrl) beim Installieren der App klappt und erhalte auch ApiKey, SecretKey usw. über den Confirm. Hier der Inhalt vom manifest.xml:

Muss ich noch etwas bestimmtes konfigurieren? Hab meine Serveradresse duch example.com ersetzt.

Vielen Dank schon mal im Vorraus!

 

EDIT: Ich hab den /webhooks Endpunkt mit ein paar POST Request getestet und das scheint zu klappen. 

Sign In or Register to comment.