使用支付宝的用户名,密码和签名访问REST API [英] Accessing REST API using Paypal username, password, and signature

查看:234
本文介绍了使用支付宝的用户名,密码和签名访问REST API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是相当新的贝宝API和有点糊涂有关使用API​​的签名附加到REST API。我创建购物车软件,我想允许使用该软件客商通过PayPal用户名,密码和签名使用他们的API系统安装到自己的支付宝账户。建立自己的车的时候,他们会将此信息输入到帐户设置。

I'm fairly new to the PayPal API and am a bit confused about using API signatures to attach to the REST API. I'm creating shopping cart software, and I'd like to allow merchants using the software to attach the system to their PayPal account using their API using PayPal username, password, and signature. They'd enter this information into the account settings when setting up their cart.

在商家的一面,好像这是容易做到,并说这样做是为了明确授予的购物车API访问:
htttps:?//paypal.com/us/cgi-bin/webscr CMD = _profile-API访问(登录后作为一个商人)

On the merchant's side, it seems like this is easily possible, and says to do this to grant API access specifically to shopping carts: htttps://paypal.com/us/cgi-bin/webscr?cmd=_profile-api-access (once logged in as a merchant).

我个人使用PHP来调用卷曲,虽然这可能并不重要。我不明白的是,REST API文档中,包括让你的第一个电话的文档,它注意到我应该把我的客户端ID和秘密,而不是商人的用户名,密码和签名。

I personally am using PHP to call CURL, though that probably is not important. What I don't understand is that in the REST API documentation, including the "make your first call" doc, it notes I should send my "clientid" and "secret," but not the merchant's "username","password," and "signature".

https://developer.paypal.com/docs /集成/直/化妆您先呼叫/

现在,当我最初登录的开发人员,我能得到我的客户端ID和秘密,但对我的应用程序。我已经成功地与他们取得测试呼叫,使用PayPal的测试页面。但是,这些课程似乎是对我来说,不是为特定的客户端。

Now, when I originally logged in as a developer, I was able to obtain my "clientid" and "secret," but that was for my application. I've successfully made test calls with them, using PayPal's test pages. But these of course seem to be for me, not for a particular client.

现在经典API文档确实有使用商家的信息连接到沙盒的信息。

Now the "Classic API" documentation does have information on connecting to the SandBox using the merchant's info.

https://developer.paypal.com/docs/classic/permissions-service/ht_permissions-invoice/

所以我觉得我只是在精神上失去了一些东西,或者误解的东西根本。假设我有我的两个开发商凭据,一个商人的API证书,什么是在作出付款给商家(不是我)的一般步骤。什么是我错过了合乎逻辑的步骤?

So I think I'm just mentally missing something, or misunderstanding something fundamental. Assuming I have both my developer credentials, and the API credentials of a merchant, what are the general steps in making a payment to the merchant (not me). What's the logical step I'm missing?

感谢很多的人谁可以提供帮助。

Thanks much to anyone who can help.

推荐答案

除非贝宝民歌纠正,这的看起来的是流量(只是通过它去):

Unless corrected by Paypal folk, this seems to be the flow (just went through it):


  • 请商家将您添加作为一个用户,我想用API访问权限(只)

  • Ask the merchant to add you as a User, I suppose with API access privileges (only)

他们将设置你的用户ID和pwd,他们应该然后提供给你。

They will set your user id and pwd, which they should then provide to you.

然后,您将与用户登录ID (不是电子邮件地址)贝宝(在这一点上,你是一个的用户名商户/账户)与任何权限您的商家提供你。

You'll then login with that User Id (not an email address) into Paypal (at this point, you're a "user" of that merchant/account) with whatever privileges your merchant provided you.

在开发者网站为您的商家创建应用程序 - 你会发现,当你到达那里,它显示的商户名称(这不是你的开发者帐号)

create the App in the developer site for your merchant - you'll notice that when you get there, it's the Merchant's name displayed (it's not "your" developer account)

在这一点上,你应该设置(沙箱和现场REST凭据您创建的应用程序商户的的)。有一件事我注意到(好)是它有些已经可以帮助你看到什么活特权帐户has..so它有助于引导你以什么来整合(范围)和/或建议您的商家做的事情 - 例如可能会或可能不会有资格直接信用卡付款(仅Paypal帐户支付)。

At this point you should be set (sandbox and live REST credentials of the merchant from the app you created). One thing I noticed (good) is that it somewhat already helps you see what "live privileges" the account has..so it helps guide you as to what to integrate (scope) and/or advise your merchant to do - e.g. may or may not be eligible for direct credit card payments (only Paypal account payments).

Hth以上..

这篇关于使用支付宝的用户名,密码和签名访问REST API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