Open butenkor opened 5 years ago
Currently on PayPal email notifications one can see sku (https://github.com/commercetools/commercetools-paypal-plus-integration/blob/master/src/main/java/com/commercetools/helper/mapper/impl/payment/BasePaymentMapperImpl.java#L218) of the products only. If other values like description and product name are available we should supply them to PayPal to. List of available attributes we can supply are defined here: https://github.com/paypal/PayPal-Java-SDK/blob/master/rest-api-sdk/src/main/java/com/paypal/api/payments/Item.java#L24
Above requirements should be applies for both LineItem and CustomLineItems.
Documentation: https://developer.paypal.com/docs/api/payments/v1/#payment_create
Decided to include only the product name. Product description can be lengthy and it will be possible that request to Paypal_plus will fail due to character length.
Currently on PayPal email notifications one can see sku (https://github.com/commercetools/commercetools-paypal-plus-integration/blob/master/src/main/java/com/commercetools/helper/mapper/impl/payment/BasePaymentMapperImpl.java#L218) of the products only. If other values like description and product name are available we should supply them to PayPal to. List of available attributes we can supply are defined here: https://github.com/paypal/PayPal-Java-SDK/blob/master/rest-api-sdk/src/main/java/com/paypal/api/payments/Item.java#L24
Above requirements should be applies for both LineItem and CustomLineItems.