Closed (fixed)
Project:
Commerce PayPal
Version:
7.x-1.x-dev
Component:
PayPal WPS
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2011 at 05:13 UTC
Updated:
19 Sep 2012 at 18:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
recidive commentedJust to clarify, on the WPS documentation, there are 2 places where
lcparameter is explained. The first on the "Table 7" section it says:The "see" was missing a link.
And the other is in the "Table 8" section:
The latter is where it's linked to the list of countries I've post on the issue description.
Comment #2
recidive commentedI did some tests, changing country to Belgium and Brazil. See screenshots attached.
Attached is also a patch that adds the missing countries to the list and also make it display actual country names rather than codes on the payment method settings form.
Comment #3
recidive commentedHmm...
Comment #4
summit commentedHi,
Patch works fine, can it be committed please? Should I set it to reviewed and tested?
Can may be otherwise anybody else test it?
Greetings, Martijn
Comment #5
recidive commentedBumping.
Comment #6
andyg5000I received a call to undefined function country_get_list() without including the DRUPAL_ROOT . '/includes/locale.inc' file. Patch attached.
Comment #7
rszrama commentedI did some digging on this while I was updating the modules to use the proper currency codes, and I noticed that we were missing some countries. However, the page linked to does not correspond to the allowed values listed in the PayPal Payments Standard API guide. You can see the HTML list here:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=develo...
I've made a commit that updated the languages function to return the proper available languages grouped by locale or specific language. Honestly, it's a bit odd, and PayPal is anything but consistent in its documentation, but I think our best bet is to just go with this list. I hardcoded the whole thing into the module so I could use the precise labels from PayPal. They may support payments from other countries, but that doesn't mean they have specific login pages for them, which the lc parameter dictates.
Commit: http://drupalcode.org/project/commerce_paypal.git/commitdiff/74e2fda