Commit graph

31 commits

Author SHA1 Message Date
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
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
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
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
cde02d0238 Adds dist.ini 2014-03-21 23:45:32 -04: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
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
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
737aeb3740 Fix warning in Perl 5.14.x, hopefully. 2011-11-11 17:30:10 +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)
336027b0c6 We are not in CVS, this is unused anywhere 2010-01-26 14:32:13 +00: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
04de06bbf5 Modified pods in modules to reflect test for Success+ return values. 2009-12-05 01:41:45 -08:00
Danny Hembree
47b68fb3e8 Made changes to Success checks in all test and in API.pm so that SuccessWithWarning won't cause failure. 2009-12-04 02:42:41 -08:00
Danny Hembree
c2bf6d6357 Modified API.pm to for looser Success test and corrected boolean test with undefined variable. 2009-12-03 13:42:54 -08:00
Daniel Hembree
925e625e76 Initial git commit of release 0.62 2009-12-02 21:57:44 -08:00