cancel
Showing results for 
Search instead for 
Did you mean: 

How to set response type to JSON for the GetTransactionDetails method

i am using `php-sdk` and wanted to save the entire transaction response into json as shown on the API Live console, but in the sample code here https://github.com/AuthorizeNet/sample-code-php/blob/master/TransactionReporting/get-transaction-det... i can see any example provided to set the response type to `JSON`, is it supported?

buttflattery
Member
1 ACCEPTED SOLUTION

Accepted Solutions

@Renaissance wrote:

There is no need to set anything. The response is in Json format by default. 


NOTE: The result in JSOn by deault as mentioned by @Renaissance in-case you are using the sdk version 2.0.0-ALPHA or above.

View solution in original post

kikmak42
Authorize.Net Expert Authorize.Net Expert
Authorize.Net Expert
3 REPLIES 3

There is no need to set anything. The response is in Json format by default. 

Renaissance
All Star

@Renaissance wrote:

There is no need to set anything. The response is in Json format by default. 


NOTE: The result in JSOn by deault as mentioned by @Renaissance in-case you are using the sdk version 2.0.0-ALPHA or above.

kikmak42
Authorize.Net Expert Authorize.Net Expert
Authorize.Net Expert

@kikmak42Yes you are right about that JSON response is not supported untillthe 2.0.0 Alpha version which isnt stable enough to be used on production environment as stated at the release link https://github.com/AuthorizeNet/sdk-php/releases/tag/2.0.0-ALPHA , so i guess currently there isnt any way to use it untill the stable verion is released for the php-sdk.

 

Thanks for your response.