Installer et configurer Affirm
Ce guide vous aide à configurer Affirm à la caisse dans Spree.
Install Affirm on Spree
1. Download the Spree extension.
2. Ajoutez la ligne suivante à votre Spree Gemfile :
gem 'spree_affirm', :github => "affirm/spree_affirm"3. Installez le gem avec Bundler :
bundle install
bundle exec rails g spree_affirm:install4. Redémarrez votre serveur Spree.
Configurer Affirm
1. Sign in to the Spree admin page.
2. Go to Configurations > Payment Methods.
3. Click New Payment Method.
4. Set PROVIDER to Spree::Gateway::Affirm..
5. Enter Affirm Monthly Payments for NAME.
6. Click Create.
7. Keep SERVER set to sandbox.affirm.com for testing.
8. Cochez la case MODE TEST pour les tests.
9. Enter the API Key(public key) and Secret Key (private key) you retrieved from the Affirm sandbox merchant dashboard.
10. Si votre processus de paiement capture automatiquement les charges, réglez CAPTURE AUTO sur Oui.
11. Set ACTIVE to Yes to enable Affirm as a payment method.
12. Cliquez sur Mettre à jour.

Mis à jour 2 days ago