Move all the commerce_paypal_ec payment method callbacks to include file for better readability of code.
Issue #1650780 : negate the refund amounts to store as a negative amount and have a correctly calculation of the order total after refund.
Implements a confirm form for the payment transaction operations: capture and refund. This way the action ask for confirmation before trigger the operation.Issue #1650780 by e-anima : Implemented a payment_transaction local task that allow to refund a PayPal payment via the RefundTransaction API call.
Issue #1650780 by e-anima : refactored the admin PayPal EC page callbacks into commerce_paypal_ec.admin.inc for better organization.
Issue #1650780 by e-anima : refactored the Capture payment transaction local action menu to behave as MENU_LOCAL_TASK for better usability. Included the Refund local task item.Indicate in the autofill_address setting description that Shipping option requires commerce_shipping module to be enabled.
Issue #1714320 by langecornu : migrate the existing Rules actions of type commerce_payment_enable_paypal_ec to update the accepted options in the autofill_address setting.
Better control of possible unexpected response when execute Capture of an authorization payment. There is the case that when store PayPal account has not defined a currency in the list of accepted that payments could not be captured via API calls
Renamed all the $wrapper variables to something more readable depending the entity type that we are wrapping.
Implementation of format amount function that round amount to the configured currency decimals but using '.' as decimal separator and without thousand separator. Use this function to format AMT param.