help please !

onlywork1211

Registered Member
Joined
Mar 30, 2016
Messages
96
Reaction score
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
 
I'm not too familiar with ruby,Is there a reason why your using that versus PHP or Java?
 
I'm not too familiar with ruby,Is there a reason why your using that versus PHP or Java?
no , But I have no idea with anything with coding :(
please help me if u can .. they provide php , ruby and 2 other ..
 
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.
 
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.
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 :)
 
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.
 
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.
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
 
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
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.
 
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.
 
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.
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
 
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
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
 
Back
Top