Skip to content

Commit

Permalink
Merge pull request #14 from Plasma-Platform/feature/QUASAR-3835/custo…
Browse files Browse the repository at this point in the history
…mer-portal

Feature/quasar 3835/customer portal
  • Loading branch information
dimanovoseltsev authored Nov 14, 2022
2 parents 0b2fcf3 + 97d22a9 commit a498ddc
Show file tree
Hide file tree
Showing 5 changed files with 194 additions and 105 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
vendor
composer.lock
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@ $order->setPaymentInfo ($paymentInfo);
$result = $api->createOrder ($order);


```

Get customer management portal link

```php
// Create API instance
$api = new \API2Client\Api ('api2.templatemonster.com', 'myUserName', 'myUserToken');
$subscriptionId = 'abc12345678';
$link = $api->getCustomerManagementPortalLink($subscriptionId);

```

Error Handling
Expand All @@ -184,4 +194,4 @@ catch (\API2Client\Client\APIException $e)
$e->getMessage ();
}

```
```
Loading

0 comments on commit a498ddc

Please sign in to comment.