{"id":112252,"date":"2020-02-12T08:06:51","date_gmt":"2020-02-12T00:06:51","guid":{"rendered":"http:\/\/4563.org\/?p=112252"},"modified":"2020-02-12T08:06:51","modified_gmt":"2020-02-12T00:06:51","slug":"fecmall-braintree-%e6%94%af%e4%bb%98%e6%96%b9%e5%bc%8f%e5%8f%91%e5%b8%83%ef%bc%88fecmall-%e5%bc%80%e6%ba%90%e5%95%86%e5%9f%8e%ef%bc%89","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=112252","title":{"rendered":"fecmall braintree \u652f\u4ed8\u65b9\u5f0f\u53d1\u5e03\uff08fecmall \u5f00\u6e90\u5546\u57ce\uff09"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  fecmall braintree \u652f\u4ed8\u65b9\u5f0f\u53d1\u5e03\uff08fecmall \u5f00\u6e90\u5546\u57ce\uff09               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : terrywater <\/span>  <span><i><\/i> 56<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h3>fecmall braintree \u4ecb\u7ecd<\/h3>\n<p>\u5e94\u7528\u5e02\u573a\u5730\u5740\uff1a http:\/\/addons.fecmall.com\/45263532<\/p>\n<p>\u8be6\u7ec6\u53c2\u770b\u6587\u6863\u5730\u5740\uff1a http:\/\/www.fecmall.com\/doc\/fecshop-guide\/addons\/cn-2.0\/guide-fecmall-addons-system-braintree-payment.html<\/p>\n<p>\u7ad9\u5185\u76f4\u63a5\u4f7f\u7528\u4fe1\u7528\u5361\u8fdb\u884c\u652f\u4ed8\uff08\u4e0d\u9700\u8981\u8df3\u8f6c\u5230\u7b2c\u4e09\u65b9\u652f\u4ed8\u7f51\u7ad9\uff09<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/06\/20200603_5ed7f266f39de.png\" alt=\"fecmall braintree \u652f\u4ed8\u65b9\u5f0f\u53d1\u5e03\uff08fecmall \u5f00\u6e90\u5546\u57ce\uff09\" \/><\/p>\n<h3>fecmall braintree \u5de5\u4f5c\u539f\u7406<\/h3>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/06\/20200603_5ed7f26c44d73.png\" alt=\"fecmall braintree \u652f\u4ed8\u65b9\u5f0f\u53d1\u5e03\uff08fecmall \u5f00\u6e90\u5546\u57ce\uff09\" \/><\/p>\n<p>Step 1\uff1a Your front-end requests a client token from your server and initializes the client SDK.<\/p>\n<p>\u5ba2\u6237\u7aef\uff08\u8b6c\u5982\u6d4f\u89c8\u5668\u7b49\u5ba2\u6237\u7aef\uff09\u8bf7\u6c42\u670d\u52a1\u7aef\uff0c\u53d1\u9001\u4e00\u4e2a\u83b7\u53d6<code>client toke<\/code>\u7684\u8bf7\u6c42,\u5e76\u4e14\u521d\u59cb\u5316\u5ba2\u6237\u7aef sdk<\/p>\n<p>Step 2\uff1a Your server generates and sends a client token back to your client using the server SDK.<\/p>\n<p>\u670d\u52a1\u7aef\u901a\u8fc7 sdk \u751f\u6210<code>client toke<\/code>,\u53d1\u7ed9\u5ba2\u6237\u7aef\uff0c<\/p>\n<p>Step 3\uff1a The customer submits payment information, the client SDK communicates that information to Braintree and returns a payment method nonce.<\/p>\n<p>\u5ba2\u6237\u7aef\u63d0\u4ea4\u652f\u4ed8\u4fe1\u606f\uff0c\u5ba2\u6237\u7aef SDK \u5c06\u8be5\u4fe1\u606f\u4f20\u8fbe\u7ed9 Braintree\uff0cBraintree \u63a5\u6536\u8bf7\u6c42\u540e\uff0c\u5c06 <code>\u652f\u4ed8\u65b9\u5f0f\u968f\u673a\u6570<\/code>\u53d1\u9001\u7ed9\u5ba2\u6237\u7aef\u3002<\/p>\n<p>Step 4\uff1a Your front-end sends the payment method nonce to your server.<\/p>\n<p>\u5ba2\u6237\u7aef\u5c06\u7b2c 3 \u6b65\u8fd4\u56de\u7684 <code>\u652f\u4ed8\u65b9\u5f0f\u968f\u673a\u6570<\/code> \u53d1\u9001\u7ed9\u670d\u52a1\u7aef<\/p>\n<p>Step 5\uff1a Your server code receives the payment method nonce and then uses the server SDK to create a transaction<\/p>\n<p>\u670d\u52a1\u7aef\u63a5\u6536\u5ba2\u6237\u7aef\u53d1\u9001\u7684 <code>\u652f\u4ed8\u65b9\u5f0f\u968f\u673a\u6570<\/code>\uff0c\u7136\u540e\u901a\u8fc7\u670d\u52a1\u7aef sdk \u751f\u6210\u4e00\u4e2a\u8ba2\u5355\u4ea4\u6613\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"258034\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : terrywater <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             fecmall \u5f00\u6e90\u5546\u57ce\u5b98\u7f51\uff1a http:\/\/www.fecmall.com\/                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"258035\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : terrywater <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             fecmall github \u5730\u5740\uff1a https:\/\/github.com\/fecshop\/yii2_fecshop                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>fecmall braintree&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/112252"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=112252"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/112252\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=112252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=112252"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=112252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}