====== PayPal Express for Magento 2 REST API using Orders v2 User Guide ====== ===== Related overview ===== For a shopper-friendly overview of features and setup, see the [[https://toweringmedia.com/magento-2-paypal-express-orders-v2-user-guide|Magento 2 PayPal Express Orders v2 User Guide - REST API Checkout]] on the storefront. This wiki page remains the full technical documentation. ===== Extension context ===== This is a Toweringmedia Magento 2 extension guide for the current admin extension catalog. ===== Product page ===== * [[https://toweringmedia.com/paypal-express-for-magento-2-rest-api-using-orders-v2|PayPal Express for Magento 2 REST API using Orders v2]] (SKU ''toweringmedia-paypal-express'') ===== Overview ===== This extension adds a PayPal Express payment method to Magento 2 built on PayPal's current REST Orders v2 API rather than the legacy NVP/SOAP integration. It supports sandbox and live environments and a configurable capture intent. ===== What this extension does ===== * PayPal Express checkout using the PayPal REST Orders v2 API. * Separate sandbox and live environment settings. * Configurable checkout intent (authorize or capture). * Standard Magento payment method controls including title and availability. ===== Requirements ===== * Magento 2.4.x (Open Source or Adobe Commerce). * PHP: >=8.1 <8.5 (as declared by the published package). * A current Toweringmedia license and Composer credentials for ''https://composer.toweringmedia.com/''. * A PayPal REST application providing a client ID and client secret for each environment you intend to use. ===== Installation ===== Install and validate in a staging environment before production rollout. cd /path/to/magento composer require toweringmedia/module-paypal-express bin/magento module:enable Toweringmedia_PaypalExpress bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy -f bin/magento cache:flush Currently published versions at the time of writing: * ''toweringmedia/module-paypal-express'' — 0.1.11 Toweringmedia packages are served from the licensed Composer repository ''https://composer.toweringmedia.com/''. If Composer reports that the package could not be found, your credentials are missing or the license does not cover this package yet. Retrieve your keys from **My Account** on toweringmedia.com, or contact [[mailto:support@toweringmedia.com|support@toweringmedia.com]]. General installation notes that apply to every Toweringmedia extension are in the [[https://toweringmedia.com/installation|installation guide]]. ===== Configuration ===== * Stores > Configuration > Sales > **Payment Methods** > **Toweringmedia Express Checkout** (config section ''payment''). * Fields include enable/active, title, environment, checkout intent, client ID, and client secret. ===== Basic usage and what to expect ===== - Start in the sandbox environment with sandbox credentials and place a full test order end to end. - Confirm the order, invoice, and PayPal transaction all reconcile before switching the environment to live. - Switch to live credentials only after a successful sandbox order. ===== Notes and limitations ===== * This package is published at a pre-1.0 version. Test a complete order in sandbox before enabling it on a live store. ===== Validation checklist ===== * ''bin/magento module:status'' shows the module(s) as enabled. * Extension configuration saves without errors in Admin. * The admin screens listed above are reachable and load without error. * Expected storefront/admin behavior is present after a cache flush. * No critical PHP/JS errors appear in ''var/log/'' during the primary test flow. ===== Troubleshooting ===== * **Composer cannot find the package**: confirm the ''https://composer.toweringmedia.com/'' repository and your credentials are present in ''auth.json'', and that your license covers this package. * **Feature not visible**: verify module status, flush cache, and redeploy static content. * **Admin setting not applying**: clear cache and confirm the config scope (default / website / store view). * **Unexpected behavior**: retest with only the required related modules enabled. ===== Support ===== * [[mailto:support@toweringmedia.com|support@toweringmedia.com]] * [[https://toweringmedia.com/magento-maintenance-support|Magento maintenance and support]] ===== Related Magento 2 docs ===== * [[magento2:extensions:start|Magento 2 extension index]] * [[start|Global docs home]]