Wrong attribute "invoice_number" is used
Opened this issue · 0 comments
dernst-art commented
Hi,
SyliusPayPalPlugin version affected: v1.3.0
Description
During creation and updates of PayPal orders and payments there is used the attribute "invoice_number", this attribute got ignored from PayPal.
Possible Solution
According to the PayPal API doc the attribute should be named "invoice_id"
- payments: https://developer.paypal.com/docs/api/payments/v2/#captures-refund-request-body
- orders: https://developer.paypal.com/docs/api/orders/v2/#definition-purchase_unit_request
This has to be changed in the following files: