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

fix : add error handler for addProduct and addBillingPlan from subscription helper #623

Merged
merged 11 commits into from
Mar 3, 2024
Prev Previous commit
Next Next commit
fix conflict
otnansirk committed Feb 23, 2024

Verified

This commit was signed with the committer’s verified signature.
simPod Simon Podlipsky
commit 3b2a88fb2b75ef22af356210cb92e2e50df62929
1 change: 1 addition & 0 deletions src/Traits/PayPalAPI/Subscriptions/Helpers.php
Original file line number Diff line number Diff line change
@@ -338,6 +338,7 @@ public function addProduct(string $name, string $description, string $type, stri
if ($error = data_get($product, 'error', false)) {
throw new \RuntimeException(data_get($error, 'details.0.description', 'Failed to add product'));
}

$this->product = $product;

return $this;
You are viewing a condensed version of this merge commit. You can view the full changes here.