Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Bundle deals, mass license generation and FastSpring
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Russell Gray  
View profile  
 More options Nov 16 2010, 4:08 pm
From: Russell Gray <sweetpproducti...@gmail.com>
Date: Wed, 17 Nov 2010 08:08:41 +1100
Local: Tues, Nov 16 2010 4:08 pm
Subject: Bundle deals, mass license generation and FastSpring
I am also trying to implement support for MUPromo, did these enhancements ever get shared anywhere publicly?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell  
View profile  
 More options Nov 16 2010, 4:13 pm
From: Russell <sweetpproducti...@gmail.com>
Date: Tue, 16 Nov 2010 13:13:58 -0800 (PST)
Local: Tues, Nov 16 2010 4:13 pm
Subject: Re: Bundle deals, mass license generation and FastSpring
This was intended as a reply to this thread:
http://groups.google.com/group/potion-store/browse_thread/thread/5707...

but for some reason, I could not add a reply to it....?

On Nov 17, 8:08 am, Russell Gray <sweetpproducti...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony Arnold  
View profile  
 More options Nov 17 2010, 3:50 am
From: Tony Arnold <t...@thecocoabots.com>
Date: Wed, 17 Nov 2010 19:50:58 +1100
Local: Wed, Nov 17 2010 3:50 am
Subject: Re: [Potion Store] Bundle deals, mass license generation and FastSpring
Hi Russell,

On 17/11/2010, at 8:08 AM, Russell Gray wrote:

> I am also trying to implement support for MUPromo, did these enhancements ever get shared anywhere publicly?

Sorry, that's totally my bad. I keep meaning to clean up my changes to PotionStore and open pull requests, but I never allocate the time to it.

http://cl.ly/1j3h0G1t391p271g2I0e

That's a link to my promo_controller.rb (put it in app/controllers/store) - you'll need to add a randomly generated string (just md5 some private file on your hard disk and use that) into your store.yml under the key 'promo_salt'. Hopefully you know a bit of Rails and this can get you up and running - I don't see myself getting to that cleanup anytime shortly. I used this when Hyperspaces was part of MUPromo's bundle earlier this year - I ran it up on Heroku with 2 dynos on a Shared database plan while the promo was active without any load issues.

Feel free to ask any questions on list – hopefully if anyone else has the same problem in future, they will find this conversation and it can help them get started (at least until someone rolls this into the main app).

thanks,

Tony

----------
Tony Arnold
http://thecocoabots.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell Gray  
View profile  
 More options Nov 17 2010, 4:43 am
From: Russell Gray <sweetpproducti...@gmail.com>
Date: Wed, 17 Nov 2010 20:43:10 +1100
Local: Wed, Nov 17 2010 4:43 am
Subject: Re: [Potion Store] Bundle deals, mass license generation and FastSpring
Thanks Tony,

to be honest, I have no idea where to start....
Ruby/Rails and http POST requests are all foreign to me. (geez, writing apps is the easy part)

What else do I need to do, to get this working?
I'm guessing I need to set up some kind of listener for the POST requests.

Russell

SweetP Productions
www.sweetpproductions.com

On 17/11/2010, at 7:50 PM, Tony Arnold wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony Arnold  
View profile  
 More options Nov 17 2010, 5:03 am
From: Tony Arnold <t...@thecocoabots.com>
Date: Wed, 17 Nov 2010 21:03:19 +1100
Local: Wed, Nov 17 2010 5:03 am
Subject: Re: [Potion Store] Bundle deals, mass license generation and FastSpring
Hi Russell,

On 17/11/2010, at 20:43 PM, Russell Gray wrote:

> to be honest, I have no idea where to start....
> Ruby/Rails and http POST requests are all foreign to me. (geez, writing apps is the easy part)

> What else do I need to do, to get this working?
> I'm guessing I need to set up some kind of listener for the POST requests.

No, it's just a Rails controller so no listener required - if you pop the file into your development potion store install at:

app/controllers/store/

and add a random string to store.yml for the 'promo_salt' key - something like:

promo_salt: "60790980e253aca748e1dc98fea1af7d"

