Tag: 贝宝沙箱

使用Paypal Rest API和Node

我有一个问题,debugging我的贝宝与Node的集成,其余的API https://github.com/paypal/rest-api-sdk-nodejs 我创build了一个Paypal账户 我得到了应用程序的信用 我创build了一个应用程序并为用户设置了一个密码 我login到该用户的沙箱 我没有看到任何交易logging 代码片段如下: var config_opts = { 'host': 'api.sandbox.paypal.com', 'port': '', 'client_id': 'my id', 'client_secret': 'my secret' }; var create_payment_json = { "intent": "sale", "payer": { "payment_method": "paypal" }, "redirect_urls": { "return_url": "http://localhost:3000", "cancel_url": "http://localhost:3000" }, "transactions": [{ "amount": { "currency": "USD", "total": "10.00" }, "description": "This is the payment […]

贝宝快递结帐安全与静音阿贾克斯呼叫

PayPal的新结账让我感到不安全,用户无法在匿名方面触发虚假付款? 提供的代码看起来像这样 paypal.Button.render({ env: 'sandbox', client: { sandbox: 'AapGZeCaaDK_q_KPeG19DHnD_kd18vr6BxNe4P6uuhfTKPjIedtNEI9plyDgmzfyI-xGhbxjpv0k-Ha9', production: 'xxxxxxxxx' // u expose the key to client side? is this ok? }, payment: function() { var env = this.props.env; var client = this.props.client; return paypal.rest.payment.create(env, client, { transactions: [{ amount: { total: ($scope.number_of_uses * 9) + '.00' , currency: 'USD' }, item_list: { items: […]