PayPal 总是返回 payer_id 吗?

发布于 2024-09-14 02:37:18 字数 251 浏览 2 评论 0原文

据我了解,当客户登录 PayPal 并使用其 PayPal 帐户时,PayPal 会将客户的 payer_id 发送给我们。但是,如果客户没有登录 PayPal,而只是使用信用卡来处理付款,会发生什么情况呢?在这种情况下,PayPal 是否仍提供 payer_id ?有没有办法在沙盒中伪造这一点? PayPal 是否提供测试信用卡号码?一种代表成功,另一些代表各种类型的失败?

(这是 PayPal 网站付款标准。)

I understand that when the customer logs into PayPal and uses their PayPal account, PayPal will send us the customer’s payer_id. But what happens if the customer does not log into PayPal and just uses a credit card to process the payment? Does PayPal still supply a payer_id in that case? And is there any way to fake that in the Sandbox? Does PayPal supply test credit card numbers? One for Success, and others for various types of failure?

(This is PayPal Website Payments Standard.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如梦亦如幻 2024-09-21 02:37:18

我从 PayPal 开发者论坛收到的答案是:

返回 payer_id 是否
买家使用 PayPal 帐户付款或
使用信用卡而不登录
存入帐户。

您可以在以下位置生成测试卡号
按照以下步骤进入沙箱
如下:

首先登录您的买家沙箱
帐户并生成测试信用
请按照以下步骤进行卡:

点击个人资料

点击信用卡

点击“添加”

选择卡类型(目前为
沙箱将生成测试签证卡
数字)

将卡复制到此处并单击“取消”

** 不要将该卡添加到您的帐户**

现在使用这个测试卡号,任意
未来的到期日期,000 表示
CVV2 号,a 中的任何地址
有效的格式和任何要测试的名称
再次。

这些测试卡将导致
成功。对于网站付款
标准,模拟故障
测试卡号,可输入任意
随机 16 位数字作为卡号。
不过,通过网站付款
标准,如果交易失败,则不会
响应已发送至商家。

谢谢。

The answer I received from the PayPal developer forums was:

A payer_id is returned whether the
buyer pays with a PayPal account or
uses their credit card without logging
into an account.

You can generate test card number in
the sandbox by following the steps
below:

First login to your buyer sandbox
account and generate a test credit
card by following the steps below:

Click on Profile

Click on Credit card

Click on Add

Select the card type (currently, the
sandbox will generate test visa card
numbers)

Copy the card here and click on cancel

** Don't add the card to your account**

Now use this test card number, any
expiration date in the future, 000 for
the CVV2 number, any address in a
valid format and any name to test
again.

These test cards will result in a
success. For website payments
standard, to simulate failure with a
test card number, you can enter any
random 16 digits for the card number.
However, with website payments
standard, if a transaction fails, no
response is sent to the merchant.

Thanks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文