Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "activation" in the param of recurring payment init, so it will charge 1 immediately upon complete. #91

Open
lovesmall opened this issue Dec 8, 2015 · 2 comments

Comments

@lovesmall
Copy link

Related to issue #51.

I think current recurring payment won't charge immediately (for the first month) upon complete. And I found add a "activation" param to make it happen (am I wrong?). Since it's quite normal to charge immediately for recurring payments, maybe can add this option in the wiki docs?

Paypal::Payment::Recurring.new(
      start_date: SET_YOUR_OWN,
      description: SET_YOUR_OWN,
      activation: {
        initial_amount: SET_YOUR_OWN
      },
      billing: {
        period: :SET_YOUR_OWN,
        frequency: SET_YOUR_OWN,
        amount: SET_YOUR_OWN
      }
    )
@rgo
Copy link

rgo commented Apr 28, 2016

Be careful, in our experience paypal sandbox doesn't work exactly as production. Recurring payments are done with a delay (one day or more).

If you use initial_amount in sandbox it works as expected more or less(it charges at the first time) but in production it charges both amounts(initial_amount + amount).

It seems to be the same experience for others users as you can read in this comment:

#51 (comment)

@lovesmall
Copy link
Author

I've just check our current payment history, so far so good for production use with initial amount. No double charge on the first month. I'll check more detail later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants