Plugin Directory

Changeset 227379


Ignore:
Timestamp:
04/10/2010 09:02:47 AM (16 years ago)
Author:
CharlyLeetham
Message:

Update to 0.3 fixes typos in button creation code.

Location:
enhanced-paypal-shortcodes/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • enhanced-paypal-shortcodes/trunk/enhanced-paypal-shortcodes.php

    r208966 r227379  
    3333
    3434
    35 Version: 0.2
     35Version: 0.3
    3636
    3737
     
    8181
    8282
    83 define('TWPW_VERSION', '0.2');          // Current version of the Plugin
     83define('TWPW_VERSION', '0.3');          // Current version of the Plugin
    8484
    8585
     
    135135
    136136
    137 item_no = A unique identifier for your product / service
     137itemno = A unique identifier for your product / service
    138138
    139139
     
    143143
    144144
    145 no_shipping = Prompt for Shipping address
     145noshipping = Prompt for Shipping address
    146146
    147147      0 is prompt, but don't require
     
    155155
    156156
    157 no_note = Prompt payers to include a note (Paynow buttons only)
     157nonote = Prompt payers to include a note (Paynow buttons only)
    158158
    159159      0 is show the note box and prompt the user
     
    165165
    166166
    167 currency_code = The currency for the transaction
     167currencycode = The currency for the transaction
    168168
    169169      Australian Dollar AUD
     
    389389
    390390
    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)
     391marginleft = the amount of space between the div and the text to the left of the div (particularly good to use when using float=right)
    392392
    393393Default - if this value is missing, the page format is used
     
    395395
    396396
    397 margin-right = the amount of space between the div and the text to the right of the div
     397marginright = the amount of space between the div and the text to the right of the div
    398398
    399399(particularly good to use when using float=left)
     
    403403
    404404
    405 margin-top = the amount of space to the line above the div
     405margintop = the amount of space to the line above the div
    406406
    407407Default = 10px;
     
    409409
    410410
    411 margin-bottom = the amount of space to the line below the div
     411marginbottom = the amount of space to the line below the div
    412412
    413413Default = 10px;
     
    427427Buy Now Button:
    428428
    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" ]
    430430
    431431
     
    435435Subscribe Button with 2 trial periods and recurring Monthly payments.
    436436
    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"]
    438438
    439439
     
    547547    <input type="hidden" name="business" value="'.$atts[email].'">
    548548
    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'].'">
    552552
    553553    <input type="hidden" name="item_name" value="'.$atts['name'].'">
     
    575575
    576576
    577          if ($atts['no_shipping'] > -1) {
     577         if ($atts['noshipping'] > -1) {
    578578
    579579                $code.='
    580580
    581         <input type="hidden" name="no_shipping" value="'.$atts['no_shipping'].'">';
     581        <input type="hidden" name="no_shipping" value="'.$atts['noshipping'].'">';
    582582
    583583         }
     
    585585
    586586
    587          if ($atts['no_note'] > -1) {
     587         if ($atts['nonote'] > -1) {
    588588
    589589        $code.='
    590590
    591                 <input type="hidden" name="no_note" value="'.$atts['no_note'].'" />';
     591                <input type="hidden" name="no_note" value="'.$atts['nonote'].'" />';
    592592
    593593         }
     
    749749        if ($atts['currency_code']) {
    750750
    751          $code.='<input type="hidden" name="currency_code" value="'.$atts[currency_code].'">';
     751         $code.='<input type="hidden" name="currency_code" value="'.$atts[currencycode].'">';
    752752
    753753        }
     
    757757        if ($atts['item_number']) {
    758758
    759          $code.='<input type="hidden" name="item_number" value="'.$atts['item_no'].'">';
     759         $code.='<input type="hidden" name="item_number" value="'.$atts['itemno'].'">';
    760760
    761761        }
     
    781781        if ($atts['no_shipping'] >-1 ) {
    782782
    783         $code.='<input type="hidden" name="no_shipping" value="'.$atts['no_shipping'].'" />';
     783        $code.='<input type="hidden" name="no_shipping" value="'.$atts['noshipping'].'" />';
    784784
    785785        }
  • enhanced-paypal-shortcodes/trunk/readme.txt

    r208963 r227379  
    121121
    122122
    123 item_no = A unique identifier for your product / service
     123itemno = A unique identifier for your product / service
    124124
    125125
     
    129129
    130130
    131 no_shipping = Prompt for Shipping address
     131noshipping = Prompt for Shipping address
    132132
    133133      0 is prompt, but don't require
     
    141141
    142142
    143 no_note = Prompt payers to include a note (Paynow buttons only)
     143nonote = Prompt payers to include a note (Paynow buttons only)
    144144
    145145      0 is show the note box and prompt the user
     
    151151
    152152
    153 currency_code = The currency for the transaction
     153currencycode = The currency for the transaction
    154154
    155155      Australian Dollar AUD
     
    349349
    350350
    351 text-align = the alignment of the image / text within the div
     351textalign = the alignment of the image / text within the div
    352352
    353353Allowable values:
     
    375375
    376376
    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)
     377marginleft = the amount of space between the div and the text to the left of the div (particularly good to use when using float=right)
    378378
    379379Default - if this value is missing, the page format is used
     
    381381
    382382
    383 margin-right = the amount of space between the div and the text to the right of the div
     383marginright = the amount of space between the div and the text to the right of the div
    384384
    385385(particularly good to use when using float=left)
     
    389389
    390390
    391 margin-top = the amount of space to the line above the div
     391margintop = the amount of space to the line above the div
    392392
    393393Default = 10px;
     
    395395
    396396
    397 margin-bottom = the amount of space to the line below the div
     397marginbottom = the amount of space to the line below the div
    398398
    399399Default = 10px;
     
    409409
    410410
    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"]
    412412
    413413
     
    417417
    418418
    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"]
    420420
    421421
     
    4674670.2 - Updated 22 February 2010 to include hosted buttons and fix some formatting issues
    468468
     4690.3 - Updated 10 April 2010 to fix typos
     470
    469471
    470472
     
    474476
    4754770.2 - adds hosted paypal buttons support and formatting works correctly.
     478
     4790.3 - required, certain typos in code caused problems with button creation.
Note: See TracChangeset for help on using the changeset viewer.