PrestaShop / docs

PrestaShop technical documentation
https://devdocs.prestashop-project.org/
Other
120 stars 477 forks source link

FAQ on payment module developement #551

Open LaureMatou opened 4 years ago

LaureMatou commented 4 years ago
  1. Any specific guidelines on custom table for payment gateway specific order, tokenization details ?
  2. Any specific best practice need to be adhered for PCI compliance ?
  3. Will PrestaShop allows capturing an order later or it immediately triggers both authorization and capture for a successful order
  4. How currency conversion is taken care in PrestaShop (Dual currency)
Quetzacoalt91 commented 4 years ago

Any specific best practice need to be adhered for PCI compliance ?

PCI compliancy is provided by payment service providers, not a shop.

Will PrestaShop allows capturing an order later or it immediately triggers both authorization and capture for a successful order

Both options are possible, modules developer may chose one of them. When the order is created on the shop, the status may be chosen between "Waiting for payment", "Payment accepted", "Error in payment"...

One module could know immediately a payment has been received, so the status would be "Payment accepted", while other payment method may require a manual action from the merchant or some time before receiving a confirmation from the bank.

How currency conversion is taken care in PrestaShop (Dual currency)

Currencies are stored in the shop database, alongside their rate. Prices are calculated with the current shop context (current language, currency, customer...), from a original price related to the currency set as default on the shop.