Paypal


OFFERING DISCOUNT
11. Offering a discount.

Paypal allows you to offer a discount.
- “Discount_amount” must be less than “amount”.
- If you don’t specify “discount_amount2″ then “discount_amount” will apply to all items not just the first.
- To use “discount_amount2″ you must specify “discount” as greater than or equal to 0.
You can specify “discount_rate” and “discount_rate2″ as an alternative to “discount_amount” and “discount_amount2″. This applies a percentage from 0 to 100.
Unlike “discount_amount” if you don’t specify “discount_rate2″ then “discount_rate” only applies to the first item.
Use “discount_num” to specify an upper limit on the number of items to which “discount_amount2″ or “discount_rate2″ applies.
Use the button creation tool wizard or this example code that provides a $0.15 discount on the first item ordered and a $0.20 discount on the next four items.
<form action=”https://www.paypal.com/cgi-bin/webscr” method=”post”>

<input type=”hidden” name=”business” value=”herschelgomez@xyzzyu.com”>

<input type=”hidden” name=”cmd” value=”_xclick”>

<input type=”hidden” name=”item_name” value=”Hot Sauce-12 oz. Bottle”>
<input type=”hidden” name=”amount” value=”5.95″>
<input type=”hidden” name=”currency_code” value=”USD”>

<input type=”hidden” name=”discount_amount” value=”0.15″>
<input type=”hidden” name=”discount_amount2″ value=”0.20″>
<input type=”hidden” name=”discount_num” value=”4″>

<input type=”hidden” name=”undefined_quantity” value=”1″>

<input type=”image” name=”submit” border=”0″ src=”https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif” alt=”PayPal – The safer, easier way to pay online”>
<img alt=”" border=”0″ width=”1″ height=”1″ src=”https://www.paypal.com/en_US/i/scr/pixel.gif” >

</form>
---------------------------------------------------------------------------------------------------

ALL PAYPAL VARIABLE
https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/

ALL VARIALBE DESCRIBED HERE

http://designertuts.com/adding-an-advanced-paypal-buy-now-button.php



Paypal
CAPLES
http://ccaples.com/index.php/api-s/paypal-nvp/nvp-quick-test


Paypal Integrate using wizard

https://www.paypal-labs.com/integrationwizard/index.php

Payflow Pro Developer’s Guide

https://cms.paypal.com/cms_content/AU/en_AU/files/developer/PP_PayflowPro_Guide.pdf


Testing  Credit Card number

American Express 378282246310005
American Express 371449635398431
American Express Corporate 378734493671000
Diners Club 30569309025904
Diners Club 38520000023237
Discover 6011111111111117
Discover 6011000990139424
JCB 3530111333300000
JCB 3566002020360505
MasterCard 5555555555554444


PAYPAL INTEGRATION WITH EXAMPLE
http://www.evoluted.net/thinktank/web-development/paypal-php-integration


No comments:

Post a Comment