views:

209

answers:

1

Hi everyone, 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?

A: 

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.

Benjamin Curtis
@Benjamin CurtisI'm using the fork (http://github.com/rayvinly/active_merchant/) in my app, I tried with a "Seller" account as well as a "Website Payments Pro" account on sandbox. But none of them works for me. And the other thing is, always it redirects to LIVE PAYPAL on this code . http://bit.ly/9NP7dCHere is the method:setup_response = gateway.setup_agreement(:description => "EXAMPLE DESCRIPTION", :return_url => url_for(:action => 'confirm', :only_path => false), :cancel_return_url => url_for(:action => 'index', :only_path => false), :no_shipping => 1)
randika