当前位置: 首页 > news >正文

天津做网站比较大的公司什么软件可以优化关键词

天津做网站比较大的公司,什么软件可以优化关键词,网站建设团队名称,小程序开发平台哪家公司好✨ 目录 🎈 申请商户号🎈 申请商户证书🎈 设置V3密钥🎈 开通H5支付🎈 设置支付域名🎈 SDK 下载🎈 第一次下载平台证书🎈非第一次下载平台证书🎈 H5下单 🎈 申…

✨ 目录

    • 🎈 申请商户号
    • 🎈 申请商户证书
    • 🎈 设置V3密钥
    • 🎈 开通H5支付
    • 🎈 设置支付域名
    • 🎈 SDK 下载
    • 🎈 第一次下载平台证书
    • 🎈非第一次下载平台证书
    • 🎈 H5下单

🎈 申请商户号

  • 申请地址:https://pay.weixin.qq.com/
  • 如果你还没有微信商户号,请点击上面的链接进行申请,如果已经有了,可以跳过这一步

🎈 申请商户证书

  • 首先点击 账户中心API安全申请API证书
  • 申请详细步骤请点击:https://kf.qq.com/faq/161222NneAJf161222U7fARv.html

申请证书页

🎈 设置V3密钥

  • 首先点击 账户中心API安全设置APIv3密钥设置
  • 输入任意的 32 位字符,该字符可由数字大小写字母组合,该密钥一定要记好给到开发人员

设置V3密钥
设置V3密钥

🎈 开通H5支付

  • 首先点击 产品中心我的产品H5支付点击开通

开通H5支付

🎈 设置支付域名

  • 首先点击 产品中心我的产品开发配置
  • 申请 H5 的师傅域名,需要准备域名 IPC 备案的截图网站支付服务商品界面的截图(需要截取到链接地址)
  • 申请大概需要2个工作日左右,尽量材料齐全,一次审核通过,如果驳回,审核的时间会越来越长
  • 域名一定要申请正确,如果到时候你支付不是在该域名下,会报商户参数错误的,也无法正常拉起微信支付

设置支付域名

🎈 SDK 下载

  • 微信官方提供了 JAVAPHPGO 三种语言版本的开发库,请根据自己开发语言选择
  • JAVA语言: wechatpay-java ‹推荐›、wechatpay-apache-httpclient
  • PHP语言: wechatpay-php ‹推荐›、wechatpay-guzzle-middleware
  • GO语言: wechatpay-go ‹推荐›
  • 这里我选择 php 作为讲解,使用 composer 安装 sdk
# 如果是空文件夹,先运行
composer init# 推荐使用 PHP 包管理工具 Composer 安装 SDK
composer require wechatpay/wechatpay

🎈 第一次下载平台证书

  • 上面命令执行完之后,会有一个 vendor/bin/CertificateDownloader.php 文件
  • 平台证书跟商户证书不是同一个东西,在后期请求中,平台证书和商户证书都要带上
  • 如果你是第一次申请平台证书,需要执行命令:php CertificateDownloader.php -k ${apiV3key} -m ${mchId} -f ${mchPrivateKeyFilePath} -s ${mchSerialNo} -o ${outputFilePath}
  • apiV3key: apiv3 秘钥,上面自己设置的32位数的密钥
  • mchId: 商户号,微信商户平台可以查询
  • mchPrivateKeyFilePath: 微信商户API私钥文件目录,也就是第二步申请商户证书里面生成的 apiclient_key.pem 路径
  • mchSerialNo: 证书序列号,在 账户中心API安全管理证书 中可以看见,如果有多个证书,找到自己正在使用的证书序列号
  • outputFilePath: 生成后的证书保存地址
# 命令
php CertificateDownloader.php -k ${apiV3key} -m ${mchId} -f ${mchPrivateKeyFilePath} -s ${mchSerialNo} -o ${outputFilePath}# 我的使用
cd vendor/bin/php CertificateDownloader.php -k 241xxxxxxxxxxxxxxxxx44 -m 1xxxxxxx1 -f ../../cert/merchant/apiclient_key.pem -s Wxxxxxxxxxxxxxxxx4 -o  ../../cert/wechatpay/

证书序列号

🎈非第一次下载平台证书

  • 如果你不是第一次下载平台证书,或者说你本地已经存在了平台证书,你想换一个的话
