paypal - PayPal 是否总是返回 payer_id?

标签 paypal paypal-ipn

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

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

最佳答案

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

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.

关于paypal - PayPal 是否总是返回 payer_id?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3478231/

相关文章:

postback - 向 Paypal 发送保存按钮 ipn 问题上的 "custom"变量

php - PayPal API - PHP 发送付款时出错

php - 交易id无效 10609

Paypal 沙盒 IPN URL 返回 "Secure Connection Failed"

PayPal PDT 停止返回我的网站

php - 带有哈希标签的 Paypal 返回网址?

Paypal 开发人员 - 无法查看我的 REST 应用程序

javascript - node.js 中 PayPal webhook 的签名是什么?

PayPal ipn 主动退款或撤销?

paypal - 如果我的 Paypal IPNs 监听器出现故障会怎样?