#1 (permalink)  
Alt 16.03.2006, 16:53
Erfahrener Benutzer
 
Registriert seit: 03.03.2005
Beiträge: 136
Standard

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 16.03.2006, 20:17
 
Registriert seit: 15.12.2005
Beiträge: 300
Standard

ich hab von php keine ahnung, aber
der von paypal geforderte code
<input type=?hidden? name=?item_name_2? value=?Item Name2?>

m?sstest du mit
xtc_draw_hidden_field('item_name_1',z.b product_name) senden k?nnen.

das problem ist die anzahl und der name des feldes, das in abh?ngigkeit der produktanzahl generiert werden muss.

vielleicht w?re es dann einfacher
die artikel in das paypal textfeld zu ?bergeben, welches auf der zahlungsanforderung sichtbar ist.

der code
<textarea cols="50" rows="5" id="uome_message" name="uome_message"></textarea>

das heisst dann

xtc_draw_hidden_field('uome_message',$variable_der _bestellungsliste) oder so

welche variable ausgelesen werden muss weiss ich nicht.
schlagt mich wenn ich falsch liege.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 16.03.2006, 20:23
 
Registriert seit: 15.12.2005
Beiträge: 300
Standard

das kannst du ganz einfach probieren wenn du das feld
xtc_draw_hidden_field('uome_message',' hallo welt ')

in die zeilen einf?gst.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 17.03.2006, 11:08
 
Registriert seit: 15.12.2005
Beiträge: 300
Standard

Stop - unsinn - auf der aufgerufenen seite befindet sich kein textfeld.

aber hier kannste es versuchen
xtc_draw_hidden_field('item_name',' hallo welt ')
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 20.03.2006, 11:45
Erfahrener Benutzer
 
Registriert seit: 03.03.2005
Beiträge: 136
Standard

ok versuche es mal...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #6 (permalink)  
Alt 22.03.2006, 23:20
Neuer Benutzer
 
Registriert seit: 28.07.2004
Beiträge: 10
Standard

Und? hat es geklappt und erkl?re mal bitte Deine Schritte!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #7 (permalink)  
Alt 23.03.2006, 12:49
 
Registriert seit: 15.12.2005
Beiträge: 300
Standard

wenn ich mich recht erinnere setzt das oscommerce-paypal-modul die gesamte order in das xtc_hidden_filed('item_name', ........)
weiss nicht mehr genau. einfach mal downloaden und abgleichen
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #8 (permalink)  
Alt 23.03.2006, 13:03
Erfahrener Benutzer
 
Registriert seit: 03.03.2005
Beiträge: 136
Standard

sorry bisher hat es nicht geklappt. ich werde mir mal das os commerce ding anschauen (aber erst n?chste woche)... und posten falls es klappt!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #9 (permalink)  
Alt 23.03.2006, 19:42
Neuer Benutzer
 
Registriert seit: 28.07.2004
Beiträge: 10
Standard

wo kommt denn dann das modul hinein? Ich meine die Daten?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #10 (permalink)  
Alt 24.03.2006, 10:12
 
Registriert seit: 15.12.2005
Beiträge: 300
Standard

is schon drin, -> paypal.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
artikelbermittlung, exakte, mglich, paypal

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 18:52 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand