用于定期付款的活跃商家和 Paypal API

发布于 2024-09-10 15:24:30 字数 692 浏览 0 评论 0原文

我对贝宝的定期付款有几个问题,我通过贝宝文档找到了一些答案,但是,它对我没有多大帮助。

以下是我需要了解的内容,希望有人能帮助我。

我正在使用贝宝的标准付款帐户。到目前为止,我通过将 NVP 从商家网站发布到 paypal,成功地使用 paypal 创建了定期付款。

现在我需要在商家网站上显示定期付款资料。这样客户就可以从商家网站取消、修改定期付款,而无需重定向到 paypal。这可能吗?

我认为我应该为此使用 paypal 的 SOAP API,因为我无法使用 NVP API 完成这项工作。因此,我按照 帖子。但我总是收到错误

此交易无效。请 返回收件人的网站 使用他们完成您的交易 常规结账流程。

来自贝宝,它从来没有给我发回令牌。

我的日志上也有这个

安全标头不是 有效

是因为我使用沙箱 API 凭据还是因为我无法通过 SOAP API 使用 paypal 的标准帐户?

I have few questions on paypal's recurring payments, I went trough the paypal documentation to find some answers but, it didn't help me much.

Here are the stuffs that I need to know, hope someone can help me on these.

I'm using paypal's standard payment account. So far I managed to create recurring payments with paypal by posting NVP's to paypal from merchant website to paypal.

Now I need to show recurring payment profiles on merchant web site. So that customers can cancel, modify recurring payments from merchant website without redirecting to paypal.Is this possible?

Think I should use paypal's SOAP API for this as I can't get the job done with NVP API. So I installed active merchant as described in this post. But I always get an error

This transaction is invalid. Please
return to the recipient's website to
complete your transaction using their
regular checkout flow.

from paypal and it never send me the token back.

Also I got this on my log

Security header is not
valid

Is it because I use sandbox API credentials or is it because I can't use paypal's standard account with SOAP API?

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

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

发布评论

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

评论(1

〃温暖了心ぐ 2024-09-17 15:24:30

通常,“安全标头无效”响应来自在实时环境中使用沙箱凭据,反之亦然。当您的 Rails 应用程序处于开发模式时,AM 将使用沙箱,因此请确保您使用正确的凭据集。

当我将 PayPal 的定期付款配置文件集成到 SaaS Rails Kit(使用 ActiveMerchant)时,我最终只是取消了用户的当前的配置文件,并在他们想要更改订阅时创建新的配置文件。

Usually the "security header is not valid" response comes from using sandbox credentials in the live environment or vice-versa. AM will use the sandbox when your Rails app is in development mode, so be sure you are using the right set of credentials.

When I was integrating PayPal's recurring payment profiles into the SaaS Rails Kit (using ActiveMerchant) I ended up just canceling a user's current profile and creating a new one when they wanted to change their subscription.

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