(don't use that exact string - make something else up)

Then restart your development rails environment, you should be set. Here's what I sent to MacUpdate a few months ago about how to interact with this controller:

The URL will be: http://YOURHOST/store/promo/newserial

Form Parameters
===============

You will need to pass the following form parameters. I prefer that MacUpdate POST rather than GET, but it should make no difference. All parameters are required.

* salt: This must be whatever you entered into the 'promo_salt' key (without the quotes). It is the magic key, and without it the controller will not respond. Please do not share this key with anyone - if someone gets it, they can generate as many licenses for your apps as they please;
* source: This should be 'MacUpdate' - (or MacUpdate Bundle, or something that you can use later to identify these users as having come from your promotion;
* transaction_id: This is a unique code that I will store in my database - I'm use it for the PayPal transaction ID, but anything is OK so long as it is unique. I use this so that if the request is fired twice from MacUpdate, the user will get the same serial number/order each time (and I'm not creating duplicates);
* product_id: This should be your product's PotionStore code (without the quotes);
* email: The user's (valid) email address.
* firstname: The user's first name.
* lastname: The user's last name.

So the end result will be something like:

http://YOURHOST/store/promo/newserial?salt=fds89fyuidshfuikdshaj&source=Mac Update&transaction_id=437894738&product_id=APPL100&email=b...@galactica.com&firstname=William&lastname=Adama

Responses
=========

If the details are accepted, you'll get a license key as a plain text response - the status code will be "201" (created) if it's a brand new order, and "200" (OK) if the order already exists.

If anything goes wrong, or the details are invalid, you will get an empty response and either a HTTP status code of "404" (content not found) or "400" (bad request).

The guys at MacUpdate have worked with this setup before with me, so they should be able to set things up to test from their end pretty easily.

I hope this helps.

thanks,

Tony

----------
Tony Arnold
http://thecocoabots.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell Gray  
View profile  
 More options Nov 17 2010, 5:09 am
From: Russell Gray <sweetpproducti...@gmail.com>
Date: Wed, 17 Nov 2010 21:09:40 +1100
Local: Wed, Nov 17 2010 5:09 am
Subject: Re: [Potion Store] Bundle deals, mass license generation and FastSpring
wow, so simple.
I thought there would be a lot more to it.
I really ought to spend some time learning some ruby/Rails.

thanks for all your help, and time. i'll update my site, and run a couple of tests, to check if it works out.

Russell

SweetP Productions
www.sweetpproductions.com

On 17/11/2010, at 9:03 PM, Tony Arnold wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell Gray  
View profile  
 More options Nov 17 2010, 6:38 am
From: Russell Gray <sweetpproducti...@gmail.com>
Date: Wed, 17 Nov 2010 22:38:46 +1100
Local: Wed, Nov 17 2010 6:38 am
Subject: Re: [Potion Store] Bundle deals, mass license generation and FastSpring
Iv'e tried it out, and I get the following message:
ActionController::RoutingError (No route matches "/promo/newserial" with {:method=>:get}):

have I missed something?

Russell

SweetP Productions
www.sweetpproductions.com

On 17/11/2010, at 9:03 PM, Tony Arnold wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony Arnold  
View profile  
 More options Nov 17 2010, 7:00 am
From: Tony Arnold <t...@thecocoabots.com>
Date: Wed, 17 Nov 2010 23:00:45 +1100
Local: Wed, Nov 17 2010 7:00 am
Subject: Re: [Potion Store] Bundle deals, mass license generation and FastSpring
Hi Russell,

On 17/11/2010, at 22:38 PM, Russell Gray wrote:

> Iv'e tried it out, and I get the following message:
> ActionController::RoutingError (No route matches "/promo/newserial" with {:method=>:get}):

> have I missed something?

You should use /store/promo/newserial, not /promo/newserial.

thanks,

Tony

----------
Tony Arnold
http://thecocoabots.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell Gray  
View profile  
 More options Nov 17 2010, 7:06 am
From: Russell Gray <sweetpproducti...@gmail.com>
Date: Wed, 17 Nov 2010 23:06:08 +1100
Local: Wed, Nov 17 2010 7:06 am
Subject: Re: [Potion Store] Bundle deals, mass license generation and FastSpring
bingo!

I had to use:
http://sweetpproductions.com/store/store/promo/newserial?salt=...........

I am using a modified version of potionStore to run from a directory, rather than a subdomain.

Thanks again for all your help Tony.

Russell

SweetP Productions
www.sweetpproductions.com

On 17/11/2010, at 11:00 PM, Tony Arnold wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell  
View profile  
 More options Nov 17 2010, 8:22 am
From: Russell <sweetpproducti...@gmail.com>
Date: Wed, 17 Nov 2010 05:22:24 -0800 (PST)
Local: Wed, Nov 17 2010 8:22 am
Subject: Re: Bundle deals, mass license generation and FastSpring
Iv'e uploaded my amended promo_controller.rb.

I tweaked it a little, so figured, I might as well upload it here also
(cloudApp is great by the way, thx for the link)
http://cl.ly/3H1p

I have added in a price parameter, so that my "Orders Total" for each
promo sale more accurately reflects my true proceeds.

Russell
www.sweetpproductions.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »