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

Adds external payments to invoices #309

Merged
merged 1 commit into from
Mar 15, 2017
Merged

Adds external payments to invoices #309

merged 1 commit into from
Mar 15, 2017

Conversation

bhelx
Copy link
Contributor

@bhelx bhelx commented Mar 9, 2017

Resolves #141

Adds the ability to "Enter an offline payment for a manual invoice". If this is merged, then the code example on that page will have to be updated. This picks up on the work of @cgerrior in PR #154

* @param Recurly_Transaction additional transaction attributes. The attributes available to set are (payment_method, collected_at, amount_in_cents, description)
* @return Recurly_Transaction transaction on success
*/
public function enterOfflinePayment($transaction, $client = null) {
Copy link

Choose a reason for hiding this comment

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

this shouldn't need the $client param unless it's a static method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's for the tests since this does call a static method. Is there a way around that?

Copy link
Contributor Author

@bhelx bhelx Mar 14, 2017

Choose a reason for hiding this comment

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

I could perhaps change this to

return Recurly_Transaction::_post($uri, $transaction->xml(), $this->_client);

Copy link

Choose a reason for hiding this comment

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

yeah $this->client should have been set when the invoice was initialized.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, updated it

Copy link

@drewish drewish left a comment

Choose a reason for hiding this comment

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

Looks good

@drewish drewish merged commit 9799910 into master Mar 15, 2017
@drewish drewish changed the title Adds external paymnets to invoices Adds external payments to invoices Mar 15, 2017
@drewish drewish deleted the external_payments branch March 15, 2017 16:45
@bhelx bhelx mentioned this pull request Mar 21, 2017
@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enter an offline payment for a manual invoice
2 participants