Changeset 227379
- Timestamp:
- 04/10/2010 09:02:47 AM (16 years ago)
- Location:
- enhanced-paypal-shortcodes/trunk
- Files:
-
- 2 edited
-
enhanced-paypal-shortcodes.php (modified) (18 diffs)
-
readme.txt (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
enhanced-paypal-shortcodes/trunk/enhanced-paypal-shortcodes.php
r208966 r227379 33 33 34 34 35 Version: 0. 235 Version: 0.3 36 36 37 37 … … 81 81 82 82 83 define('TWPW_VERSION', '0. 2'); // Current version of the Plugin83 define('TWPW_VERSION', '0.3'); // Current version of the Plugin 84 84 85 85 … … 135 135 136 136 137 item _no = A unique identifier for your product / service137 itemno = A unique identifier for your product / service 138 138 139 139 … … 143 143 144 144 145 no _shipping = Prompt for Shipping address145 noshipping = Prompt for Shipping address 146 146 147 147 0 is prompt, but don't require … … 155 155 156 156 157 no _note = Prompt payers to include a note (Paynow buttons only)157 nonote = Prompt payers to include a note (Paynow buttons only) 158 158 159 159 0 is show the note box and prompt the user … … 165 165 166 166 167 currency _code = The currency for the transaction167 currencycode = The currency for the transaction 168 168 169 169 Australian Dollar AUD … … 389 389 390 390 391 margin -left = the amount of space between the div and the text to the left of the div (particularly good to use when using float=right)391 marginleft = the amount of space between the div and the text to the left of the div (particularly good to use when using float=right) 392 392 393 393 Default - if this value is missing, the page format is used … … 395 395 396 396 397 margin -right = the amount of space between the div and the text to the right of the div397 marginright = the amount of space between the div and the text to the right of the div 398 398 399 399 (particularly good to use when using float=left) … … 403 403 404 404 405 margin -top = the amount of space to the line above the div405 margintop = the amount of space to the line above the div 406 406 407 407 Default = 10px; … … 409 409 410 410 411 margin -bottom = the amount of space to the line below the div411 marginbottom = the amount of space to the line below the div 412 412 413 413 Default = 10px; … … 427 427 Buy Now Button: 428 428 429 [paypal type="paynow" amount="12.99" email="payments@arvoreentreasures.com" item _no="12345657" name="Description" no_shipping="1" no_note="1" currency_code="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2" notifyurl="http://notifyurl.com" notifyurl2="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" ]429 [paypal type="paynow" amount="12.99" email="payments@arvoreentreasures.com" itemno="12345657" name="Description" noshipping="1" no_note="1" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2" notifyurl="http://notifyurl.com" notifyurl2="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" ] 430 430 431 431 … … 435 435 Subscribe Button with 2 trial periods and recurring Monthly payments. 436 436 437 [paypal type="subscribe" email="payments@arvoreentreasures.com" item _no="12345657" name="Description" no_shipping="1" currency_code="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" a1="1" p1="7" t1="D" a2="3" p2="1" t3="M" a3="47" p3="1" t3="M" rm="2" notifyurl="http://notifyurl.com" notifyurl2="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode"]437 [paypal type="subscribe" email="payments@arvoreentreasures.com" itemno="12345657" name="Description" noshipping="1" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" a1="1" p1="7" t1="D" a2="3" p2="1" t3="M" a3="47" p3="1" t3="M" rm="2" notifyurl="http://notifyurl.com" notifyurl2="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode"] 438 438 439 439 … … 547 547 <input type="hidden" name="business" value="'.$atts[email].'"> 548 548 549 <input type="hidden" name="currency_code" value="'.$atts[currency _code].'">550 551 <input type="hidden" name="item_number" value="'.$atts['item _no'].'">549 <input type="hidden" name="currency_code" value="'.$atts[currencycode].'"> 550 551 <input type="hidden" name="item_number" value="'.$atts['itemno'].'"> 552 552 553 553 <input type="hidden" name="item_name" value="'.$atts['name'].'"> … … 575 575 576 576 577 if ($atts['no _shipping'] > -1) {577 if ($atts['noshipping'] > -1) { 578 578 579 579 $code.=' 580 580 581 <input type="hidden" name="no_shipping" value="'.$atts['no _shipping'].'">';581 <input type="hidden" name="no_shipping" value="'.$atts['noshipping'].'">'; 582 582 583 583 } … … 585 585 586 586 587 if ($atts['no _note'] > -1) {587 if ($atts['nonote'] > -1) { 588 588 589 589 $code.=' 590 590 591 <input type="hidden" name="no_note" value="'.$atts['no _note'].'" />';591 <input type="hidden" name="no_note" value="'.$atts['nonote'].'" />'; 592 592 593 593 } … … 749 749 if ($atts['currency_code']) { 750 750 751 $code.='<input type="hidden" name="currency_code" value="'.$atts[currency _code].'">';751 $code.='<input type="hidden" name="currency_code" value="'.$atts[currencycode].'">'; 752 752 753 753 } … … 757 757 if ($atts['item_number']) { 758 758 759 $code.='<input type="hidden" name="item_number" value="'.$atts['item _no'].'">';759 $code.='<input type="hidden" name="item_number" value="'.$atts['itemno'].'">'; 760 760 761 761 } … … 781 781 if ($atts['no_shipping'] >-1 ) { 782 782 783 $code.='<input type="hidden" name="no_shipping" value="'.$atts['no _shipping'].'" />';783 $code.='<input type="hidden" name="no_shipping" value="'.$atts['noshipping'].'" />'; 784 784 785 785 } -
enhanced-paypal-shortcodes/trunk/readme.txt
r208963 r227379 121 121 122 122 123 item _no = A unique identifier for your product / service123 itemno = A unique identifier for your product / service 124 124 125 125 … … 129 129 130 130 131 no _shipping = Prompt for Shipping address131 noshipping = Prompt for Shipping address 132 132 133 133 0 is prompt, but don't require … … 141 141 142 142 143 no _note = Prompt payers to include a note (Paynow buttons only)143 nonote = Prompt payers to include a note (Paynow buttons only) 144 144 145 145 0 is show the note box and prompt the user … … 151 151 152 152 153 currency _code = The currency for the transaction153 currencycode = The currency for the transaction 154 154 155 155 Australian Dollar AUD … … 349 349 350 350 351 text -align = the alignment of the image / text within the div351 textalign = the alignment of the image / text within the div 352 352 353 353 Allowable values: … … 375 375 376 376 377 margin -left = the amount of space between the div and the text to the left of the div (particularly good to use when using float=right)377 marginleft = the amount of space between the div and the text to the left of the div (particularly good to use when using float=right) 378 378 379 379 Default - if this value is missing, the page format is used … … 381 381 382 382 383 margin -right = the amount of space between the div and the text to the right of the div383 marginright = the amount of space between the div and the text to the right of the div 384 384 385 385 (particularly good to use when using float=left) … … 389 389 390 390 391 margin -top = the amount of space to the line above the div391 margintop = the amount of space to the line above the div 392 392 393 393 Default = 10px; … … 395 395 396 396 397 margin -bottom = the amount of space to the line below the div397 marginbottom = the amount of space to the line below the div 398 398 399 399 Default = 10px; … … 409 409 410 410 411 [paypal type="paynow" amount="12.99" email="payments@arvoreentreasures.com" item _no="12345657" name="Description" no_shipping="1" no_note="1" currency_code="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2" notifyurl="http://notifyurl.com" notifyurl2="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px"]411 [paypal type="paynow" amount="12.99" email="payments@arvoreentreasures.com" itemno="12345657" name="Description" noshipping="1" no_note="1" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2" notifyurl="http://notifyurl.com" notifyurl2="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px"] 412 412 413 413 … … 417 417 418 418 419 [paypal type="subscribe" email="payments@arvoreentreasures.com" item _no="12345657" name="Description" no_shipping="1" currency_code="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" a1="1" p1="7" t1="D" a2="3" p2="1" t3="M" a3="47" p3="1" t3="M" rm="2" notifyurl="http://notifyurl.com" notifyurl2="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px"]419 [paypal type="subscribe" email="payments@arvoreentreasures.com" itemno="12345657" name="Description" noshipping="1" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" a1="1" p1="7" t1="D" a2="3" p2="1" t3="M" a3="47" p3="1" t3="M" rm="2" notifyurl="http://notifyurl.com" notifyurl2="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px"] 420 420 421 421 … … 467 467 0.2 - Updated 22 February 2010 to include hosted buttons and fix some formatting issues 468 468 469 0.3 - Updated 10 April 2010 to fix typos 470 469 471 470 472 … … 474 476 475 477 0.2 - adds hosted paypal buttons support and formatting works correctly. 478 479 0.3 - required, certain typos in code caused problems with button creation.
Note: See TracChangeset
for help on using the changeset viewer.