简体   繁体   English

有效的商家和Paypal API,用于定期付款

[英]Active merchant and Paypal API for recurring payment

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. 我对paypal的定期付款几乎没有问题,我通过paypal文档找到了一些答案但是,这对我没有多大帮助。

Here are the stuffs that I need to know, hope someone can help me on these. 以下是我需要了解的内容,希望有人可以帮助我。

I'm using paypal's standard payment account. 我正在使用paypal的标准支付账户。 So far I managed to create recurring payments with paypal by posting NVP's to paypal from merchant website to paypal. 到目前为止,我设法通过从商家网站向PayPal发送NVP到PayPal,用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? 因此,客户可以取消,修改商家网站的定期付款,而无需重定向到paypal。这可能吗?

Think I should use paypal's SOAP API for this as I can't get the job done with NVP API. 我认为我应该使用paypal的SOAP API,因为我无法使用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. 来自paypal,它永远不会发回令牌。

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? 是因为我使用沙箱API凭证还是因为我不能将PayPal的标准帐户与SOAP API一起使用?

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. 当您的Rails应用程序处于开发模式时,AM将使用沙箱,因此请确保使用正确的凭据集。

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. 当我将PayPal的定期支付配置文件集成到SaaS Rails工具包中时 (使用ActiveMerchant),我最终只是在取消用户当前的配置文件并在他们想要更改订阅时创建一个新配置文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM