承接 aef/payfort 相关项目开发

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

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

aef/payfort

最新稳定版本:v1.0.0

Composer 安装命令:

composer require aef/payfort

包简介

Laravel Payfort package provides a simple way to integrate Payfort payment services with Laravel applications. It offers features like payment redirection, support for installments, custom merchant page integration, Apple Pay support, and recurring transactions, simplifying the process of incorporat

README 文档

README

The Laravel Payfort package simplifies the integration of Payfort payment services with Laravel applications. It provides a straightforward solution for incorporating Payfort into your Laravel projects, offering a range of features to streamline payment processes.

Installation

Using this package you can integrate laravel in a simple way with payfort.

    composer require aef/payfort

publish the config file

    php artisan vendor:publish --provider "Payfort\Providers\PayfortServiceProvider"

contents of config file config/payfort.php

Add to your .env file:

PAYFORT_USE_SANDBOX=true
PAYFORT_MERCHANT_IDENTIFIER=****
PAYFORT_ACCESS_CODE=*******
PAYFORT_SHA_TYPE=sha512
PAYFORT_SHA_REQUEST_PHRASE=********
PAYFORT_SHA_RESPONSE_PHRASE=**********
PAYFORT_APPLE_ACCESS_CODE=************
PAYFORT_APPLE_SHA_REQUEST_PHRASE=**********
PAYFORT_APPLE_SHA_RESPONSE_PHRASE=***********
PAYFORT_CURRENCY=SAR

Purchase request (Redirection)

return Payfort::purchase([
            'merchant_reference' => 'XYZ9239',
            'order_description' => 'order',
            'token_name' => "88cd5220-9584-460d-bb2d-0806f93066c1",
            'amount' => 450,
            'customer_email' => 'test@gmail.com',
]);

authorize request (Redirection)

return Payfort::authorize([
            'merchant_reference' => 'XYZ9239',
            'order_description' => 'order',
            'token_name' => "88cd5220-9584-460d-bb2d-0806f93066c1",
            'amount' => 450,
            'customer_email' => 'test@gmail.com',
]); 

Payment maintenance operations

return Payfort::payment([
            'merchant_reference' => 'XYZ9239',
            'order_description' => 'order',
            'token_name' => "88cd5220-9584-460d-bb2d-0806f93066c1",
            'amount' => 450,
            'customer_email' => 'test@gmail.com',
            'recurring_mode' => 'VARIABLE',
            'recurring_transactions_count' => 10,
]); 

tokenization

return Payfort::tokenization([
            'merchant_reference' => 'XYZ9239',
            'order_description' => 'order',
            'token_name' => '88cd5220-9584-460d-bb2d-0806f93066c1',
            'customer_email' => 'test@gmail.com',
            'card_number' => 4005550000000001,
            'expiry_date' => 2105,
            'card_security_code' => 123,
            'card_holder_name' => 'testcard',
]); 

Apple Pay Service

return Payfort::applePay([
            'merchant_reference' => 'XYZ9239',
            'order_description' => 'order',
            'token_name' => '88cd5220-9584-460d-bb2d-0806f93066c1',
            'amount' => 450,
            'customer_email' => 'test@gmail.com',
            'apple_data' => 'paymentData.data',
            'apple_signature' => 'paymentData.signature',
            'customer_ip' => '192.168.1.1',
            'phone_number' => '0123456789',
            'apple_header' => [
                  'apple_transactionId' => 'paymentData.header.transactionId',
                  'apple_ephemeralPublicKey' =>'paymentData.header.ephemeralPublicKey',
                  'apple_publicKeyHash' =>'paymentData.header.publicKeyHash'
                ],
            'apple_paymentMethod' => [
                  'apple_displayName' => 'paymentMethod.displayName',
                  'apple_network' => 'paymentMethod.network',
                  'apple_type' => 'paymentMethod.type'
                ]
]); 

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固