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

Feature/cancel preapproval payment #23

Closed
wants to merge 3 commits into from
Closed

Feature/cancel preapproval payment #23

wants to merge 3 commits into from

Conversation

sirkosi
Copy link
Contributor

@sirkosi sirkosi commented Feb 12, 2016

@rafaelivan Hi, this adds the functionality to cancel a recurring payment (preapproval). Let me know what you think.

# - data: a hash of preferences that will be trasmitted to checkout API.
#
def self.cancel_preapproval_payment(access_token, preapproval_id)
payload = JSON.generate({status: :cancelled})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@schmierkov curly braces here are not necessary. ^

@sirkosi
Copy link
Contributor Author

sirkosi commented Apr 25, 2016

this is the old PR, closed because I opened a new one here #29

@sirkosi sirkosi closed this Apr 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants