承接 silvercommerce/payments-paypal 相关项目开发

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

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

silvercommerce/payments-paypal

Composer 安装命令:

composer require silvercommerce/payments-paypal

包简介

Package that adds PayPal payments (via omnipay) along with some customisations

README 文档

README

Package that adds PayPal payments (via omnipay) along with some customisations

Mostly this just installs the required PayPal omnipay package, but it also fixes the redirect issue where PayPal payments can be identified as "paid" even when they are rejected.

Hopefully this package will also be upgraded at some point to allow adding an "Express Checkout" button to the begining of the checkout process.

Installation

Install via composer:

composer require silvercommerce/payments-paypal

Configuration

Configure how you would any SilverStripe omnipay modules:

payments.yml

---
Name: paymentconfig
---
SilverStripe\Omnipay\Model\Payment:
  allowed_gateways:
    - 'PayPal_Express'

SilverStripe\Omnipay\GatewayInfo:
  PayPal_Express:
    parameters:
      username: 'paypal_api_username'
      password: 'paypal_api_password'
      signature: 'paypal_api_signiature'

# Config for test environments
---
Except:
environment: 'live'
---
SilverStripe\Omnipay\GatewayInfo:
  PayPal_Express:
    parameters:
      username: 'test_paypal_api_username'
      password: 'test_paypal_api_password'
      signature: 'test_paypal_api_signiature'
      testMode: true

Alternativley, load the PayPal API credentials via environmental variables:

.env

PAYPAL_API_USERNAME="test_paypal_api_username"
PAYPAL_API_PASSWORD="test_paypal_api_password"
PAYPAL_API_SIGNATURE="test_paypal_api_signiature"

payments.yml

---
Name: paymentconfig
---
SilverStripe\Omnipay\Model\Payment:
  allowed_gateways:
    - 'PayPal_Express'

SilverStripe\Omnipay\GatewayInfo:
  PayPal_Express:
    parameters:
      username: '`PAYPAL_API_USERNAME`'
      password: '`PAYPAL_API_PASSWORD`'
      signature: '`PAYPAL_API_SIGNATURE`'

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2020-11-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固