PayPal Website Payments Standard - 2012 - Button Manager API (SOAP) Podręcznik Użytkownika Strona 9

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 78
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 8
Button Manager SOAP API April 2012 9
PayPal Payments Standard Button Manager API Overview
Generated Button Code
1
created through the API. If you can create the button for the specified country using
Create PayPal payment button on PayPal, your merchant will be able to use the button.
This example shows the PayPal code for displaying a hosted Add to Cart button to sell a
wireless mouse:
<form target="paypal" action="https://www.sandbox.paypal.com/cgi-
bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="19218">
<table>
<tr><td><input type="hidden" name="on0"
value="Color">Color</td></tr><tr><td><select name="os0">
<option value="Red">Red $10.00
<option value="Blue">Blue $8.00
<option value="Green">Green $12.00
</select> </td></tr>
<tr><td><input type="hidden" name="on1"
value="Size">Size</td></tr><tr><td><select name="os1">
<option value="Small">Small
<option value="Large">Large
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image"
src="https://www.sandbox.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0"
name="submit" alt="">
<img alt="" border="0"
src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1"
height="1">
</form>
When you display a web page with this code, this button appears:
PayPal-generated code for a link would be as follows:
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_s-
xclick&hosted_button_id=19218
For a link, PayPal does not generate code for options.
Przeglądanie stron 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 ... 77 78

Komentarze do niniejszej Instrukcji

Brak uwag