weil wir aus organistorischen Gründen als Erstmail nur eine Eingangsbestätigung versenden.
Aus der change_order_mail heraus senden wir dann eine Auftragsbestätigung mit Zahlungsaufforderung.
2. Problem konnte ich mittlerweile auch lösen.
Aktuell sieht der Link in der change_order_mail so aus:
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mail@localhost&item_name=Testshop+-+Bestellnummer%3A+123456&amount=0&shipping=0¤cy_code=EUR&return=http://localhost/xtm105d/admin/shop_content.php%3FcoID%3D207&no_shipping=0&cbt=zur%FCck+zum+Shop...&cancel_return=http://localhost/xtm105d/admin/shop_content.php%3FcoID%3D208&cpp_headerback_color=&cpp_headerborder_color=&cpp_payflow_color=&cpp_header_image=http://localhost/xtm105d/admin/templates/xtc5/img/logo_paypal_ipn.jpg&lc=DE
Leider bleiben die Variablen $total und $shipping, die in der Funktion create_paypal_link benötigt werden, in der change_order_mail leer.
In der order_mail stehen die beiden jedoch zur Verfügung.
EDIT: ich sehe gerade, dass der Wert in der order_mail falsch übergeben wird. Beispiel, wobei Versand = 3 und Betrag = 190:
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mail@localhost&item_name=Testshop+-+Bestellnummer%3A+123456&amount=-3&shipping=3¤cy_code=EUR&return=http://localhost/xtm105d/admin/shop_content.php%3FcoID%3D207&no_shipping=0&cbt=zur%FCck+zum+Shop...&cancel_return=http://localhost/xtm105d/admin/shop_content.php%3FcoID%3D208&cpp_headerback_color=&cpp_headerborder_color=&cpp_payflow_color=&cpp_header_image=http://localhost/xtm105d/admin/templates/xtc5/img/logo_paypal_ipn.jpg&lc=DE