定制 promptpay/promptpaymentsapi 二次开发

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

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

promptpay/promptpaymentsapi

最新稳定版本:1.0.0

Composer 安装命令:

composer require promptpay/promptpaymentsapi

包简介

README 文档

README

Download Via Composer

composer require promptpay/promptpaymentsapi

Prompt Pay Express Payment Gateway Documentation

API Credencials

To get your API Credentials Signup as a merchant https://promptpayments.io/register -> Merchants -> New Merchant Type -> Express

Payer

If payer wants to fund payments using Prompt Pay, set payer to Prompt Pay. (Other payment method ex: paypal, stripe, coinpayments etc not available yet).

Amount

Specify a payment amount and the currency.

Transaction

It’s a Transaction resource where amount object has to set.

RedirectUrls

Set the urls where buyer should redirect after transaction is completed or cancelled.

payment

It’s a payment resource where all Payer, Amount, RedirectUrls and Credentials of merchant (Client ID and Client Secret) have to set. After initialized into payment object, need to call create method. It will generate a redirect URL. Users have to redirect into this URL to complete the transaction.

Example importing

<?php

require 'vendor/autoload.php';

use PromptPay\Api\Amount;
use PromptPay\Api\Payer;
use PromptPay\Api\Payment;
use PromptPay\Api\RedirectUrls;
use PromptPay\Api\Transaction;

Refer to the example file example.php

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固