Skip to content

Commit

Permalink
v5.5.0 - Payment Mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ebanolopes committed Aug 23, 2023
1 parent 03b4ae9 commit 7047d40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/PAYMENT-MAPPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Payment method code is defined by payment extension developer and usually can be
Add the desired payment method Signifyd and Magento codes to the JSON string on command below and run it on your databse:

```sql
INSERT INTO core_config_data (path, value) VALUES ('signifyd/general/payment_methods_config', '{"CREDIT_CARD":["payflow_link", "payflow_advanced", "authorizenet_acceptjs", "adyen_cc", "braintree", "cybersource", "stripe_payments", "anet_creditcard", "authorizenet_directpost", "openpay_cards", "holacash", "stripe_payments", "mercadopago_custom", "chcybersource"],"CHECK":["checkmo"], "SIGNIFYD-PAYMENT-CODE": ["magento-payment-code"]}');
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"],"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.
Expand Down
4 changes: 2 additions & 2 deletions docs/TRANSACTIONS-INTEGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ For each payment method that want to integrate with the transaction endpoint, it
It is necessary to add the payment method to the mapped list in the etc/config.xml file:

```xml
<payment_methods_config>{"CREDIT_CARD":["payflow_link", "payflow_advanced", "authorizenet_acceptjs", "adyen_cc", "adyen_oneclick", "adyen_hpp", "braintree", "cybersource", "stripe_payments", "anet_creditcard", "authorizenet_directpost", "openpay_cards", "holacash", "stripe_payments"],"CHECK":["checkmo"]}</payment_methods_config>
<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"],"CHECK":["checkmo"],"PAYPAL_ACCOUNT":["payment_services_paypal_smart_buttons"],"APPLE_PAY":["payment_services_paypal_apple_pay"]}</payment_methods_config>
```

Likewise, it is necessary to update the payment method mapping doc on docs/PAYMENT-MAPPING.md file:

```sql
INSERT INTO core_config_data (path, value) VALUES ('signifyd/general/payment_methods_config', '{"CREDIT_CARD":["payflow_link", "payflow_advanced", "authorizenet_acceptjs", "adyen_cc", "braintree", "cybersource", "stripe_payments", "anet_creditcard", "authorizenet_directpost", "openpay_cards", "holacash"],"CHECK":["checkmo"], "SIGNIFYD-PAYMENT-CODE": ["magento-payment-code"]}');
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"],"CHECK":["checkmo"],"PAYPAL_ACCOUNT":["payment_services_paypal_smart_buttons"],"APPLE_PAY":["payment_services_paypal_apple_pay"]}');
```

### Implementation of card data
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<restrict_states_default>pending_payment,payment_review,canceled,closed,complete</restrict_states_default>
<restrict_states_create>holded,pending_payment,payment_review,canceled,closed,complete</restrict_states_create>
<restrict_payment_methods>checkmo,cashondelivery,banktransfer,purchaseorder,free</restrict_payment_methods>
<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_smart_buttons"],"CHECK":["checkmo"]}</payment_methods_config>
<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"],"CHECK":["checkmo"],"PAYPAL_ACCOUNT":["payment_services_paypal_smart_buttons"],"APPLE_PAY":["payment_services_paypal_apple_pay"]}</payment_methods_config>
<shipper_config>{"FEDEX":["fedex"],"DHL":["dhl"],"SHIPWIRE":[],"USPS":["usps"],"UPS":["ups"]}</shipper_config>
<shipping_method_config>{"EXPRESS":["FEDEX_EXPRESS_SAVER", "7", "B", "C", "D", "U", "K", "L", "I", "N", "T", "X", "INT_4", "INT_5", "INT_6", "INT_7", "54", "07"],"ELECTRONIC":[],"FIRST_CLASS":["0_FCLE", "0_FCL", "0_FCP", "0_FCPC", "15", "53", "61", "INT_13", "INT_14", "INT_15", "INT_21"],"FIRST_CLASS_INTERNATIONAL":[],"FREE":["freeshipping"],"FREIGHT":["FEDEX_1_DAY_FREIGHT", "FEDEX_2_DAY_FREIGHT", "FEDEX_3_DAY_FREIGHT", "INTERNATIONAL_ECONOMY_FREIGHT", "INTERNATIONAL_PRIORITY_FREIGHT", "FEDEX_FREIGHT", "FEDEX_NATIONAL_FREIGHT"],"GROUND":["FEDEX_GROUND", "GROUND_HOME_DELIVERY", "INTERNATIONAL_GROUND", "4", "03"],"INTERNATIONAL":["INTERNATIONAL_ECONOMY", "INTERNATIONAL_FIRST"],"OVERNIGHT":["FIRST_OVERNIGHT", "PRIORITY_OVERNIGHT", "STANDARD_OVERNIGHT"],"PRIORITY":["1", "2", "3", "13", "16", "17", "22", "23", "25", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "57", "58", "59", "62", "63", "64", "INT_1", "INT_2", "INT_8", "INT_9", "INT_10", "INT_11", "INT_16", "INT_17", "INT_18", "INT_19", "INT_20", "INT_22", "INT_23", "INT_24", "INT_25", "INT_27"],"PRIORITY_INTERNATIONAL":["EUROPE_FIRST_INTERNATIONAL_PRIORITY", "INTERNATIONAL_PRIORITY"],"PICKUP":["pickup"],"STANDARD":["11"],"STORE_TO_STORE":[],"TWO_DAY":["FEDEX_2_DAY", "FEDEX_2_DAY_AM", "59", "02"]}</shipping_method_config>
<async_payment_methods>cybersource,mercadopago_basic,stripe_payments</async_payment_methods>
Expand Down

0 comments on commit 7047d40

Please sign in to comment.