Commit graph

53 commits

Author SHA1 Message Date
Bradley M. Kuhn
aef0d8762c Add my copyright notice.
While I'm not a fan of file-by-file copyright inventory, as is used
here, I have added my copyright notice to this file alongside the
existing one, since I've made copyrightable changes to this file.
2015-01-02 13:17:08 -05:00
Bradley M. Kuhn
5113ced7e3 Properly extract Options from PaymentItemInfo
The Options fields found in
/PaymentTransactionDetails/PaymentItemInfo/PaymentItem/Options have
never been extracted in the proper way.  In fact, I'd be surprised if
anyone found the previous method of extraction useful at all.

I discovered this bug when I needed to lookup the Options selected
during payment, and found they weren't returned by the API.

Specifically, the value inside the SOAP tags, which is what the API
previously returned, are simply not useful: they are typically empty.
The interesting data is stored in the attributes of 'name' and 'value'.

Note, BTW, that each PaymentItem can have its own set of Options.  This
code added herein properly extracts the Options data for each
PaymentItem, and places it both in the Options field for that
PaymentItem, and in the array in the PII_Options "convenience" field.

As can be seen in the accompanying changes to t/OptionsFields.t, the
return values of the Options data is now a hash rather than a list.  I
believe this API-user-visible change is appropriate since a hash is
ultimately the natural representation of this data, and since having the
Options as an array of empty strings wasn't useful, anyway.

Nevertheless, if existing user code of this API relies on Options being
an array of empty strings (which I suppose could have been usefully used
in scalar context to get the count of options in the record), this
change theoretically creates a user-visible change in the API.  I can't
imagine anyone found the previous return value useful in the past
anyway, so I'd be surprised if anyone relies on this mis-feature.  If
they did, they can simply change their code to:
       scalar keys ...{Options}
instead of:
       scalar @...{Options}

However, since this is technically an API change, I've updated the
Changes file and the module documentation to mention it.
2015-01-02 13:15:46 -05:00
Bradley M. Kuhn
dd0ff8e2f4 Indentation change & Emacs variables to enforce it
The indentation style of this test file should match that of other
indentation in other tests.

I've also herein added Emacs variable settings to make sure Emacs users
have the same style enforced.
2015-01-02 12:55:05 -05:00
Bradley M. Kuhn
6c544426dd use autodie to simplify code for open & $? == 0 2015-01-02 12:50:57 -05:00
Bradley M. Kuhn
6be85a448e Move use Cwd; to top with other use statements. 2015-01-02 12:49:32 -05:00
Bradley M. Kuhn
938fe1315e Add Emacs settings to this file.
I'm using Emacs to edit this file and wanted to be sure that I matched
the existing coding style in use in this file.  I believe these settings
properly match the coding style for this file.
2015-01-02 12:28:21 -05:00
Bradley M. Kuhn
f8ca3ca571 Current Options details test: probably wrong
Currently, the {PII_Options} / {PaymentItems}[0]{Options} are a list of
empty strings.  This is probably the incorrect behavior, which I'm about
to fix.  However, I'm committing this test as-is since it passes against
the current code as it stands.
2015-01-01 19:06:32 -05:00
Bradley M. Kuhn
9b8464291c Beginnings of OptionFields tester.
I've noticed that the PII_Options field doesn't seem to properly contain
the values it should.  This is the beginning of a test file for what
PII_Options should contain.

