Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to Digg

Appendix: Sample Code

Topics

This appendix provides an overview of the sample code for several key tasks you need to accomplish for Amazon Simple Pay. Updated for signature version 2, they include a button generator for each button, as well as samples to validate and process return URLs and IPN notifications.

Packaged in five programming languages (C#, Java, Perl, PHP, and Ruby), they are available from the Amazon Web Services developer community, under the Amazon Flexible Payments Service category. Refer to the following table for specific sample packages.

C#

Java

Perl

PHP

Ruby

Standard

ASP Standard -CS-2.0 .zip

ASP Standard -JAVA-2.0 .zip

ASP Standard -PERL-2.0 .zip

ASP Standard -PHP-2.0 .zip

ASP Standard -RUBY-2.0 .zip

Donations

ASP Donation -CS-2.0 .zip

ASP Donation -JAVA-2.0 .zip

ASP Donation -PERL-2.0 .zip

ASP Donation -PHP-2.0 .zip

ASP Donation -RUBY-2.0 .zip

Marketplace

ASP MarketPlace -CS-2.0 .zip

ASP MarketPlace -JAVA-2.0 .zip

ASP MarketPlace -PERL-2.0 .zip

ASP Marketplace -PHP-2.0 .zip

ASP MarketPlace -RUBY-2.0 .zip

Subscription

ASP Subscription -CS-2.0 .zip

ASP Subscription -JAVA-2.0 .zip

ASP Subscription -PERL-2.0 .zip

ASP Subscription -PHP-2.0 .zip

ASP Subscription -RUBY-2.0 .zip