Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#11678 closed defect (invalid)

integrate stripe into the donations page

Reported by: phobos Owned by:
Priority: Medium Milestone: Website Donations Enhancement
Component: Archived/Ponies Version:
Severity: Keywords:
Cc: jmtodaro@…, saint, arma Actual Points:
Parent ID: #5993 Points:
Reviewer: Sponsor:

Description

Add our stripe account to the donate wml.

Child Tickets

TicketStatusOwnerSummaryComponent
#11775closedphobosRedesign donations page to fit more payment optionsWebpages/Website
#13282closedCreate new vhost for stripe.torproject.orgArchived/Ponies

Attachments (1)

2014-09-03-patches.zip (8.6 KB) - added by phobos 6 years ago.
some patches to implement the new design and stripe into the page

Download all attachments as: .zip

Change History (17)

comment:1 Changed 6 years ago by phobos

Owner: set to phobos
Status: newaccepted

comment:2 Changed 6 years ago by phobos

The goal should be to have the strip integration much like amazon, paypal, and dwolla, where everything is static on our side until the user clicks the button to go to the stripe site to load up the form.

comment:3 Changed 6 years ago by phobos

in process

comment:5 Changed 6 years ago by phobos

and nearly done. waiting on more patches

Changed 6 years ago by phobos

Attachment: 2014-09-03-patches.zip added

some patches to implement the new design and stripe into the page

comment:6 Changed 6 years ago by phobos

Handing this over to jtodaro as he says he can do it and get it all working since he's an expert on wml and our site at this point.

comment:7 Changed 6 years ago by jmtodaro

Cc: jmtodaro@… added

comment:8 Changed 6 years ago by jmtodaro

A working test page (using a test key) can be found here:
http://jmtodaro.github.io/tor-stripe/

Some notes:

-As far as I can tell javascript is required for stripe payments no matter how you go about it. I've currently hidden the stripe payment section altogether unless js is present.

-I'm not really sure how we should go about subscriptions with stripe. It appears that specific "plans" must be defined in the stripe account which are then referenced by specific keys. In other words I don't think there is a way to do it "on the fly" like with paypal, they must be predefined plans. I've already made the code ready to deal with this if we want to go that route.

comment:9 Changed 6 years ago by phobos

I'll send you the specific plans in our stripe account. We have it all setup. Thanks!

comment:10 Changed 6 years ago by jmtodaro

It seems we've run into a bit of a snag here.

It turns out that Stripe requires server-side code (ruby,python,etc.) to actually process charges. Stripe Checkout on it's own simply generates a token representing the cc details (to keep them from actually touching your server) and is intended to just pass along the info to be processed by your server-side code, which handles authentication and subscriptions too.

Since everything on our servers is static this presents a bit of a problem. I think we could still POST to the script if we really wanted to host it somewhere else (with https).

comment:11 Changed 6 years ago by phobos

Hmm. Ok, maybe we need a special vhost just for payments to run the code.

comment:12 Changed 6 years ago by Sebastian

Component: WebsitePonies

I'm moving this to ponies because it clearly isn't for the main website anymore

comment:13 Changed 5 years ago by isis

Owner: phobos deleted
Status: acceptedassigned

Removing phobos as the owner, since no one can log into that account anymore (#15896).

comment:14 Changed 5 years ago by isis

Status: assignednew

comment:15 Changed 5 years ago by saint

Cc: saint arma added
Resolution: invalid
Status: newclosed

Killed per discussion with mikeperry. We need to have access to the account before we can do this work. cc-ing arma as interim ED.

comment:16 Changed 5 years ago by arma

Access to which account? Some context would be useful.

Note: See TracTickets for help on using tickets.