Examples making a REAL store for ebooks?

Hi,
I have ACS4 installed and FINALLY up and running. Adobe support was actually pretty helpful, the user manual was another story. So my question is this...I have the sample store up and running and have been able to upload one of my companies books and set the permissions to what I wanted. And I have been able to download and view the book in ADE. Does any one have any info on what they did to add the payment step in to the process? So we can actually charge for ebooks.
Thanks,
David

Hi,
There is a workign php exemple for the packaging service.  You must use the XMLSigningSerializer.php provided by Adobe.  i don't have the right to post file in the forum so if you don't have it ask Jim Lester in the forum he should be able to provide it to you
Let me know if it's working
Xavier
<?php
require_once 'XMLSigningSerializer.php';
$password = "YourAdminConsolePasword";
$packagingURL = 'http://YourContentServerAddress/packaging/Package';
function signNode( $xmlDoc, $xmlNodeToBeSigned, $secretKey )
    $serializer = new XMLSigningSerializer( false );
    $signingSerialization = $serializer->serialize($xmlNodeToBeSigned);
    $hmacData = base64_encode( hash_hmac("sha1", $signingSerialization, $secretKey, true ) );
    $hmacNode = $xmlDoc->createElementNS($ADEPT_NS, "hmac", $hmacData );
    $xmlNodeToBeSigned->appendChild( $hmacNode );
function sendRequest($requestData, $requestURL)
    $c = curl_init($requestURL);
    curl_setopt($c, CURLOPT_RETURNTRANSFER,     true);
    curl_setopt($c, CURLOPT_POST,                 true);
    curl_setopt($c, CURLOPT_POSTFIELDS, $requestData);
    curl_setopt($c, CURLOPT_HTTPHEADER, array('Content-type: application/vnd.adobe.adept+xml'));
    // Requête HTTP et réponse du serveur
    return curl_exec($c);
    curl_close($c);
