注意:设置的paypal账号应当为个人的新版账号或者business账号,个人的旧版账号无法设置,可联系paypal客服进行账号升级
设置paypal支付前,请确认网站是否有安装ssl证书,即链接前面为“https”
1.登录到 paypal开发者中心
https://developer.paypal.com/developer/
2.进入设置页面
3.点击左侧栏的“SANDBOX”下的“Accounts”选项后,再点击右侧“Create Account”按钮进行创建新的测试账号
4.按照以下提示填写内容,最后并点击保存
5.点击左侧栏的“DASHBOARD”下的“My Apps & Credentials”选项后,右侧版面的“REST API apps”的标题下,切换到“Live”状态,点击“Create App”按钮进行创建新的App账号
注意:新注册的paypal账号,需要进行邮箱验证,才有“live”的设置的位置
验证通过后,需要等待一段时间,才会出现设置的位置
6.按照以下提示填写内容,最后并点击保存
7.进入设置页面,在“LIVE WEBHOOKS”的标题下,点击“Add webhook”进行创建webhooks
8.按照以下提示填写内容,最后并点击保存
9.填写上“域名/?do_action=user.user_oauth&Type=Paypal”
10.勾选以下选项
11.勾选以下选项
12.填写上“域名/?do_action=user.user_oauth&Type=Paypal”,最后点击保存
13.上述设置保存后,可以分别获得“ClientId”和“ClientSecret”参数