
16.03.2006, 16:53
|
|
Erfahrener Benutzer
|
|
Registriert seit: 03.03.2005
Beiträge: 136
|
|
Hallo,
habe folgendes Problem, immer wenn ein Kunde per PayPal bezahlt ?bermittelt XT an PayPal nur den Shopnamen und nicht die exakten Inhalte des Shopping-Carts. Ich spreche hier nicht von der Auftrags?bermittlung an XT-Admin, sondern direkt an PayPal.
Ist eigentlich auch logisch, wenn man den "PP_WebsitePaymentsStandard_IntegrationGuide" von PayPal sich druchliest:
Zitat:
Passing Individual Items to PayPal
If your third-party shopping cart can be configured to pass individual items to PayPal,
information about the items will be included in the buyer?s and seller?s History transactions
and notifications. To include information about the items, you will post HTML form elements
to a new version of PayPal?s Shopping Cart flow. This process is much like the one described
in Passing Aggregate Shopping Cart Amount to PayPal, with the following exceptions:
1. Set the cmd variable to _cart.
For example, if you are modifying PayPal Buy Now HTML, you might replace this
required HTML line:
<input type="hidden" name="cmd" value="_xclick">
with
<input type="hidden" name="cmd" value="_cart">
2. Add the upload variable:
<input type="hidden" name="upload" value="1">
3. Define item details.
For each of the following item-specific parameters, define a new set of values that
correspond to each item that was purchased with your third-party cart. Append _x to thvariable name, where x is the item number, starting with 1 and increasing by one for each
item that is added.
4. Repeat for each item included in cart.
Include a set of required variables and any optional variables from the table above for each
item included in your buyer?s cart. The first item included in the cart should be defined
with parameters ending in _1, such as item_name_1, amount_1, and so on. Similarly, the
second item should be denoted with variables like item_name_2, amount_2, and so on.
IMPORTANT: The _x values must increment by one continuously in order to be recognized.
If you skip from item #1 to item #3 without defining an item #2, the third item
will be ignored.
The minimum required HTML for your post to PayPal looks similar to the following.
EXAMPLE 8.1 HTML for Passing Individual Item Detail to PayPal
<form action=?https://www.paypal.com/cgi-bin/webscr? method=?post?>
<input type=?hidden? name=?cmd? value=?_cart?>
<input type=?hidden? name=?upload? value=?1?>
<input type=?hidden? name=?business? value=?francksplace@bigdeal.com?>
<input type=?hidden? name=?item_name_1? value=?Item Name1?>
<input type=?hidden? name=?amount_1? value=?1.00?>
<input type=?hidden? name=?item_name_2? value=?Item Name2?>
<input type=?hidden? name=?amount_2? value=?2.00?>
<input type=?submit?? value=?Upload Cart?>
</form>
To specify currency: All monetary variables (amount_x, shipping_x, shipping2_x,
handling_x, tax_x, and tax_cart) are interpreted in the currency designated by the
currency_code variable posted with the payment. Because currency_code is not itemspecific,
there is no need to append _x to the currency_code variable name. If no
currency_code variable is posted, all monetary values default to U.S. Dollars.
To specify cart-wide tax: Use the tax_cart variable to specify a tax amount that applies to
the entire purchase, rather than to individual items. The tax_cart variable overrides any peritem
tax amount specified with tax_x.
For a complete list of variables, see ?PayPal Shopping Cart HTML and Variables? on
page 133.
|
Nun meine Frage wie komme ich von der aggregierten Geschichte weg:
Zitat:
$process_button_string = xtc_draw_hidden_field('cmd', '_xclick') .
xtc_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) .
xtc_draw_hidden_field('item_name', STORE_NAME) .
xtc_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) , $currencies->get_decimal_places($my_currency))) .
xtc_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] , $currencies->get_decimal_places($my_currency))) .
xtc_draw_hidden_field('currency_code', $my_currency) .
xtc_draw_hidden_field('return', xtc_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) .
xtc_draw_hidden_field('cancel_return', xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
return $process_button_string;
|
und schaffe es dass die einzelnen Artikel / Posten ?bergeben werden?
Ich hoffe, mein Problem ist verstanden worden. Vielen Dank im Voraus f?r die Hilfe!
|