The initial step here is to simply create one of my forms to create a
test transaction, and verify that the transaction has been created.
2015-01-01 19:03:02 -05:00
Bradley M. Kuhn
840f87e4e6 Add SellerEmail variable for testing data.
There are some situations were having the email address of the seller is
useful for testing.  This change allows for it as a parameter to the
tests.
2015-01-01 18:08:04 -05:00
Olaf Alders
dd9a1c6ab7 Cleans up some code samples in docs. 2014-07-14 12:58:51 -04:00
Olaf Alders
2d5812cf10 Minor cleanup, mostly around debugging. 2014-03-23 00:40:54 -04:00
Olaf Alders
3878e90817 Tidy everything. 2014-03-22 22:31:50 -04:00
Olaf Alders
a722bb555c Adds tidyallrc. 2014-03-22 22:31:16 -04:00
Olaf Alders
f43cf40ae0 Adds CONTRIBUTING.md 2014-03-21 23:51:22 -04:00
Olaf Alders
cde02d0238 Adds dist.ini 2014-03-21 23:45:32 -04:00
Olaf Alders
6258957c4b Merge pull request #2 from dsteinbrunner/patch-1
typo fix
2014-02-01 19:33:50 -08:00
David Steinbrunner
3fd26ff6ea typo fix 2014-02-01 20:42:30 -05:00
Olaf Alders
1a00fd0eb6 Adds Business::PayPal::API::GetBalance (via Henning Brauer). 2013-11-15 18:06:41 -05:00
Olaf Alders
df4a0c5797 Lets dzil handle version. 2013-11-15 18:06:41 -05:00
Olaf Alders
1da2b1bfb8 Merge pull request #1 from neilbowers/master
Reformatted as per CPAN::Changes::Spec
2013-08-19 20:53:28 -07:00
Neil Bowers
9f1d0adf0d Update to metadata to refer to current github repo 2013-08-18 10:52:28 +01:00
Neil Bowers
02b046373b Reformatted as per CPAN::Changes::Spec 2013-08-18 10:27:51 +01:00
Olaf Alders
091bc52485 Bumps version to 0.70 for release. 2012-11-14 00:10:47 -05:00
Olaf Alders
59897ec265 Fixes RT #70424
https://rt.cpan.org/Public/Bug/Display.html?id=70424
2012-11-14 00:05:49 -05:00
Dave Lambley
2db45ef69e Massage a little more. 2011-11-11 17:37:37 +00:00
Dave Lambley
4c016629cf GetTransactionDetails should get items details even for just one item.
https://rt.cpan.org/Public/Bug/Display.html?id=67386
2011-11-11 17:35:55 +00:00
Dave Lambley
f9788b347b Correct changelog. 2011-11-11 17:33:14 +00:00
Dave Lambley
1c171555ed Bump with https://rt.cpan.org/Public/Bug/Display.html?id=70424 2011-11-11 17:32:31 +00:00
Dave Lambley
737aeb3740 Fix warning in Perl 5.14.x, hopefully. 2011-11-11 17:30:10 +00:00
Dave Lambley
eceb9d2d50 Fix more names. 2011-11-11 17:22:00 +00:00
Dave Lambley
bc6ebe07d1 Fix name. 2011-11-11 17:21:13 +00:00
Dave Lambley
5cc5a3c19b Add debian packaging. 2011-11-11 17:15:50 +00:00
Dave Lambley
f727169dca Update changelog. 2011-11-11 17:09:49 +00:00
Dave Lambley
ea4f430f9a Bump to mention currently release version. 2011-11-11 17:06:36 +00:00
Dave Lambley
d1a4d0d801 Merge branch 'master' of git://github.com/bobtfish/Business-PayPal-API 2011-11-11 17:04:07 +00:00
Ron Phipps
b26b38b23d * Reduced required version of SOAP 2010-04-15 19:27:01 -04:00
Ron Phipps
43547671b6 * Added support for protection eligbility 2010-04-15 18:37:54 -04:00
Dave Lambley
13586cff9b The payer's country is not necessarily the same as the shipping address. If
they're different, we probably want it visible.
2010-01-27 17:40:03 +00:00
Dave Lambley
086d7f2f96 "Suffix" a little too vague. 2010-01-27 17:36:12 +00:00
Dave Lambley
f9fec03e72 Add PayerName fields documented by PayPal.
(Seen in https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_soap_r_GetExpressCheckoutDetails)
2010-01-27 17:30:55 +00:00
Tomas Doran (t0m)
918e062e2c Add repository metadata to the generated META.yml so that people know where to find the git repository 2010-01-26 14:54:31 +00:00
Tomas Doran (t0m)
a6665b3df3 Add a MANIFEST.SKIP 2010-01-26 14:54:31 +00:00
Tomas Doran (t0m)
b770fbdf6b Remove MANIFEST, this should also be a generated file 2010-01-26 14:54:31 +00:00
Tomas Doran (t0m)
f6d5556636 Add a .gitignore 2010-01-26 14:54:27 +00:00
Tomas Doran (t0m)
716f19057c META.yml should be a generated file, and therefore should not be kept in revision control 2010-01-26 14:47:34 +00:00
Tomas Doran (t0m)
336027b0c6 We are not in CVS, this is unused anywhere 2010-01-26 14:32:13 +00:00
Danny Hembree
a43cf01976 Updated Change file to show changes to .62 version 2009-12-07 01:17:52 -08:00
Danny Hembree
63c5cfa216 Modified RecurringPayments.pm to prevent test failures. Module still is not fully functional in that it doesn't set payments correctly. 2009-12-07 01:00:56 -08:00
Danny Hembree
d92e94b703 Corrected errors int RecurrintPayments.t and TransactionSearch.t 2009-12-06 23:10:55 -08:00
Danny Hembree
04de06bbf5 Modified pods in modules to reflect test for Success+ return values. 2009-12-05 01:41:45 -08:00