Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

adding number of cycles #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/paypal/recurring/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Base
attr_accessor :trial_frequency
attr_accessor :trial_length
attr_accessor :trial_period
attr_accessor :cycles
attr_accessor :trial_amount

def initialize(options = {})
Expand Down Expand Up @@ -195,6 +196,7 @@ def create_recurring_profile
:trial_amount,
:item_category,
:item_name,
:cycles,
:item_amount,
:item_quantity
)
Expand Down
1 change: 1 addition & 0 deletions lib/paypal/recurring/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class Request
:cancel_url => "CANCELURL",
:currency => ["PAYMENTREQUEST_0_CURRENCYCODE", "CURRENCYCODE"],
:description => ["DESC", "PAYMENTREQUEST_0_DESC", "L_BILLINGAGREEMENTDESCRIPTION0"],
:cycles => "TOTALBILLINGCYCLES",
:note => "NOTE",
:item_category => "L_PAYMENTREQUEST_0_ITEMCATEGORY0",
:item_name => "L_PAYMENTREQUEST_0_NAME0",
Expand Down