Paymill::REST - A wrapper around PAYMILL's payment API
use Paymill::REST; my $trx_api = Paymill::REST::Transactions->new; my $created_transaction = $trx_api->create( { amount => 4200, token => '098f6bcd4621d373cade4e832627b4f6', currency => 'USD', description => "Hitchhiker's Guide to the Galaxy", } );
Paymill::REST is a wrapper around PAYMILL's payment API.
It is intended that things such creating and retrieving items is done through operations called on the respective Paymill::REST::* modules (a so called item factory), so everything related to transactions is achieved through Paymill::REST::Transactions.
Paymill::REST::*
Each operation of those factories is returning one or a list of the appropriate item modules, so operations called on Paymill::REST::Transactions are returning one or a list of Paymill::REST::Item::Transaction.
Not all operations are available to every item factory (currently only delete is not available to Paymill::REST::Item::Refund).
delete
Paymill::REST::Operations::Create
Paymill::REST::Operations::Delete
Paymill::REST::Operations::Find
Paymill::REST::Operations::List
Each item factory inherits from Paymill::REST::Base, which is holding all the configuration. The following options are available:
Defines your private API key which you get from PAYMILL.
An URI or URI string which is passed to LWP::UserAgent's proxy method for connecting to the PAYMILL API.
proxy
Note: every other option you'll find in the code is only meant for development of this module and shouldn't be changed!
Matthias Dietrich <perl@rainboxx.de>
Copyright 2013 - Matthias Dietrich
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
http://www.paymill.com
Paymill::REST::Clients, Paymill::REST::Offers, Paymill::REST::Payments, Paymill::REST::Preauthorizations, Paymill::REST::Refunds, Paymill::REST::Subscriptions, Paymill::REST::Transactions, Paymill::REST::Webhooks
Paymill::REST::Item::Client, Paymill::REST::Item::Offer, Paymill::REST::Item::Payment, Paymill::REST::Item::Preauthorization, Paymill::REST::Item::Refund, Paymill::REST::Item::Subscription, Paymill::REST::Item::Transaction, Paymill::REST::Item::Webhook
refund
To install Paymill::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paymill::REST
CPAN shell
perl -MCPAN -e shell install Paymill::REST
For more information on module installation, please visit the detailed CPAN module installation guide.