<?php
require_once('../vendor/autoload.php');use WeChatPay\Builder;
use WeChatPay\Crypto\Rsa;
use WeChatPay\Util\PemUtil;// 商户号
$merchantId = '1xxxxxx1';// 从本地文件中加载「商户API私钥」,「商户API私钥」会用来生成请求的签名
$merchantPrivateKeyFilePath = 'file://../cert/merchant/apiclient_key.pem';
$merchantPrivateKeyInstance = Rsa::from($merchantPrivateKeyFilePath, Rsa::KEY_TYPE_PRIVATE);// 「商户API证书」的「证书序列号」
$merchantCertificateSerial = '1xxxxxxxxxxxxxxxxxxxxx91';// 从本地文件中加载「微信支付平台证书」,用来验证微信支付应答的签名
$platformCertificateFilePath = 'file://../cert/wechatpay/wechatpay_4xxxxxxxxxxxxxxxxxxx9.pem';
$platformPublicKeyInstance = Rsa::from($platformCertificateFilePath, Rsa::KEY_TYPE_PUBLIC);// 从「微信支付平台证书」中获取「证书序列号」
$platformCertificateSerial = PemUtil::parseCertificateSerialNo($platformCertificateFilePath);// 构造一个 APIv3 客户端实例
$instance = Builder::factory(['mchid'      => $merchantId,'serial'     => $merchantCertificateSerial,'privateKey' => $merchantPrivateKeyInstance,'certs'      => [$platformCertificateSerial => $platformPublicKeyInstance,],
]);// 发送请求
$resp = $instance->chain('v3/certificates')->get(['debug' => true] // 调试模式,https://docs.guzzlephp.org/en/stable/request-options.html#debug
);
echo $resp->getBody(), PHP_EOL;

🎈 H5下单

  • 相信大家做微信 H5 支付,最关心的就是这个操作了
  • 主要是调用 v3/pay/transactions/h5 接口,如果上面配置都正确,就会返回一个 h5_url,然后前端拿到这个链接参数,跳转即可
  • 关于微信 H5 支付更多 API 可以查看:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_3_1.shtml
<?php
require_once('../vendor/autoload.php');use WeChatPay\Builder;
use WeChatPay\Crypto\Rsa;
use WeChatPay\Util\PemUtil;// 商户号
$merchantId = '1xxxxxx1';// 从本地文件中加载「商户API私钥」,「商户API私钥」会用来生成请求的签名
$merchantPrivateKeyFilePath = 'file://../cert/merchant/apiclient_key.pem';
$merchantPrivateKeyInstance = Rsa::from($merchantPrivateKeyFilePath, Rsa::KEY_TYPE_PRIVATE);// 「商户API证书」的「证书序列号」
$merchantCertificateSerial = '1xxxxxxxxxxxxxxxxxxxxx91';// 从本地文件中加载「微信支付平台证书」,用来验证微信支付应答的签名
$platformCertificateFilePath = 'file://../cert/wechatpay/wechatpay_4xxxxxxxxxxxxxxxxxxx9.pem';
$platformPublicKeyInstance = Rsa::from($platformCertificateFilePath, Rsa::KEY_TYPE_PUBLIC);// 从「微信支付平台证书」中获取「证书序列号」
$platformCertificateSerial = PemUtil::parseCertificateSerialNo($platformCertificateFilePath);// 构造一个 APIv3 客户端实例
$instance = Builder::factory(['mchid'      => $merchantId,'serial'     => $merchantCertificateSerial,'privateKey' => $merchantPrivateKeyInstance,'certs'      => [$platformCertificateSerial => $platformPublicKeyInstance,],
]);try {$resp = $instance->chain('v3/pay/transactions/h5')->post(['json' => ['mchid'        => $merchantId,'out_trade_no' => 'tinygeeker0001','appid'        => '********换成自己的**********','description'  => 'Image形象店-深圳腾大-QQ公仔','notify_url'   => 'https://weixin.qq.com/','amount'       => ['total'    => 1,'currency' => 'CNY'],'scene_info' => ['payer_client_ip' => '127.0.0.1','h5_info' => ['type' => 'Wap']]]]);//    echo $resp->getStatusCode(), PHP_EOL;echo $resp->getBody(), PHP_EOL;
} catch (\Exception $e) {// 进行错误处理
//    echo $e->getMessage(), PHP_EOL;if ($e instanceof \GuzzleHttp\Exception\RequestException && $e->hasResponse()) {$r = $e->getResponse();
//        echo $r->getStatusCode() . ' ' . $r->getReasonPhrase(), PHP_EOL;echo $r->getBody(), PHP_EOL, PHP_EOL, PHP_EOL;}
//    echo $e->getTraceAsString(), PHP_EOL;
}

