Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 2
Registered: ‎12-16-2021
Accepted Solution

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?


Accepted Solutions
Solution
Accepted by MansourH (Moderator)
‎12-16-2021 02:50 PM
Posts: 34
Kudos: 2
Solutions: 4
Registered: ‎07-28-2014

Re: PHP ARB Get subscriptionid after the subscription is created

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


All Replies
Solution
Accepted by MansourH (Moderator)
‎12-16-2021 02:50 PM
Posts: 34
Kudos: 2
Solutions: 4
Registered: ‎07-28-2014

Re: PHP ARB Get subscriptionid after the subscription is created

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
Member
Posts: 2
Registered: ‎12-16-2021

Re: PHP ARB Get subscriptionid after the subscription is created

@MansourHI will thank you