定制 olps/omnipay-cardpointe 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

olps/omnipay-cardpointe

最新稳定版本:v0.1.1

Composer 安装命令:

composer require olps/omnipay-cardpointe

包简介

CardPointe gateway for Omnipay payment processing library

README 文档

README

CardPointe gateway for the Omnipay PHP payment processing library

Latest Version on Packagist Software License Build Status

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP. This package implements CardPointe support for Omnipay.

Installation

Omnipay is installed via Composer. To install, simply require league/omnipay and olps/omnipay-cardpointe with Composer:

composer require league/omnipay olps/omnipay-cardpointe

Basic Usage

The following gateways are provided by this package:

  • CardPointe

For general usage instructions, please see the main Omnipay repository.

Gateway Parameters

The following parameters are required when creating the gateway:

  • merchantId - Your CardPointe merchant ID
  • username - Your CardPointe API username
  • password - Your CardPointe API password

Additionally, you can set:

  • testMode - Set to true to use the sandbox environment

Available Methods

The gateway supports the following methods:

  • authorize() - Authorize a payment
  • capture() - Capture a previously authorized payment
  • purchase() - Authorize and capture a payment
  • refund() - Refund a previously captured payment
  • void() - Void a previously authorized payment
  • createCard() - Store a credit card in the CardPointe vault

Sandbox Testing

CardPointe provides a sandbox environment for testing your integration. To use the sandbox:

  1. Set the gateway to test mode:

    $gateway->setTestMode(true);
  2. Use the sandbox credentials provided by CardPointe:

    $gateway->setMerchantId('your-test-merchant-id');
    $gateway->setUsername('your-test-username');
    $gateway->setPassword('your-test-password');

Obtaining Sandbox Credentials

To obtain sandbox credentials:

  1. Contact CardPointe/Fiserv to request a sandbox account
  2. You will receive a merchant ID, username, and password for the sandbox environment
  3. The sandbox environment is available at https://api.cardconnect.com/cardconnect/rest

Test Card Numbers

You can use the following test card numbers in the sandbox environment:

Card Type Card Number CVV Expiry Date
Visa 4111111111111111 Any Any future
Mastercard 5454545454545454 Any Any future
Discover 6011000000000012 Any Any future
Amex 371449635398431 Any Any future

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.

If you want to keep up to date with release announcements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-02