Skip to content

Commit 6545caa

Browse files
committed
feat: ebay
1 parent 3fd5c9a commit 6545caa

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

api/services/ebay_onboarding_service.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,13 @@ async def _create_fulfillment_policy_fr(token: str, *, app: AppSettings | None =
130130
async def _create_payment_policy_fr(token: str, *, app: AppSettings | None = None) -> str:
131131
s = app or get_settings()
132132
root = _api_base_url(s)
133-
# EBAY_FR exige ``brands`` dès que ``paymentMethodType`` vaut CREDIT_CARD (sinon 20401).
133+
# Paiements gérés par eBay (Managed Payments) : ne pas envoyer ``paymentMethods`` / cartes.
134+
# Les marques CREDIT_CARD provoquent 20403 PAYMENT_METHOD_NOT_ALLOWED en prod FR.
134135
payload: dict[str, Any] = {
135136
"name": "GoupixDex — Paiement",
136137
"marketplaceId": MARKETPLACE_FR,
137138
"categoryTypes": [{"name": "ALL_EXCLUDING_MOTORS_VEHICLES"}],
138139
"immediatePay": True,
139-
"paymentMethods": [
140-
{
141-
"paymentMethodType": "CREDIT_CARD",
142-
"brands": ["VISA", "MASTERCARD", "AMERICAN_EXPRESS", "DISCOVER"],
143-
}
144-
],
145140
}
146141
url = f"{root}/sell/account/v1/payment_policy"
147142
async with httpx.AsyncClient(timeout=120.0) as client:

web/app/pages/settings/marketplaces.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,17 @@ onMounted(async () => {
278278
<UFormField label="Adresse ligne 2 (optionnel)" class="sm:col-span-2">
279279
<UInput v-model="addressLine2" class="w-full" />
280280
</UFormField>
281-
<UFormField label="Ville" required>
282-
<UInput v-model="city" class="w-full" />
283-
</UFormField>
284281
<UFormField label="Code postal" required>
285-
<UInput v-model="postalCode" class="w-full" />
282+
<UInput
283+
v-model="postalCode"
284+
class="w-full"
285+
inputmode="numeric"
286+
autocomplete="postal-code"
287+
maxlength="12"
288+
/>
289+
</UFormField>
290+
<UFormField label="Ville" required>
291+
<UInput v-model="city" class="w-full" autocomplete="address-level2" />
286292
</UFormField>
287293
<UFormField label="Pays">
288294
<p class="text-sm text-muted py-2">

0 commit comments

Comments
 (0)