承接 mohan-devstack/magento2-paypal-rest-checkout 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mohan-devstack/magento2-paypal-rest-checkout

Composer 安装命令:

composer require mohan-devstack/magento2-paypal-rest-checkout

包简介

Standalone PayPal REST Orders v2 payment integration for Magento 2. No Magento_Paypal or SOAP/NVP dependency. Server-side redirect checkout with capture, refund, and admin transaction support.

README 文档

README

A standalone PayPal REST Orders v2 payment module for Magento 2. Uses only the modern REST API — no dependency on Magento_Paypal, SOAP, or the deprecated NVP/SOAP stack that PayPal is retiring.

Features

  • PayPal REST Orders v2 API (/v2/checkout/orders)
  • Server-side redirect checkout flow — no JS SDK required
  • Automatic invoice generation on successful capture
  • Online refunds (full and partial) via credit memo
  • Admin transaction detail page with PayPal capture information
  • Sandbox / Live toggle in admin config
  • No Magento_Paypal dependency

Requirements

  • Magento 2.4.4 or later
  • PHP 8.1 or later
  • PayPal REST API credentials (Client ID + Secret from developer.paypal.com)

Installation

Via Composer (recommended)

composer require mohan/magento2-paypal-rest-checkout
php bin/magento module:enable Mohan_PaypalRest
php bin/magento setup:upgrade
php bin/magento cache:clean

Manual

  1. Copy the module to app/code/Mohan/PaypalRest/
  2. Run:
    php bin/magento module:enable Mohan_PaypalRest
    php bin/magento setup:upgrade
    php bin/magento cache:clean

Configuration

Stores > Configuration > Mohan > PayPal REST Checkout

Field Description
Enabled Enable/disable the payment method
Payment Title Label shown at checkout (default: "PayPal")
Sort Order Position in the payment method list
Payment from Applicable Countries Restrict to specific countries
Use Sandbox Enable for testing; disable for production
Client ID From developer.paypal.com REST app
Client Secret From developer.paypal.com REST app

Checkout Flow

  1. Customer selects PayPal at checkout and clicks Place Order
  2. Magento creates the order in pending_payment state
  3. Module creates a PayPal Orders v2 order and redirects the customer to PayPal
  4. Customer approves on PayPal and is returned to the store
  5. Module captures the payment, generates an invoice, and moves the order to processing
  6. Order confirmation email is sent

Refunds

Full and partial refunds are processed via Sales > Orders > Credit Memo in the Magento admin. The module calls /v2/payments/captures/{id}/refund on PayPal automatically.

Support

License

OSL-3.0

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2026-07-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固