Skip to content
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
Binary file added earnshark_sdk-0.2.1.gem
Binary file not shown.
Binary file added earnshark_sdk-0.2.2.gem
Binary file not shown.
Binary file added earnshark_sdk-0.2.3.gem
Binary file not shown.
Binary file added earnshark_sdk-0.2.4.gem
Binary file not shown.
9 changes: 6 additions & 3 deletions lib/earnshark_sdk/api/subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ def renew_subscription(subscription_id, new_license_id)
# Get payment URL
# Example response:
# {"url":"http://app.earnshark.com.s3-website-eu-west-1.amazonaws.com/payments.html?transactionID=XXXXXXXXX"}
def get_payment_url(account_id, redirect)
def get_payment_url(account_id, redirect, new_license_id)
body = { :redirect => redirect,
:account_id => account_id,
:product_id => @product_id,
:key => @key
:key => @key,
:new_license_id => new_license_id
}
post("#{base_url}/payments/getTransactionID", body)
end

end
def renewed_subscription_notifier(subscription_id, body)
post("#{base_url}notification/#@product_id/subscription/#{subscription_id}?key=#@key", body)
end
end
2 changes: 1 addition & 1 deletion lib/earnshark_sdk/api/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module EarnShark
module Api
VERSION = "0.2.1".freeze
VERSION = "0.2.5".freeze
end
end