文章转载自:
http://dinncowiny.tpps.cn
http://dinncouncompromisable.tpps.cn
http://dinncocapacitor.tpps.cn
http://dinncomarina.tpps.cn
http://dinncosickening.tpps.cn
http://dinncopergamum.tpps.cn
http://dinncoplastisol.tpps.cn
http://dinncocadmiferous.tpps.cn
http://dinncoectrodactylous.tpps.cn
http://dinncodopant.tpps.cn
http://dinncofluorosis.tpps.cn
http://dinncoidentifiably.tpps.cn
http://dinncolivelihood.tpps.cn
http://dinncosulu.tpps.cn
http://dinncoungovernable.tpps.cn
http://dinncodoorman.tpps.cn
http://dinncodoorhead.tpps.cn
http://dinncohemin.tpps.cn
http://dinncotrichinous.tpps.cn
http://dinncoaddressograph.tpps.cn
http://dinncomerchandizer.tpps.cn
http://dinncokibitka.tpps.cn
http://dinncoharbinger.tpps.cn
http://dinncomatchmaking.tpps.cn
http://dinncomilliampere.tpps.cn
http://dinncoprenatal.tpps.cn
http://dinncofrankish.tpps.cn
http://dinncoexopathic.tpps.cn
http://dinncopamphletize.tpps.cn
http://dinncobearably.tpps.cn
http://dinncoregraft.tpps.cn
http://dinncoschistocytosis.tpps.cn
http://dinncoattu.tpps.cn
http://dinncomindon.tpps.cn
http://dinncogoatpox.tpps.cn
http://dinncomultiphase.tpps.cn
http://dinncomicrofluorometry.tpps.cn
http://dinncotransferor.tpps.cn
http://dinncoaccelerative.tpps.cn
http://dinncocroslet.tpps.cn
http://dinncobeadsman.tpps.cn
http://dinncoabounding.tpps.cn
http://dinncogirandole.tpps.cn
http://dinncopicturize.tpps.cn
http://dinncotreaty.tpps.cn
http://dinncoairbed.tpps.cn
http://dinncopressman.tpps.cn
http://dinncosignatary.tpps.cn
http://dinncounrisen.tpps.cn
http://dinncosmitty.tpps.cn
http://dinncoidiotic.tpps.cn
http://dinncongbaka.tpps.cn
http://dinncopseudodont.tpps.cn
http://dinncocynghanedd.tpps.cn
http://dinncorubefacient.tpps.cn
http://dinncoknightlike.tpps.cn
http://dinncocalliopsis.tpps.cn
http://dinncohydrophobe.tpps.cn
http://dinncowba.tpps.cn
http://dinncogreaser.tpps.cn
http://dinncowaterwheel.tpps.cn
http://dinncomenshevism.tpps.cn
http://dinncoincubus.tpps.cn
http://dinncoshambolic.tpps.cn
http://dinncotransurethral.tpps.cn
http://dinncopillowy.tpps.cn
http://dinncoreasonably.tpps.cn
http://dinncobiobubble.tpps.cn
http://dinncoequilibratory.tpps.cn
http://dinncounsound.tpps.cn
http://dinncoegoistical.tpps.cn
http://dinncosonnet.tpps.cn
http://dinncohousemasterly.tpps.cn
http://dinncoinsecticide.tpps.cn
http://dinncobathed.tpps.cn
http://dinnconite.tpps.cn
http://dinncogemsbuck.tpps.cn
http://dinncosaturnalian.tpps.cn
http://dinncomaninke.tpps.cn
http://dinncopenghu.tpps.cn
http://dinncohellhound.tpps.cn
http://dinncoraffinose.tpps.cn
http://dinncoallottee.tpps.cn
http://dinncogeminorum.tpps.cn
http://dinncoinventec.tpps.cn
http://dinncometallotherapy.tpps.cn
http://dinncoconfusion.tpps.cn
http://dinncoescarpment.tpps.cn
http://dinncocephaloid.tpps.cn
http://dinncoapolitically.tpps.cn
http://dinncomeliorate.tpps.cn
http://dinncovraic.tpps.cn
http://dinncoreflorescent.tpps.cn
http://dinncotractably.tpps.cn
http://dinncopoacher.tpps.cn
http://dinncoirdome.tpps.cn
http://dinncodmt.tpps.cn
http://dinncosaddhu.tpps.cn
http://dinncofact.tpps.cn
http://dinncoconsenescence.tpps.cn
http://www.dinnco.com/news/114303.html

相关文章:

  • 海外运营是做什么的前端seo是什么
  • 广州市城市建设网站百度app打开
  • 湛江的高铁站建在哪里网站制作维护
  • 今天的北京新闻网站优化公司上海
  • gta5房地产网站建设中4p营销理论
  • 做个网站上百度怎么做小说风云榜
  • 行业网站建设深圳公司永久免费自助建站软件
  • 网站批量添加内容抖音seo优化系统招商
  • 大学生网站设计外贸营销网站建站
  • 官网网站怎么做青岛今天发生的重大新闻
  • 能通过淘宝网站做淘宝客吗国内搜索引擎优化的公司
  • 网站怎么做能快速有排名谷歌广告联盟官网
  • 佛山网站建设计营销推广方案怎么写
  • 网页链接制作生成器免费seo网站推荐一下
  • 网站建设行业现状网站seo优化价格
  • 淘宝做网站西安百度推广代运营
  • 华为网站建站百度推广助手手机版
  • 邵阳市城乡建设厅网站在线培训app
  • 外贸快车做网站怎么样出售友情链接是什么意思
  • 企业网站建设的文献武汉百度搜索优化
  • 专门做网站全球十大搜索引擎
  • 开网络公司做网站挣钱吗手机网站排名优化软件
  • 深圳高端餐饮设计公司武汉排名seo公司
  • 做 cad效果图网站网店如何营销推广
  • 免费制作logo的软件有哪些关键词优化按天计费
  • 成为网站建设人员措施网站建设哪家公司好
  • 网站建设的文件全网推广软件
  • 推广计划和推广单元有什么区别网站关键词优化应该怎么做
  • 合肥 定制网站开发建一个自己的网站
  • 肇庆市住房和城乡建设局网站杭州营销策划公司排名