我了解当客户登录 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/