// Create expiration
$expiration = date("c", mktime() + 3600);
// Create a nonce
$nonce = base64_encode(mt_rand(20000000,30000000000));
// SHA1 of my server password returning raw byte
$serverPassword = hash("sha1",$password,true);
// XML request
$request ='<package xmlns="http://ns.adobe.com/adept" action="add">';
$request .='<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">';
$request .='<dc:format>';
$request .= 'application/pdf';
$request .= '</dc:format>';
$request .='</metadata>';
$request .='<permissions>';
$request .='<display/>';
$request .='<print>';
$request .='<count initial="5" max="5" incrementInterval="60"/>';
$request .='</print>';
$request .='</permissions>';
$request .='<dataPath>[Path sur le serveur pour la ressource]</dataPath>';
$request .='<expiration>'. $expiration .'</expiration>';
$request .="<nonce>" . $nonce . "</nonce>";
$request .='</package>';
// Load the XML request info DOM because the Adobe seralizer need a xml object.
$xmlObjectPackage = new DOMDocument('1.0', 'UTF-8');
$xmlObjectPackage->formatOutput = true;
$xmlObjectPackage->loadXML($request);
$packageNodes = $xmlObjectPackage->getElementsByTagName('package');
foreach ($packageNodes as $packageNode) {
    signNode( $xmlObjectPackage, $packageNode, $serverPassword );
$packagingResponse = sendRequest($xmlObjectPackage->saveXML(),$packagingURL);
?>

Similar Messages

  • About an hour ago, I purchased Real Racing 2 from the Mac App Store for $12.99, but since then it has not downloaded one bit, even though I have a stable wifi connection. The money has already been taken from my account as well. What should I do?

    About an hour ago, I purchased Real Racing 2 from the Mac App Store for $12.99, but since then it has not downloaded one bit, even though I have a stable wifi connection. The money has already been taken from my account as well. What should I do?

    Just to make sure, open Mac App Store and click Purchases. Can you pause the download and restart it?

  • How to find table that store real data for field 'BETRG' ?

    1) datasource  0HR_PY_1 include field 'BETRG' in R/3 source system; extract structure HRMS_BIW_PY1 for datasource 0HR_PY_1, however structure is not used for stroing data. Question: how can we find table which store real data for the field  'BETRG'?
    2) If I want to add one type call department leader type which already defined in one enhanced HR table, to calculate the total amount using field 'BETRG'  according to department leader type. Should I enhance datasource  0HR_PY_1 by adding department leader type or create new view based on enhanced HR table and another table that include 'BETRG' data, also create new datasource based on this view later on?
    Thanks!

    Hi,
    Check this for Payroll Data (Transaction Data) 0HR_PY_1
    http://help.sap.com/saphelp_nw70/helpdata/EN/a5/94e8288eec11d4b2fb00010220c65f/frameset.htm
    The extractor for payroll results reads data from payroll cluster PCL2, not from standard tables.
    thanks,
    JituK

  • Can I use US gift card in Egypt store for example

    Can I use US gift card in Egypt store for example

    No. iTunes/Mac App Store gift cards are only for the stores for the country in which they are sold. You cannot use them across regional/national boundaries.

  • Yahoo! Store for Small Business & iWeb 09

    I have another question.
    Does anyone have any experience using iWeb to link back to their Yahoo! Store front?
    I may be WAAAAY off, but looking at the .html code it looks like you have to link back to the yahoo store, and that gives it real time updates. i.e. say something goes from being $4.00 to $5.00 when you link it properly to the Yahoo! store, and change the price at the Yahoo! store editor, it automatically changes the price on your store page through your domain. Is it possible to do this?
    Here is an example of the existing domain store for an individual product:
    http://www.redpointclimbing.com/Store/ProductPages/1-210075-oval.html
    Here is an example of all the products from one company on one page:
    http://www.redpointclimbing.com/Store/ListViewPages/black-diamond-carabiners-qui ckdraws.html
    So I guess my questions is is it possible to use iWeb for the same results? or so I have to use an .HTML editor, or even dreamweaver? I have access to Dreamweaver MX, is that version up to date enough?

    Whatever the code is you need, you can paste it in the HTML Snippet.
    iWeb will happily publish the code, whether it works or not. You are responsible.
    See my blog [Using the iWeb HTML Snippet|http://www.wyodor.net/blog/archives/2009/07/entry_213.html]
    Message was edited by: Wyodor

  • What is the proper way to open the app store  for ios

    Using Air3.1 to develope a game.
    I want to have links on my main menu which will open the iOS app store for a specific application.
    The only way I have found to do this is by opening a url "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=<THEAPPIDHERE>&mt=8"
    However, while this does work, so to speak, when I try to go back to the application, it starts up as if it had crashed... and it does several "redirects" before it get's where it is eventually going.
    Is there a better/proper way to open the app store?
    Cheers
    dave

    Read this page, especially the later examples:
    http://bjango.com/articles/ituneslinks/

  • Is there a way to create file for ebooks and print?

    Hi folks,
    I have been looking around online for information on how (or even if it's possible) to set up book on InDesign that is suitable for producing a print-ready PDF and also being suitable for producing epub and/or mobi files for submission to Amazon, etc.
    So my first question is whether or not it's technically possible (and efficient) to do that. I thought it would be great to have each book (with all its subdocuments) set up once, and from that I can produce the PDF I sent to the printers, and also product ebook files.
    If it is possible, can anyone point me in the right direction for instruction (i.e. best practices, steps, etc.) for this?
    So far what I am turning up online is info on how to set up a book for ebook product OR the usual info on how to set up books for print production. But I've not yet found anything that covers doing both at once.
    Thank you

    This is not an easy task, but if you plan beforehand, I think it's feasible to mantain a "master" file, both for print and ePUB. It really depends on the complexity of your layout. For already laid out docs, this could be a real problem.
    Nonetheless, it's not a very efficient/scalable approach at all. There's no escape from heavily editing the ePUB XHTML code (and images) after export. Kindle files are another story, but you can generate them from your finished ePUB – with more code editing, of course.
    Some links/docs to get you started:
    http://bit.ly/Ylxjvo | http://bit.ly/WCBrYC | http://bit.ly/VxKoVo | http://bit.ly/vQ5Ty5

  • I am making a graduation video for my cousin using Final Cut Pro. I have photos layered over videos, and I was wanted to find out how you can add a border around the photos so they stand off of the video. Anyone know what I could do?

    I am making a graduation video for my cousin using Final Cut Pro. I have photos layered over videos, and I was wanted to find out how you can add a border around the photos so they stand off of the video. Anyone know what I could do?

    You would need an image editor to edit the images and add a border to the image first before importing them into Final Cut.
    Cheapest and very good image editor?
    PIxelmator.
    Located in the Mac App Store. $14.99 USD.
    Here is the Pixelmator website to give you an overview of the app.
    http://www.pixelmator.com/
    Good Luck!

  • Making an iTunes server for office LAN, Can it be done?

    I have a 70 computer LAN in my office that is then connected to my company's wan. We are using all pcs. I have a deployment server that doesn't have much on it with an external HD. We're using 2000 windows server on that machine. I have been requested from many ipod users in my office to have a shared Library. Is it possible to put an ipod server or itunes server on my LAN making an individual profile for everyone such that they can connect on their desktop with itunes and share the library? This would not be for music purchased from the Apple store, but cd's owned and brought in. I don't know if this is forbidden subject and wouldn't be above purchasing a license to do it, but I have not yet found any documentation for how I might put a server together and put one on the network. I'd be willing to purchase a mac with the latest OSX that is compatible w windows for this too. Any links or advice or even a flat, can't be done?

    Legally I don't think so. Unless you have the CD you are not supposed to have the files made from it. The RIAA says no way at all whether you own the CD or not. They want you to buy the songs again.
    As for the server, there is nothing preventing you from allowing the users to save files to a server. This would be like many home useres do by using using external/networked drives. Give each user a folder then let them store their music there.

  • IPhone not making its own album for downloaded photos

    Why iphone dont do this?
    I always download lots of photo from different apps and why they all go to "Camera roll" instead of making a new album for the photos?
    example. i downloaded a photo from viber, iphone should create an album named "Viber" on the Photo because the photo is from there and if its from facebook its named "Facebook" or from the internet "Download". If you guys know what i mean, because its like a trash can 1 basket with different things.
    and what im asking is album of photos for each apps.
    Is there a way or something that can do that?
    Android does this.. Im not comparing them, just saying..

    Dear ecarlivan,
    I agree with you absolutely, I have the same problem and dont be sorry to compare with android, because Apple in his great wish to be very original loosing some quality on functional side. I become Iphone 5s user two weeks ago and day by day I notice more and more things that they are not right. And even here i dont see any wish from apple people to change something.
    Sorry to say but I am very disappointed.
    Only good appearance.

  • Itunes Store for South Africa

    Hey guys!!
    Will Itunes/Apple EVER allow other countries other than the US to purchase music, TV shows etc? I live in South Africa and the itunes store only consists of an app store... I use an iphone 3G as well, and love Apple....

    Hello everyone. I am just as upset about the fact that we cannot purchase content from the Apple iTunes store, but they do have a valid and understandable reason why this isn't possible.
    Local Media Companies will suffer a great loss due to the fact that their music and tv shows are slightly older then that in the USA, and they also like to be the first to release such content.
    With South African's purchasing the latest TV shows on iTunes there would be no point for having DSTV since the TV shows on the iTunes store are newer then those on DSTV. This is just one example of what great drama this could cause for local businesses.
    Now the other option for apple would be to create a separate store for each country offering only the content that is available to that country as chosen by the local media. This on the other hand would take a lot of work, and a lot of money. I think that Apple is focussing on other things first, such as the new iMac's MacBook's and Magic Mouse.
    Hopefully one day.. (SOON!! Please Steve?) They will expand the iTunes store globally. With a separate content collection for each country in order not to infringe on copyrights and broadcasting rights.
    I will patently wait..
    Yours Truly
    Purebred Apple Fanboy - David Venter

  • How do I delete a book purchased for ebooks through Apple iTunes

    My son took my ipad on vacation and purchased inappropriate books for ebooks through Apple itunes, these books need to be removed, ASAP.  How do I remove these books?  When I open my apple account they do not show up, when it open the ebooks account they are there.  Gotta get them removed.  I contacted book bud & ebooks, both told me I needed to contact the download engine....since I'm usually asked for iTunes password and/or apple password is why I'm asking.  Could somebody please help me.  Thank you.

    If they are ibooks purchased from the iTunes ibookstore then though purchases are considered final you can try the 'report a problem' link on the account's purchase history to contact iTunes Support and see if they will refund or credit you : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Could you please give me an example of reconcilation and consolidation for

    Hi all:
    could you please give me an example of reconcilation and consolidation for ODS?
    Thank you very much1

    could you please give me an example of reconcilation and consolidation for ODS?
    like we can take example like this.
    from different data sources we get data in to one dso and consolidate the data before making availabe to reporting.
    we will remove duplicates if any,

  • Data Privacy: Considering to disable store for my kids to avoid mini store

    Hi,
    Is there a way to disable my children from enabling the mini store when they are operating their own library without disabling their ability to navigate the real store? Telling apple what they have in their library, what they are clicking on and perhaps playing and telling apple when they do it -- none of apples business unless I consent to it -- and I don't.
    I can fix it with training but I find it unfortunate that the mini store can be turned on by them sending information on their library content (as they click library items).
    But I do want them to be able to actively browse the store -- there they know they are out shopping AND it doesn't ask them to tell what they are playing or even just looking at in their own library. It only knows what they are browsing over.
    I am disappointed with this from Apple. Apple, watch more careful over your consumer friendly image.

    Seems like Apple has been listening... Thanks.
    Latest download does not activate this by default, however its still very easy to turn on. Also Apple has committed to not using the information uploaded to match store offerings for anything... Thanks again.

  • How can i reserve an iPhone6 online,and get it at a real store

    how can i reserve an iPhone6 online,and get it at a real store? thank you.

    If the option appears when you order the iPad from your Apple Online Store then you will have the option. Otherwise, they will ship it directly to you for free.
    It seems the option is not available in Hongkong, but call them to be sure:

Maybe you are looking for

  • Replacing SSD with hard disk drive on Qosmio X505-Q880

    Is it possible to replace the SSD drive in a Qosmio X505-Q880 with a hard disk drive?  If so what type will work? Thanks, Ed

  • New internal SATA Drive can't access internet or e-mail

    I'm re-posting this since it never got resolved, but I've paraphrased to try keep it more concise: I recently added an internal 500GB SATA drive (and PCI card) to my G4 (partitioned 100GB for apps and remainder for storage). The old HD is running OS

  • Install current Flash Player for Windows XP IE8

    Hi eidnolb, I would like to make sure I have the most current up-to-date versions of Adobe Flash Player, Shockwave, etc., along with Java. After doing some searches, I came across a previous forum of yours involving these issues. I feel that you coul

  • Emailing .pdf from Acrobat 9

    Hello I seem to be having an issue with emailing pdfs from acrobat. I am recieving an error "Acrobat is unable to connect to your email program" I am using Acrobat 9 running on a 2008r2 terminal server. The email program is Outlook 2010. All other us

  • HTTP Button Submit not working in FireFox

    I am using Adobe Life Cycle Designer to make a Form. I have a Problem that the HTTP Submit Button is not working in FireFox. It works with IE but not with FireFox. I have also checked this with Button Submit Control.Please Help me.