尝试集成捐赠按钮时出现无效的电子邮件地址错误? [英] invalid email address error when trying to integrate a donations button?

查看:48
本文介绍了尝试集成捐赠按钮时出现无效的电子邮件地址错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

paypal 指南非常混乱.我想在我的开发机器上的模板中添加一个捐赠按钮以进行测试.指南指出从他们的网站创建一个捐赠按钮,我已经完成了(稍微修改以接受自定义捐赠金额):

The paypal guide is very confusing. I want to add a donate button to my templates on my development machine for testing. The guides point to creating a donation button from their website, which I have done (modified a bit to accept a custom donation amount):

<form id="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="amount" value="33">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----xxxxxxx=-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

当我点击捐赠按钮时,它会重定向到 paypal,但随后我看到了这个错误:

When I click on the donate button, it redirects to paypal but then I see this error:

我们无法处理此交易,因为卖家提供的 PayPal 电子邮件地址有问题.请联系卖家解决问题.如果这笔付款是针对 eBay 刊登的,您可以通过物品刊登页面上的向卖家提问"链接联系卖家.如果您有正确的电子邮件地址,就可以在 www.paypal.com 上付款.

We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the "Ask Seller a Question" link on the listing page. When you have the correct email address, payment can be made at www.paypal.com.

但我已经确认了我的电子邮件.我还阅读了有关创建沙盒帐户的信息,因此我去了 https://developer.paypal.com 并创建了一个测试应用程序.它为我提供了沙盒凭据,但我看不出这与集成捐赠按钮有什么关系.

But I have already confirmed my email. I also read about creating sandbox accounts, so I went to https://developer.paypal.com and created a test app. It gives me sandbox credentials, but I don't see what this has to do with integrating a donations button.

这个 SO 帖子 建议为 business 值提供我的纯文本商家 ID.但是我的 encrypted 值是什么?那不包含我的商家 ID 吗?如果我有我的 encrypted 值,为什么我必须提供我的明文商家 ID?如果我必须使用我的纯文本商家 ID,为什么 Paypal 不能生成正确的 HTML?

This SO post suggests providing my plaintext Merchant ID for the business value. But then what is my encrypted value for? Doesn't that contain my Merchant ID? Why do I have to provide my plaintext Merchant ID if I have my encrypted value? And why doesn't Paypal generate the correct HTML if I have to use my plaintext Merchant ID?

如果我将 cmd 切换到 _s-xclick 并在 business 中省略明文商家 ID,那么它工作正常,但我的自定义paypal 页面上的金额为空.贝宝不知何故丢失了这条信息.

If I switch cmd to _s-xclick and leave out the plaintext Merchant ID in business, then it works fine, but my custom amount is empty on paypal's page. Somehow paypal loses this piece of info.

我做错了什么?

推荐答案

对于 PayPal 加密的 Donation 按钮,它不应显示在金额代码下方.

For the PayPal encrypted Donation button, it should not display below amount code.

  <input type="hidden" name="amount" value="33">

请使用PayPal默认的加密代码,不要更改.但是如果您想自己编辑代码,当您在PayPal账户上创建按钮时,请不要勾选第2步:跟踪库存(可选)"栏下的在PayPal保存按钮"选项.创建按钮.点击创建按钮"后,点击代码栏右上角的移除代码保护".

Please just use PayPal default encrypted code and do not change it. But if you want to edit the code by your own, when you create button on your PayPal account, please do not check the option of "Save button at PayPal" under the column of "Step 2: Track inventory (optional)" when you create the button. Click "Remove code protection" on the right corner of the code column after you click "Create button".

这篇关于尝试集成捐赠按钮时出现无效的电子邮件地址错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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