如何从用户的电子邮件地址创建PayPal链接以向他们汇款?

发布于 2025-01-19 13:49:17 字数 366 浏览 1 评论 0 原文

我想创建一种动态生成贝宝链接的方法,其中接收者已经通过他们的电子邮件地址(和金额)设置。 我知道 paypal 有“paypal.me”功能,但要使用它,用户必须首先自己创建它。 例子: https://paypal.com/[电子邮件受保护]&金额=10$

I want to create a way to dynamically generate paypal links where the receiver is already set by their email address (and amount).
I know that paypal has the "paypal.me" feature for this, but to use it the user has to create it by themselves first.
Example:
https://paypal.com/[email protected]&amount=10$

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

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

发布评论

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

评论(1

夏日浅笑〃 2025-01-26 13:49:18

您不能为此使用“发送货币”流,但是您可以定期付款到任何目的地电子邮件。通过 https://www.paypal.com/buttons 取消选中的选项,以保存PayPal处的按钮。单击创建后,切换到“电子邮件”选项卡。这将导致以下链接:

htplper” /webcr?cmd = _xClick& business = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx的的信息%2DBUYNOWBF%3ABTN_BUYNOWCC_LG%2EGIF%3AnonHosted

可以简化为:


-cfemail =“ bddfc8ced4d3d8cece80ced2d0d8cfd8ded8d4d4cbd8cffdd8cffd8d0d0dcd4d1d1d1d20d20d20dcd4d3933d393ded2ded20”> [ email 如果您想要一个不错的按钮和不会从网站重定向的信息,请以常规 paypal结帐集成并在createorder有效载荷中添加 paveee 参数,,如下所示

You cannot use the "send money" flow for this, but you can make a regular PayPal payment go to any destination email. Via https://www.paypal.com/buttons , create a Buy Now button and in Step 2 uncheck the option to save the button at PayPal. After clicking to create, switch to the "Email" tab. This results in a link like the following:

https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=xxxxxxxxxx&lc=US&button_subtype=services&no_note=0&cn=Add%20special%20instructions%20to%20the%20seller%3a&no_shipping=2¤cy_code=USD&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted

Which can be simplified to:

https://www.paypal.com/webscr?cmd=_xclick&item_name=Purpose%20of%20payment%20goes%20here&amount=¤cy_code=USD&[email protected]


The above satisfies your request for a link. If you want a nice looking button and in-context flow that doesn't redirect away from your site, start with a regular PayPal Checkout integration and add a payee parameter in the createOrder payload, as documented here.

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