if you’re using our bindings, you can just set it once, as a config — stripe.api_version = ‘2013-12-03’
NiinjaCo
we are actually using a .net api wrapper that hasn't upgraded to support 2014-01-31 yet - i don't think it supports changing headers of the underlying requests
i will look into that - but since it's difficult to update production code, if there was a way for us to get our default flipped back, it would bring our app back to life
_adie joined the channel
nelsonhart has quit
mdhopkins joined the channel
alsobrsp joined the channel
darragh joined the channel
alsobrsp has quit
Jake232 joined the channel
funburn has quit
Guest225 has quit
saikat has quit
NiinjaCo has quit
timtch has quit
_adie has quit
knite has quit
John__ joined the channel
John__ has quit
jayeb has quit
Luke_ has quit
timtch joined the channel
beyondcreed__ has quit
Luke joined the channel
chase_ has left the channel
jordanyee has quit
mdhopkins has quit
jordanyee joined the channel
funburn joined the channel
Luke has quit
Luke joined the channel
funburn has quit
mdhopkins joined the channel
funburn joined the channel
mahmoudi_ has quit
funburn has quit
nelhage has quit
nelhage joined the channel
boucher has quit
boucher joined the channel
kiranb_ is now known as kiranb
timtch has quit
dustinfarris joined the channel
sc0ttius joined the channel
sc0ttius
anyone around for a question about Checkout?
jordanyee has quit
boucher has quit
boucher joined the channel
mahmoudimus joined the channel
mahmoudimus has quit
jordanyee joined the channel
mbu has quit
mahmoudimus joined the channel
[o__o] has left the channel
[o__o] joined the channel
Luke has quit
adie joined the channel
jimdanz joined the channel
jimdanz
sc0ttius: what's up
sc0ttius
hey, so I'm trying to just integrate a basic payment method into my site and checkout would work fine. however, once the payment is processed and shows successful, it kicks back to the original page. i want to execute some javascript upon a successful payment.
is that possible?
jimdanz
yes -- should be possible. also, i'll point out that checkout doesn't actually charge any cards, it just creates a a token that you can then use to make a charge on your server
nftc99 has quit
have you checked out the "custom" integration tab in the checkout docs?
// Use the token to create the charge with a server-side script.
// You can access the token ID with `token.id`
}
that's where you're in a state where you have the token from stripe, and you can do whatever you need -- execute any javascript, and eventually post the token to your server for charging
sc0ttius
ok so if i'm using php would i just use ajax in that section you just pasted and that will generate a success response if the charge goes through?
jimdanz
you can use ajax to post the token to your server
and then you'd have a php script on your end (/charge.php, perhaps) that executes the charge
and can say return success or failure
and then have your ajax callback show an error or go to the next thing based on what it gets from the ajax callback
micahbrich has quit
funburn joined the channel
ezekielnoob joined the channel
sc0ttius
excellent. thanks. that's the part I was missing. From what I read, it seemed like everything was handled through the few bits of code and button you could place on your page.
jimdanz
makes sense. for our part, we should probably try to clear that up in the docs as it's a common question
sc0ttius
i did see it in one doc, but it was after a while of digging.
or perhaps a help page.
liwen has quit
tpae_ joined the channel
liwen joined the channel
tpae_
hi, what is the best solution to create pay as you go plans?
my idea is to create 1 ~ N plans and subscribe them accordingly, is this how you would go about it?