PHP code example of kaykay012 / paymentsk

1. Go to this page and download the library: Download kaykay012/paymentsk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kaykay012 / paymentsk example snippets


'paymentConfig' => [
    'yjpay_standard' => [
            'label'=> '易极付',
            // 跳转开始URL
            'start_url'             => '@homeUrl/paymentsk/yjpay/standard/start',
            // 支付完成后,跳转的地址。
            'return_url'            => '@homeUrl/paymentsk/yjpay/standard/review',
            // 支付平台发送消息,接收的地址。
            'ipn_url'               => '@homeUrl/paymentsk/yjpay/standard/ipn',
            // 取消支付后,返回fecshop的url
            'cancel_url'            => '@homeUrl/paymentsk/yjpay/standard/cancel',
            // 下面是沙盒地址, 正式环境请改为:https://openapiglobal.yiji.com/gateway.html
            'webscr_url'            => 'https://openapi.yijifu.net/gateway.html',
            'success_redirect_url'  => '@homeUrl/payment/success',
            // 账号信息
            'account'  => '12052481595618',
            'signature'=> 'b31fa4aedd67a7f92d882f5e4614bf',
        ],
]