Conversation
…lution Signed-off-by: Jgruet <jon.gruet@yahoo.fr>
nicohery
left a comment
There was a problem hiding this comment.
Hi! This one makes sense : these territories are part of France and use the euro, so it's odd that buyers there get nothing.
Before it goes further, it'd probably be worth checking with PrestaShop or PayPal support whether these payment methods are officially supported for buyers in the DROM and which territories should be on the list.
There are probably contractual constraints to be verified as well.
matks
left a comment
There was a problem hiding this comment.
Hello @Jgruet thanks for the PR. It looks legit but as mentioned by @nicohery I will check with PayPal developer support team.
I can see here https://developer.paypal.com/reference/country-codes/ that they have listed GF as a valid country code. But the page https://developer.paypal.com/v5/apple-pay/integrate is not 100% clear about that.
|
Just to keep you informed I'm still waiting for an answer from PayPal to make sure we don't do something wrong 😉 |

Self-Checks
JIRA task link
Resolves: N/A — external community contribution (no JIRA ticket)
Summary
Map French overseas departments (DROM: GF, GP, MQ, RE, YT) to
FRin the buyercountry resolution, so PayPal payment methods like Apple Pay and Google Pay are
correctly offered to buyers located in these territories.
QA Checklist Labels
QA Checklist
N/A
Additional Context
CountryResolver::getBuyerCountryIsoCode()returned the raw ISO code of thebuyer's country. For buyers in a French overseas department/region (DROM) —
French Guiana (GF), Guadeloupe (GP), Martinique (MQ), Réunion (RE), Mayotte (YT)
— it returned the local code (e.g.
GF).These territories are an integral part of France and use the Euro, but the
eligibility lists in
FundingSourceConstraint::getCountries()only containFR.As a result Apple Pay and Google Pay were considered ineligible for these buyers:
getEligibleFundingSources()excluded them and the PayPal SDK was built withoutthe
applepay/googlepaycomponents, so the buttons never rendered — even oneligible devices/browsers.
This is a real blocker for merchants operating in the DROM (single-country shops
using
GF,GP, …), where PayPal actually supports these methods (the merchantaccount is FR / EUR).
This PR normalizes DROM ISO codes to
FRin the buyer country resolution, thesame way
UKis already normalized toGB. The change is scoped to ps_checkout'spayment-method eligibility resolution and does not alter the shop's country data,
taxes, addresses or invoices.
Verified live with a French Guiana (GF) buyer: Apple Pay is now offered on Safari
and the payment is accepted end-to-end by PayPal.
Frontend Changes