Commit graph

67 commits

Author SHA1 Message Date
Bradley M. Kuhn
2beee595e2 Restore files generated by Dist::Zilla for ease of building.
Makefile.PL was originally in this repository but removed by Olaf at
one point in favor of the Perl Dist::Zilla system.  However, to ease
instructions for Conservancy folks who want to use this library to
run our legacy PayPal importer, I've restored the files in this soft
fork of upstream.  This way, Dist::Zilla need not be installed to
build these libraries.
2020-07-20 17:33:07 +00:00
Bradley M. Kuhn
20967ab871 Merge branch 'recurring-payments-profile-details-support' 2015-01-03 16:57:18 -05:00
Bradley M. Kuhn
53355d9e4c These variables are deprecated in these files.
These strings appear to be removed from the other files that I
originally adapted this from, which was from an older version of this
API.
2015-01-03 16:56:51 -05:00
Bradley M. Kuhn
336e401ac0 GetRecurringPaymentsProfileDetails API
This uses PayPal's SOAP API in a similar manner to other parts of this
API.

I adapted this about a year ago to provide these functions, basing it on
code from other parts of the API.
2015-01-03 16:56:51 -05:00
Bradley M. Kuhn
fd2d2e73f2 Merge branch 'upstream-master' 2015-01-03 16:55:34 -05:00
Olaf Alders
267e814e70 Formatting and naming changes in t/SubscriptionPayments.t 2015-01-02 23:05:36 -05:00
Olaf Alders
8b755e0e66 Merge pull request #3 from bkuhn/profile-id-and-subscription-search-tests
Support ProfileID in TransactionSearch,  and add subscription search tests that use it.
2015-01-02 22:48:03 -05:00
Bradley M. Kuhn
4a0e47a78a Merge branch 'correct-options-output'
Conflicts:
	.gitignore
2015-01-02 13:35:00 -05:00
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
dd503a3080 Remove unnecessary use floating around in code.
@oalders noted in patch review on a pull request:
> Looks like this might be left over from debugging?

And he was indeed correct. ;)

I've removed the use.  Data::Dumper isn't used by this test.
2015-01-02 11:44:02 -05:00
Bradley M. Kuhn
7aeeb15fcf Consolidate use's to top of file.
@oalders suggests in a comment on my pull request:
> Could we move this use up to to the top of the file with the others?

So I've done so here.
2015-01-02 11:43:21 -05:00
Bradley M. Kuhn
9045d3d511 Switch to use autodie to simplify code.
@oalders suggests in a pull request comment:
> If we use autodie then we won't need to check for success on open().

I've made this change to accommodate that suggestion.
2015-01-02 11:42:10 -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
Bradley M. Kuhn
c5f62dbdb1 Beginnings of tests for subscription payments.
These tests verify a TransactionSearch for ProfileID, and also serve as
an example of the method to find subscriptions using that method.

I've also added to the test a creation of an HTML form that can be used
to create a transaction that will allow the test to pass.  This is a
hack, not unlike the hacks existing in the tests now that ask for
pasting of a transaction ID.  Long term, if someone wants to do the
work, using WWW:Mechanize or some other method for full automation of
these tests might be useful, but I think the generated HTML file is a
step forward from the cut-and-paste solution currently in use.
2015-01-01 17:47:47 -05:00
Bradley M. Kuhn
7198b854b9 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 17:47:38 -05:00
Bradley M. Kuhn
5f4261beda ProfileID is a valid search term for TransactionSearch in the PayPal SOAP API:
I learned this by reading:
 https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/TransactionSearch_API_Operation_SOAP/
2015-01-01 17:47:22 -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