Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.83 KB

PAYMENT-MAPPING.md

File metadata and controls

33 lines (19 loc) · 1.83 KB

Signifyd Extension for Magento 2 > Payment Method Mapping

Payment method mapping

By default Signifyd extension maps Magento built in payment methods, but it is possible to add other.

Add custom payment method mapping

To add new pyament methods, it is necessary to add all existing mappings with those to be added.

Payment method code is defined by payment extension developer and usually can be found on etc/config.xml file or on payment method model file at _code property.

Custom payment method mapping

Add the desired payment method Signifyd and Magento codes to the JSON string on command below and run it on your databse:

INSERT INTO core_config_data (path, value) VALUES ('signifyd/general/payment_methods_config', '{"CREDIT_CARD":["payflow_link", "payflow_advanced", "authorizenet_acceptjs", "adyen_cc", "adyen_oneclick", "adyen_hpp", "braintree", "cybersource", "anet_creditcard", "authorizenet_directpost", "openpay_cards", "holacash", "stripe_payments", "mercadopago_custom", "chcybersource", "payment_services_paypal_hosted_fields", "payment_services_paypal_vault", "authnetcim"],"CHECK":["checkmo"],"PAYPAL_ACCOUNT":["payment_services_paypal_smart_buttons"],"APPLE_PAY":["payment_services_paypal_apple_pay"]}');

A list of the possible values for SIGNIFYD-PAYMENT-CODE can be founded on Signifyd API docs, look for transactions.paymentMethod field.

https://developer.signifyd.com/api/#/reference/cases/create-case

Check current payment method mapping

To check the current payment method mapping, run the command below on your database:

SELECT * FROM core_config_data WHERE path='signifyd/general/payment_methods_config';

If no records are found look for extensions default mappings on etc/config.xml file under extension folder.