- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After executing my create the subscription, I am not getting a subscription id. When I ran the method, the subscription was successfully created, but I did not get an id from $response->getSubscriptionId(). I don't even see that method anywhere in the SDK. I got this from the sample code that I based my method on. Is this because I am in the sandbox or running from localhost?
Solved! Go to Solution.
โ12-16-2021 05:57 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If the subscription was successfully created you should be able to get subscription Id using $response->getSubscriptionId().
The sample code includes a logic to check the response is not null and the resultCode=OK, but you may want to check the raw response to confirm.
Thanks
Mansour
โ12-16-2021 07:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If the subscription was successfully created you should be able to get subscription Id using $response->getSubscriptionId().
The sample code includes a logic to check the response is not null and the resultCode=OK, but you may want to check the raw response to confirm.
Thanks
Mansour
โ12-16-2021 07:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@MansourHI will thank you
โ12-16-2021 08:00 AM

