如何设置PayPal沙箱“卖家"帐户,“买方"帐户和应用程序教程 [英] How to set up a PayPal sandbox "Seller" account, a "Buyer" account and an Application Tutorial

查看:57
本文介绍了如何设置PayPal沙箱“卖家"帐户,“买方"帐户和应用程序教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试建立一个使用 PayPal 的网站.不幸的是,PayPal 开发者网站/概念发生了重大变化,所以我发现的所有教程似乎都没用.例如这个(非常好)youtube 教程,很明显是使用不存在的页面和功能......

I am trying to set up a Web site which is using PayPal. Unfortunately the PayPal developer site/concept is heavily changed, so all tutorials I found are seem to be useless. For example this (very good) youtube tutorial which is very clear is using not existing pages and functions...

所以请尽量只帮助我提供最新的信息/教程.

So please try to help me only with up to date information/tutorial.

请注意,我的问题不是关于使用 API,而是关于如何设置应用程序,以及从头开始测试沙箱配置.

Please note my questions is not about using API, it is about how to set up an app, and a testing sandbox configuration from the ground.

1) 据我所知,我必须有一个 真实 PayPal 帐户,因为开发站点使用 PayPal 帐户登录(新).使用此帐户登录,然后我可以创建沙箱帐户.但是我想创建一个卖方"沙箱帐户和一个买方"沙箱帐户.(错过了什么?)使用新的开发人员网站是不可能的.我只能创建一种沙箱帐户.在引用的视频中,有两种类型的沙盒帐户:预配置帐户中的卖方"和买方".还是卖方"只是指企业帐户?

1) As far as I understand I must have a real PayPal account because dev site uses PayPal account for logon (new). Logged in with this account then I can create sandbox accounts. However I would like to create a "Seller" sandbox account and a "Buyer" sandbox account. (missed I something?) Using the new developer site it is not possible. I can create only one kind of sandbox account. In the referenced video there are two types of sandbox accounts: "seller" and "buyer" in the preconfigured accounts. Or "Seller" simply means Business account?

2) 我必须有一个应用程序 ID 才能使用 API.注意:我继承了一个使用经典 API 的工作遗留代码,所以请不要使用 REST.在视频中(旧的 PayPal 开发站点)有一个左侧菜单API 和支付卡凭据"在新的 PayPal 开发站点中没有这样的东西.取而代之的是我的应用程序".

2) I must have an application id to use the API. Note: I inherited a working legacy code which is using the classic API, so no REST please. In the video (old PayPal dev site) there is a left side menu "API and Payment Card credentials" In the new PayPal dev site no such thing. Instead there is a "My Apps".

我已尝试设置应用程序.它自动批准.在它的元数据中,我看到了一个 live 和一个沙盒应用程序 ID.

I've tried to set up an application. It approved automatically. In its metadata I see a live and a sandbox app id.

不清楚的是:这个新创建的应用程序与哪个帐户相关联?我已经创建了它,并使用我的真实贝宝凭据登录.更多的: ???填写应用程序创建表单时,有一个标题为供应测试帐户名称和密码"的输入字段.首先,我如何在一个输入字段中输入名称​​和密码?其次是什么?也许如果我使用带有沙盒应用程序 ID 的此应用程序,那么此帐户将是卖方(收到钱),如果我将应用程序 ID 更改为与此应用程序关联的实时应用程序 ID,那么我的真实 PayPal 帐户会收到钱吗?

What is not clear: To what account is associated this newly created app? I've created it logged in with my real paypal credentials. More: ??? When filling the app creation form there was an input field titled: "Supply Test Account Name and Password". First of all how can I type the name and a password to one input field? Secondly What is it? Maybe if I use this app with its sandbox app id then this account will be the Seller (got the money) and if I change the app id to the live one associated this app, then my real PayPal account got the money?

但是我的目标是完全模拟支付过程

However my goal was to completely simulate the payment process so

1) 创建卖家沙盒帐户(获得 API 凭据)2) 将应用程序关联到该卖家帐户,并获取应用程序 ID.3) 创建买家沙盒账户

1) Create a Seller sandbox account (got API credentials) 2) Associate an application to that Seller account, and get the app id. 3) Create a buyer sandbox account

4a) 使用卖家 API 凭据和沙盒应用程序 ID 配置我的网站4b) 使用我的网站、PayPal API 和 2 个沙箱帐户编排购买流程

4a) Configure my web site with Seller API credentials and sandbox app id 4b) Orchestrate a buy process using my website, PayPal API and the 2 sandbox account

5) 检查卖方和买方沙盒帐户的交易.

5) Check the Seller and Buyer sandbox account's transactions.

提前致谢

推荐答案

Seller account = Business account

Seller account = Business account

买家帐号 = 个人帐号

Buyer account = Personal account

您可能只需要在 Developer Sandbox Accounts ,但如果您的测试需要更多,则没有限制

You probably only need to create one of each in Developer Sandbox Accounts , but there's no limit if your testing requires some more

要获取新的 REST API 凭据,请在 我的应用程序和应用程序中创建一个应用程序凭据并选择要使用的沙盒企业帐户

To obtain the new REST API credentials, create an App in My Apps & Credentials and select the sandbox Business account to use

旧版 API:如果测试旧的集成,您仍然可以通过查看其配置文件"获取企业帐户的经典 NVP/SOAP 凭据.在您的沙盒帐户列表中

这篇关于如何设置PayPal沙箱“卖家"帐户,“买方"帐户和应用程序教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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