Magento Forum

Page 1 of 2
[downloadable products] Serial keys - external webservice
 
vmaillot
Jr. Member
 
Total Posts:  19
Joined:  2009-01-05
Montreal
 

Hi all

I’m currently working on a solution to sell serial keys.

My specifications would be :
- once downloadable items are payed, a CURL call is done to an external webservice (let assume the webservice exists and works), and we get a serial key for each item.
- each serial key is linked with the sold item / stored into the DB for the customer order.
- all serial keys are added to the invoice, which is sent by email.

I’m not able to understand how to :
- add a dynamic attribute for an item
- start the ‘serial key retrieving’ process after the payment process
- store the key received into the dynamical attribute
- use the key wherever I want to (invoice, on screen, ...)

I’ve found some interesting files to do that :
- app/code/core/Mage/Sales/Model/Order/Order/Invoice/Item.php : manages Mage_Sales_Model_Order_Invoice_Item objects.
- app/code/core/Mage/Sales/Model/Order/Order/Invoice/Api.php : links invoices with items
- app/code/core/Mage/Sales/Model/Api/Resource.php => to get/set item attributes
- app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php : to create/edit the pdf invoice.

Concerning documentation, these articles look interesting :
- add a new attribute : http://www.magentocommerce.com/knowledge-base/entry/tutorial-creating-attributes-custom-fields
- editing a pdf invoice : http://www.magentocommerce.com/wiki/how-to/editing_an_invoice_pdf
- create a payment override : http://www.magentocommerce.com/boards/viewthread/23667/
- barcode generation - helpful as example : http://www.magentocommerce.com/wiki/groups/207/invoice-shipment_barcodes

Any help would be incredibly appreciated smile
Vincent

 
Magento Community Magento Community
Magento Community
Magento Community
 
vmaillot
Jr. Member
 
Total Posts:  19
Joined:  2009-01-05
Montreal
 

Well, I’m progressing :

- add a dynamic attribute for an item : done
- store the key received into the dynamical attribute : done
- use the key wherever I want to (invoice, on screen, ...) : done

I would just need to know / understand how to launch an event once the order has been accepted.
If someone has already been dealing with that, I’m still interested smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Sugith_k
Jr. Member
 
Total Posts:  7
Joined:  2008-09-30
 

Hi Vincent,
I am also new to this magento. And I am also struggling to make a site. I hope that I can take some help from you where I am stucked at the moment. I am building a software downloading site which gives the users to download products (softwares).I like to know couple of things from you.

1. how to give them the permission to download and how to send the serial codes to their mail accounts.

2. And I would like to know that I want to make it,once you buy a product and it is for 1 year and the user could download it for one year any time and right after one year it should expired from the my account.

3.And I want to try another feature that is once the admin give a period of time to a project it should be deleted or hide after that specified time period.

Hope you will reply me as soon as possible.

Thank you
Sugith

 
Magento Community Magento Community
Magento Community
Magento Community
 
vmaillot
Jr. Member
 
Total Posts:  19
Joined:  2009-01-05
Montreal
 

Hi Sugith

1- would you please be more specific concerning “permission to download software” ?
2- I’m developing a module to sell activation codes, not to manage them ... :( I don’t manage anything concerning expiration of an activation code.
It could be done after, but for now, I’m on a rush to put this module “live” asap smile

Vincent

 
Magento Community Magento Community
Magento Community
Magento Community
 
bbunse
Jr. Member
 
Total Posts:  3
Joined:  2009-01-22
 

Hi Vincent

I am evaluating magento for a software license store. Your module would help me a lot.

Does the module tell the external webservice the orderno or maybe more data when it tries to receive the serial number?

Do you have an estimation when your module is ready for use?

Greetings
Benjamin

 
Magento Community Magento Community
Magento Community
Magento Community
 
Sugith_k
Jr. Member
 
Total Posts:  7
Joined:  2008-09-30
 

Hi Vincent,
What my requirement is this.
I want to publish some downloadable products. That I can do using the downloadable product feature that the Magento has included in there new version. but the matter is that when someone buys the product, he should be able to download it.Even that option is can be done. So after downloading the software, we have to send them a license key to activate the software. I want to know how to send that serial code to them via an email automatically.

The user can download the software unlimited time within the time period.(say within 1 year).After the one year that product should deleted from his account list. So that he cannot download the relevant software anymore. 

Thanks!

Sugith

 
Magento Community Magento Community
Magento Community
Magento Community
 
vmaillot
Jr. Member
 
Total Posts:  19
Joined:  2009-01-05
Montreal
 

Hi Sugith
I think my module would be perfect for you smile

But I would suggest you to never deal with deleting things from a customer account.
On my mind, your software management should be based only on the serial code validity.
The software should understand that the code entered would expire 1 year after the purchase (or whatever you want, it’s just an example).

Hope it could help wink
Vincent

 
Magento Community Magento Community
Magento Community
Magento Community
 
Sugith_k
Jr. Member
 
Total Posts:  7
Joined:  2008-09-30
 

HI Vincent,

It is not the serial key should which should expire after one year but the product. Since I am giving the customer the permission to download the software for one year and after one year the I have to stop giving him the permission to download it anymore.

Thank you for your reply and can I know when can I use your module. I hope that it would be so helpful to me.

Regards,
Sugith

 
Magento Community Magento Community
Magento Community
Magento Community
 
Rational Calvert
Jr. Member
 
Total Posts:  17
Joined:  2008-06-03
 

Any more progress on this? I need something very like the module described here myself.

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
vmaillot
Jr. Member
 
Total Posts:  19
Joined:  2009-01-05
Montreal
 

You mean one like Sugith describes, or like the one I’m finishing ?
V.

 
Magento Community Magento Community
Magento Community
Magento Community
 
vmaillot
Jr. Member
 
Total Posts:  19
Joined:  2009-01-05
Montreal
 

Update :
Module sent to QA.
Results should come next week ...

smile
V.

 
Magento Community Magento Community
Magento Community
Magento Community
 
vmaillot
Jr. Member
 
Total Posts:  19
Joined:  2009-01-05
Montreal
 

Update :
First release => friday the 13th

Scared ?  cheese

 
Magento Community Magento Community
Magento Community
Magento Community
 
bbunse
Jr. Member
 
Total Posts:  3
Joined:  2009-01-22
 

Hey Vincent!

I’m looking forward to your release. Hope I can provide you some useful feedback and comments.

Good luck for the release wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
sprinnet
Sr. Member
 
Avatar
Total Posts:  140
Joined:  2009-01-12
Prague, Czech Republic
 

It’s very interesting. I do similar module grin

 
Magento Community Magento Community
Magento Community
Magento Community
 
Rational Calvert
Jr. Member
 
Total Posts:  17
Joined:  2008-06-03
 

You mean one like Sugith describes, or like the one I’m finishing ?

Oh sorry, Vincent.

Yes your extension was the one I was asking about (or trying to, as it were). Has that actually released now? Is is available somewhere for evaluation?

Thanks again.

-Calvert

 
Magento Community Magento Community
Magento Community
Magento Community
 
Rational Calvert
Jr. Member
 
Total Posts:  17
Joined:  2008-06-03
 

Still wondering whatever happened with this.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 1 of 2