1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

help please !

Discussion in 'Programming' started by onlywork1211, Oct 7, 2016.

  1. onlywork1211

    onlywork1211 Registered Member

    Joined:
    Mar 30, 2016
    Messages:
    96
    Likes Received:
    3
    Hello ,
    I'm trying to use stripe on my website , what the problame with this code ?

    Code:
    <form action="/your-server-side-code" method="POST">
      <script
        src="https://checkout.stripe.com/checkout.js" class="stripe-button"
        data-key="sk_test_vsjE9A67uXrtx4BHq5hdDA50"
        data-amount="3000"
        data-name="**************"
        data-description="Widget"
        data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
        data-locale="auto"
        data-zip-code="true"
        data-currency="usd">
      </script>
    </form>
    Stripe.api_key = "**********************"
    token = params[:stripeToken]
    begin
      charge = Stripe::Charge.create(
        :amount => 3000,
        :currency => "usd",
        :source => token,
        :description => "Example charge ($30.00) "
      )
    rescue Stripe::CardError => e
    end
    
    
     
  2. Smm seller

    Smm seller BANNED BANNED

    Joined:
    Aug 17, 2016
    Messages:
    80
    Likes Received:
    0
    Gender:
    Female
    :(I don't know. :oops:
     
  3. onlywork1211

    onlywork1211 Registered Member

    Joined:
    Mar 30, 2016
    Messages:
    96
    Likes Received:
    3
    help please :(
     
  4. i_code

    i_code Registered Member

    Joined:
    Sep 30, 2016
    Messages:
    55
    Likes Received:
    13
    Gender:
    Male
    I'm not too familiar with ruby,Is there a reason why your using that versus PHP or Java?
     
  5. onlywork1211

    onlywork1211 Registered Member

    Joined:
    Mar 30, 2016
    Messages:
    96
    Likes Received:
    3
    no , But I have no idea with anything with coding :(
    please help me if u can .. they provide php , ruby and 2 other ..
     
  6. i_code

    i_code Registered Member

    Joined:
    Sep 30, 2016
    Messages:
    55
    Likes Received:
    13
    Gender:
    Male
    Ok i have read over their docs a bit and it seems like you need to install a gem for ruby to get their library to work. https://stripe.com/docs/libraries : Scroll down to the ruby section.Let me know if this helps.
     
  7. onlywork1211

    onlywork1211 Registered Member

    Joined:
    Mar 30, 2016
    Messages:
    96
    Likes Received:
    3
    man I use wix.com so I dont know what I should use php or ruby or ...
    just tell me how to do it exactly please :)
     
  8. Terminal15

    Terminal15 BANNED BANNED

    Joined:
    Jun 9, 2015
    Messages:
    218
    Likes Received:
    52
    Gender:
    Male
    Is it hosted on a live website?, Do you have a fiddle i can look at?, Integrating stripe is easy, You shouldn't have problems but then again we wouldn't know if you don't provide us anything apart that code.
     
    • Thanks Thanks x 1
  9. onlywork1211

    onlywork1211 Registered Member

    Joined:
    Mar 30, 2016
    Messages:
    96
    Likes Received:
    3
    I just use the free trail of wix.com , and I copy the code I was trying to use on my post . I get this code from stripe and follow thier steps
     
  10. Terminal15

    Terminal15 BANNED BANNED

    Joined:
    Jun 9, 2015
    Messages:
    218
    Likes Received:
    52
    Gender:
    Male
    Hehe, So you are just using that code with no additional scripts and expect it to work? Are you using it with Wix store? or you have a custom script made?, Direct me to the stripe page you found that code on.
     
    • Thanks Thanks x 1
  11. Emma Clark

    Emma Clark Newbie

    Joined:
    Aug 3, 2016
    Messages:
    21
    Likes Received:
    3
    Location:
    California
    Home Page:
    I have no idea anything with coding!!
     
  12. Phil Gangluff

    Phil Gangluff Newbie

    Joined:
    Mar 12, 2014
    Messages:
    38
    Likes Received:
    11
    Occupation:
    Full-Time Internet Marketer
    Location:
    Arkansas, USA
    Home Page:
    Wix does not use Ruby. There is literally no way that code is going to run on a wix site.

    Use the php version.

    It's very unlikely you're going to get Stripe to run on a Wix site at all. You need SSL for Stripe, and I doubt you have that if your using Wix.

    If you want to use Stripe you need your own hosting, not Wix.
     
    • Thanks Thanks x 1
  13. onlywork1211

    onlywork1211 Registered Member

    Joined:
    Mar 30, 2016
    Messages:
    96
    Likes Received:
    3
    first code :
    https://stripe.com/docs/checkout/tutorial
    second code :
    https://stripe.com/docs/charges
    I get this method from :


    I use wix ( free ) and intend to buy domain soon .
     
  14. onlywork1211

    onlywork1211 Registered Member

    Joined:
    Mar 30, 2016
    Messages:
    96
    Likes Received:
    3
    Any advice about site like wix but will work with stripe ??
    I intend to use paid version of it .
    what do u think about http://www.jimdo.com
     
  15. Terminal15

    Terminal15 BANNED BANNED

    Joined:
    Jun 9, 2015
    Messages:
    218
    Likes Received:
    52
    Gender:
    Male
    You are doing it all wrong, I was thinking you were gonna use wix store to integrate stripe, But if you are intending to do it on Site builder from Wix i doubt it will work,

    Get a cheap cpanel hosting, add an SSL, Install wordpress use a plugin for stripe (There are a handful of those), OR use http://trychec.com, They will charge you some fee i guess on each transaction,

    Finally if you don't want any of those, You can get a hosting and accept payments through Stripe by using PHP script.,

    Cheers
     
  16. GodEnel

    GodEnel Registered Member

    Joined:
    Oct 11, 2016
    Messages:
    50
    Likes Received:
    2
    Gender:
    Male
    Damn codes.