PHP code example of ifeiwu / 7pay-php

1. Go to this page and download the library: Download ifeiwu/7pay-php 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/ */

    

ifeiwu / 7pay-php example snippets




$client = new Pagepan\SevenPayClient(PID, PKEY, NOTIFY_URL, RETURN_URL);

// 完整的例子:example/alipay.php

$url = $client->alipay('0.01', '201911914837526544602', '商品名称', '商品描述');

Header("Location: $url");

composer