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

Fixed Issue #119 #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed Issue #119 #132

wants to merge 1 commit into from

Conversation

christianheidorn
Copy link

Hi,

I encountered the same issue as the one raised in #119. Did some digging and realised that the php library was actually missing elements which would allow the actual values to be returned, rather than just NULL.

Issue should be resolved now and will probably help quite a few people who have been struggling with this.

Regards
Christian

PS: This is my first public contribution of this sort on github, so please bear with me if this pull request isn't entirely according to best practice ;)

Copy link
Contributor

@tschelabaumann tschelabaumann left a comment

Choose a reason for hiding this comment

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

Hi Christian,

thanks a lot for adding improving the PHP wrapper.
I just found one little issue (see line comments). If you also adjust the tests we will merge your pull request.

@@ -391,6 +391,8 @@ private function _createSubscription(array $response)
$model->setTrialStart($response['trial_start']);
$model->setTrialEnd($response['trial_end']);
$model->setNextCaptureAt($response['next_capture_at']);
$model->setEndOfPeriod($response['end_of_period']);
$model->setNextCaptureAt($response['next_capture_at']);
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is double.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants