cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

PHP ARB Get subscriptionid after the subscription is created

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?

rjluppino
Member
1 ACCEPTED SOLUTION

Accepted Solutions
Hi @rjluppino,

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

View solution in original post

MansourH
Moderator Moderator
Moderator
2 REPLIES 2
Hi @rjluppino,

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
MansourH
Moderator Moderator
Moderator

@MansourHI will thank you