FAQ

Find answers to common questions about your Magento 2 integration with Affirm.

Quel est l'impact de la politique relative aux témoins de Chrome SameSite sur mon intégration Magento 2?

With the recent release of Google Chrome's SameSite cookie policy, the newest version of Chrome updated how it handles cookies. As a result, we’ve seen an increase in loan authorization failures for Magento 2 merchants integrated with Affirm. See our guide for more information on this issue and how to resolve it.


Comment modifier le placement mensuel des messages de paiement sur les détails du produit ou la page du panier?

Pour placer un message de paiement mensuel sur les détails du produit :

1. Sur la page d'administration de Magento 2, accédez à Stores > Configuration > Général > Promos Affirm.
2. Dans la section Paramètre du développement additionnels aussi peu que, définissez Options de placement PDP aussi peu que à l'une de ces options :

  • Après le prix (sélectionné par défaut)
  • Avant le prix
  • Renseignements sur la fin du produit
2266

Cette intégration utilise le bloc Affirm/Block/Promotion/ProductPage/Aslowas et le modèle Affirm/view/frontend/templates/promotion/aslowasPDP.phtml .

To include this block in a specific location on the product or cart page, you'll need to select the appropriate handle (the default product page in Magento 2 is catalog_product_view.xml) and parent block or container, which will render the as low as block (using <referenceBlock name="parent_block_name"> structure or <referenceContainer name="test_content">), where parent_block_name - name parent block in the layout.


Que faire si je vois un message d'erreur « Ligne d'en-tête non valide détectée » lorsque je passe une commande avec Affirm?

This error is caused by an upgrade to our load balancers from AWS Classic ELB to AWS Application Load Balancer and the new ALB supports both HTTP/1.1 and HTTP/2. As a result, clients that support HTTP/2 will auto upgrade. It is likely that cURL also auto upgrades to HTTP/2 transparently, i.e. it sends HTTP/2 request with a HTTP/2 response, on the wire.

We use Magento 2's core Zend Framework library for cURL request and it does not support HTTP/2. We have plans to switch to another library or Magento 2's cURL in the future. In the mean time, you can follow the instructions below to apply a patch to add HTTP/2 support to ZF1 library.

// Modify the following file path around line 185:
File path : <magento root>/vendor/magento/zendframework1/library/Zend/Http/Response.php 
// From:
        if (! preg_match('|^\d\.\d$|', $version)) {
// To:
        if (! preg_match('|^\d\.\d$|', $version) && ($version != 2)) { // Hot fix by Affirm
 
// Modify the following file path around line 517:
File path : <magento root>/vendor/magento/zendframework1/library/Zend/Http/Response.php

// From:
        if ($index === 0 && preg_match('#^HTTP/\d+(?:\.\d+) [1-5]\d+#', $line)) {
            // Status line; ignore
            continue;
        }
// To:
        if ($index === 0 && preg_match('#^HTTP/\d+(?:\.\d+) [1-5]\d+#', $line)) {
            // Status line; ignore
            continue;
        }
        // Hot fix by Affirm
        if ($index === 0 && preg_match('#^HTTP/2 200#', $line)) {
            // Status line; ignore
            continue;
        }

Comment puis-je obtenir le paiement Affirm pour travailler avec Magento 2.2 ou une version inférieure?

Vous pouvez utiliser la version 2.1.5 pour Magento 2.2 et versions antérieures.

Utilisez la commande ci-dessous pour l'installation de Composer :

composer require affirm/magento2:2.1.5
composer update
php bin/magento setup:upgrade
php bin/magento setup:di:compile

Affirm prend-il en charge le paiement multiexpédition?

Non, Affirm ne prend pas en charge le paiement multiexpédition car nous utilisons les adresses d'expédition et de facturation du client dans notre processus de souscription pour valider la fraude.