commercetools / commercetools-paypal-plus-integration

Integration between commercetools API and PayPal Plus API
Apache License 2.0
6 stars 1 forks source link

Pass more product detail to PayPal plus #140

Open butenkor opened 5 years ago

butenkor commented 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.

lojzatran commented 5 years ago

Documentation: https://developer.paypal.com/docs/api/payments/v1/#payment_create

JudeNiroshan commented 5 years ago

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.