Skip to content

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

Description

@lovesmall

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
      }
    )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions