Dzieki wielkie, to chyba rozwiarze wszystkie moje problemy. Rozumiem ze moge sobie ten parametr tak przesylac przez pare stron az do koncowej gdzie wysle uzbierane parametry przez POST ?
No dobrze a wiec dalej. Mam taki kod, jest to kod platnosci za pomoca paypal, jako ze platnosc jest wysylana za pomoca formularza postanowilem go przystosowac do swoich celow, jednakze niewszystkie zmienne po przerobce daja mi jakies wartosci np zmienna $amount czy $cart_id dziala prawidlowo a zmienna $product.name nie podstawia zadnej wartosci. czym to moze byc spowodowane ?
LISTING WZORCOWY
<html>
<head>
<script type="text/javascript" src="http://{$url}js/jquery/jquery-1.2.6.pack.js"></script>
</head>
<body>
<p>{$redirect_text}<br /><a href="java script:history.go(-1);">{$cancel_text}</a></p>
<form action="{$paypal_url}" method="post" id="paypal_form" class="hidden">
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="address_override" value="1" />
<input type="hidden" name="first_name" value="{$address->firstname}" />
<input type="hidden" name="last_name" value="{$address->lastname}" />
<input type="hidden" name="address1" value="{$address->address1}" />
{if $address->address2 != NULL}
<input type="hidden" name="address2" value="{$address->address2}" />
{/if}
<input type="hidden" name="city" value="{$address->city}" />
<input type="hidden" name="zip" value="{$address->postcode}" />
<input type="hidden" name="country" value="{$country->iso_code}" />
{if $state != NULL}
<input type="hidden" name="state" value="{$state->iso_code}" />
{/if}
<input type="hidden" name="amount" value="{$amount}" />
<input type="hidden" name="email" value="{$customer->email}" />
{if !$discount}
{foreach from
=$products key=k item
=product
} <input type="hidden" name="item_name_{$k+1}" value="{$product.name}{if isset($product.attributes)} - {$product.attributes}{/if}" />
<input type="hidden" name="amount_{$k+1}" value="{$product.price_wt}" />
<input type="hidden" name="quantity_{$k+1}" value="{$product.cart_quantity}" />
{/foreach}
<input type="hidden" name="shipping_1" value="{$shipping}" />
{else}
<input type="hidden" name="item_name_1" value="{$cart_text}" />
<input type="hidden" name="amount_1" value="{$total}" />
<input type="hidden" name="quantity_1" value="1" />
{/if}
<input type="hidden" name="business" value="{$business}" />
<input type="hidden" name="receiver_email" value="{$business}" />
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="currency_code" value="{$currency_module->iso_code}" />
<input type="hidden" name="payer_id" value="{$customer->id}" />
<input type="hidden" name="payer_email" value="{$customer->email}" />
<input type="hidden" name="custom" value="{$cart_id}" />
<input type="hidden" name="return" value="http://{$url}order-confirmation.php?key={$customer->secure_key}&id_cart={$cart_id}&id_module={$paypal_id}&slowvalidation" />
<input type="hidden" name="cancel_return" value="http://{$url}index.php" />
<input type="hidden" name="notify_url" value="http://{$url}modules/paypal/validation.php" />
{if $header != NULL}
<input type="hidden" name="cpp_header_image" value="{$header}" />
{/if}
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="bn" value="PRESTASHOP_WPS" />
<input type="hidden" name="cbt" value="{$return_text}" />
</form>
<script type="text/javascript">
{literal}
$(document).ready(function() {
$('#paypal_form').submit();
});
{/literal}
</script>
</body>
</html>
MOJ LISTING:
Zatwierdzenie spowoduje przekierowanie formularza z danymi zakupu na strone
<form action="http://www.mojastrone/.mojaphp" method="POST">
<input type="hidden" name="zlozFormularzRatalny" value="true" />
<input type="hidden" name="partnerId" value="97" />
<input type="hidden" name="partnerSessionId" value="
<?php echo session_id(); ?>" />
<input type="text" name="identyfikator_zamowienia" value="{$cart_id}" readonly="readonly" />
<input type="text" name="produkt_1_price" value ="{$amount}" readonly="readonly" />
<input type="text" name="produkt_1_id" value="{$product.name}" readonly="readonly" />
Sory wiem ze troche duzo tego kodu mam nadzieje ze ktos pomoze.