检查paypal电子邮件地址是否已验证用户 [英] Check if paypal email address is a verified user

查看:510
本文介绍了检查paypal电子邮件地址是否已验证用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检查一下,在购买之前,尝试从我的网站购买某物的paypal用户是否已经经过验证的帐户。

I would like to check if a paypal user who tries to buy something from my site has a verified account before he makes purchase.

一旦用户不验证,他/她所做的任何付款都将失败。资金将自动退回给用户。

Once the user isn't verified, any payment he/she makes would fail. Funds will be returned back to user automatically.

是否有任何可以添加或修改的代码,以便由于欺诈问题而使其工作。

Is there any code I can add or edit to make this work due to fraud issues.

我发现这个

https://www.paypal.com/us/verified/pal=emailhere

如果我用任何电子邮件替换emailhere获得验证或未验证。

where if i replace emailhere with any email i get verified or unverified.

我想将其添加到代码中。
谢谢

I would like to add this to the code. Thanks

推荐答案

如果还没有,我建议使用 Express Checkout API 。这将允许您在完成付款之前检查付款人状态。

If you're not already, I would recommend using the Express Checkout API. This will allow you to check the payer status prior to finalizing the payment.

SetExpressCheckout API将生成您用来将用户重定向到PayPal的令牌。然后,他们将登录,查看订单,然后单击继续,将其发送回您的站点。

The SetExpressCheckout API would generate your token that you use to redirect the user to PayPal with. They would then sign in, review the order, and click continue which would send them back to your site.

在这一点上,您可以调用 GetExpressCheckoutDetails 以获取所有买家详细信息,包括其已验证状态。

At that point, you can call GetExpressCheckoutDetails to obtain all the buyer details including their verified status.

要完成整个事情,你会称为 DoExpressCheckoutPayment 。在付款人未经验证的情况下,您可以简单地停止流动并离开此电话。不会付款,所以不需要退款。您可以简单地显示一个消息,他们需要在您进行购买之前验证其帐户。

To finalize the whole thing you would call DoExpressCheckoutPayment. In cases where the payer is not verified, though, you could simply stop the flow and leave this call out. No payment will have taken place so no refund would be necessary. You can simply display a message that they need to verify their account prior to making purchases from you.

如果您碰巧使用PHP,建议您查看我的 PayPal类图书馆。它使所有这一切非常简单。

If you happen to be working with PHP I would recommend taking a look at my class library for PayPal. It makes all of this very simple for you.

这篇关于检查paypal电子邮件地址是否已验证用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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