Results 1 to 2 of 2

Thread: Bootstrap 3.1.1 Paypal custom button

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    2

    Bootstrap 3.1.1 Paypal custom button

    Hi,

    I'm trying to replace the add to cart button from paypal:

    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" >
    <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="business" value="testtest.test@test.io">
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="item_name" value="Test">
    <input type="hidden" name="amount" value="199.99">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="button_subtype" value="products">
    <input type="hidden" name="no_note" value="0">
    <input type="hidden" name="tax_rate" value="7.000">
    <input type="hidden" name="shipping" value="5.99">
    <input type="hidden" name="add" value="1">
    <input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>



    to my bootstrap class="btn btn-success btn-lg" button.

    But I can't get Add to Cart text inside my button instead I get inside the btn SUBMIT QUERY text. This is my code right now:

    HTML Code:
    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="testtesttest">
    <input type="image" class="btn btn-success btn-lg" role="button">Add To Cart
    
    </form>

  2. #2
    Junior Member
    Join Date
    May 2014
    Posts
    2
    I Got It!!

    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="testtesttest">
    <input type="image" class="btn btn-success btn-lg" role="button" value="Add To Cart">
    </form>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •