Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Support for Stripe.com?


adatole

Recommended Posts

I was looking at using stripe.com as an alternative to another gateway (the one that recently advised a buyer to smash a violin rather than return it).

 

Is there any support planned for this gateway service?

 

Thanks!

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...
  • 4 weeks later...
  • 4 weeks later...

@@GoTTi Never got a chance, Ill play with it this weekend. Working on a lot of stuff related to WePay and WordPress. Also building a ton more WePay plugins for other open source carts. The OsCommerce and ZenCart now support charging taxes.

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...
  • 1 month later...
  • 3 weeks later...

i am. i have built a stripe payment module but on another cart (Interspire SHopping Cart) but I could easily do it in OSCommerce.

I might be able to get it done next week(around saturday).

 

Once I'm done, I'll let you know guys.

Link to comment
Share on other sites

  • 4 weeks later...

i am. i have built a stripe payment module but on another cart (Interspire SHopping Cart) but I could easily do it in OSCommerce.

I might be able to get it done next week(around saturday).

 

Once I'm done, I'll let you know guys.

 

You will totally get all of my adoration if you can make this available for us.

 

It seems pretty straight forward with all of Stripe's documentation, but my brain just farts at all the API programming.

Link to comment
Share on other sites

  • 4 months later...
  • 4 months later...
  • 10 months later...
  • 1 month later...

I can't get Stripe's test credit card numbers to work.  I'm running OsC 2.3.4, loaded Stripe module, configured with test secret and publishable keys, and testing the API server connection works flawlessly.  However, I've tried several of their test credit card numbers and all I get in the shopping cart is "Please try again and if problems persist, please try another payment method."

 

I've got an e-mail set for debugging and all I get is:

$HTTP_POST_VARS:

Array
(
[cc_save] => true
[comments] => This is a test.
)

 

Any ideas?

Link to comment
Share on other sites

Hi

Go to Stripe, find your dashboard for live or test mode (depending what your store is using) and then look for 'Logs' in the left column (at the foot under Requests)

You'll maybe find some useful info in there

Thanks!  Here's what I found, but it's not telling me much:

Parsed Request Query Parameters

  • email: "my e-mail"
  • payment_user_agent: "Stripe Checkout v3"
  • referrer: "https://stripe.com/docs/checkout"
  • amount: "2000"
  • validation_type: "card"
  • currency: "usd"
  • time_checkout_opened: "1409850674"
  • time_checkout_loaded: "1409850670"
  • card:
    • number: "**** **** **** 4242"
    • cvc: "***"
    • exp_month: "11"
    • exp_year: "2015"
    • name: "my e-mail"
  • key: "pk_test_my public test key"
  • callback: "sjsonp1409850670174"
  • _method: "POST"
Parsed Request POST Body
No body
Response body
  • id: tok_14Z3m5GIimILoPc1Qpt67QN2
  • livemode: false
  • created: 1409850717
  • used: false
  • object: "token"
  • type: "card"
  • card:
    • id: card_14Z3m5GIimILoPc1TtnseqNP
    • object: "card"
    • last4: "4242"
    • brand: "Visa"
    • funding: "credit"
    • exp_month: 11
    • exp_year: 2015
    • fingerprint: "AjyOBrAcisk8KKYM"
    • country: "US"
    • name: "my e-mail"
    • address_line1: null
    • address_line2: null
    • address_city: null
    • address_state: null
    • address_zip: null
    • address_country: null
    • customer: null

email: my e-mail

{

 

 

I used their 4242 4242 4242 4242 card test number and I edited my private test key and e-mail address out of the above - it's all correct in the log. :)

Edited by TomB01
Link to comment
Share on other sites

Sorry, but I think that log was their own test app that I did earlier today just to see if their own test numbers were working.  None of my posts from my store have apparently gotten through to make a log.  My Test API Server Connection works flawlessly in the Admin.  The OsC 2.3.4 demo site works fine and gives a successful checkout completion message, but I can't get that far with my own store.  This was a virgin install two days ago, but I've since added fluid 960gs, Theme Switcher, USPS Rate, and UPS XML.  Would any of those conflict with anything using Stripe? 

Link to comment
Share on other sites

Hi

I don't see anything added that would interfere with Stripe unless UPS/USPS 'does' something at checkout_confirmation. You could try switching them 'off' and see if it works.

 

I've ran a test through on a vanilla 2.3.4 using Stripe with no tokens and payment went OK  - here's the data collected using Developer Tools in a Chrome browser - it may help if you could do something similar and see what you get - I have tried all flavours of the module token/no token etc etc and they all work

 

1. Click 'confirm order' on checkout_confirmation:

Remote Address:50.18.212.157:443
Request URL:https://api.stripe.com/v1/tokens?card[name]=Test+Developer&card[number]=4242424242424242&card[cvc]=123&card[address_line1]=1234+NOwhere&card[address_city]=nowhere&card[address_zip]=65757&card[address_state]=Texas&card[address_country]=US&card[exp_month]=01&card[exp_year]=2015&key=pk_test_IxZRbLVTHQ2YYGRg1q4kUMrB&callback=sjsonp1409857382443&_method=POST
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Host:api.stripe.com
Referer:http://localhost/osc234/checkout_confirmation.php
User-Agent:Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.103 Safari/537.36
Query String Parametersview sourceview URL encoded
card[name]:Test Developer
card[number]:4242424242424242
card[cvc]:123
card[address_line1]:1234 NOwhere
card[address_city]:nowhere
card[address_zip]:65757
card[address_state]:Texas
card[address_country]:US
card[exp_month]:01
card[exp_year]:2015
key:pk_test_IxZRbLVTHQ2YYGRg1q4kUMrB
callback:sjsonp1409857382443
_method:POST
Response Headersview source
Access-Control-Allow-Credentials:true
Access-Control-Allow-Methods:GET, POST, HEAD, OPTIONS, DELETE
Access-Control-Max-Age:300
Cache-Control:no-cache, no-store
Content-Encoding:gzip
Content-Type:application/javascript;charset=utf-8
Date:Thu, 04 Sep 2014 19:03:40 GMT
Server:nginx
Strict-Transport-Security:max-age=31556926; includeSubDomains
Stripe-Version:2014-05-19
Transfer-Encoding:chunked
Vary:Accept-Encoding

Stripe sends back 'OK' and this gets sent to checkout_process:

Remote Address:127.0.0.1:80
Request URL:http://localhost/osc234/checkout_process.php
Request Method:POST
Status Code:302 Found
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:30
Content-Type:application/x-www-form-urlencoded
Cookie:osCsid=aikn3047kks0398nf0cem6cg01
Host:localhost
Origin:http://localhost
Referer:http://localhost/osc234/checkout_confirmation.php
User-Agent:Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.103 Safari/537.36
Form Dataview sourceview URL encoded
stripeToken:tok_4iWZJ5v9AseUTF
Response Headersview source
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:Keep-Alive
Content-Length:0
Content-Type:text/html
Date:Thu, 04 Sep 2014 19:03:37 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive:timeout=5, max=100
Location:http://localhost/osc234/checkout_success.php
Pragma:no-cache
Server:Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19
X-Powered-By:PHP/5.4.19
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...